Package cloud.google.com/go/containeranalysis/apiv1beta1/containeranalysispb (v0.9.2)

Variables

File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto

var File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto protoreflect.FileDescriptor

Functions

func RegisterContainerAnalysisV1Beta1Server

func RegisterContainerAnalysisV1Beta1Server(s *grpc.Server, srv ContainerAnalysisV1Beta1Server)

ContainerAnalysisV1Beta1Client

type ContainerAnalysisV1Beta1Client interface {
	// Sets the access control policy on the specified note or occurrence.
	// Requires `containeranalysis.notes.setIamPolicy` or
	// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
	// a note or an occurrence, respectively.
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
	// Gets the access control policy for a note or an occurrence resource.
	// Requires `containeranalysis.notes.setIamPolicy` or
	// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
	// a note or occurrence, respectively.
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
	// Returns the permissions that a caller has on the specified note or
	// occurrence. Requires list permission on the project (for example,
	// `containeranalysis.notes.list`).
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
	// Gets a summary of the packages within a given resource.
	GeneratePackagesSummary(ctx context.Context, in *GeneratePackagesSummaryRequest, opts ...grpc.CallOption) (*PackagesSummaryResponse, error)
}

ContainerAnalysisV1Beta1Client is the client API for ContainerAnalysisV1Beta1 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewContainerAnalysisV1Beta1Client

func NewContainerAnalysisV1Beta1Client(cc grpc.ClientConnInterface) ContainerAnalysisV1Beta1Client

ContainerAnalysisV1Beta1Server

type ContainerAnalysisV1Beta1Server interface {
	// Sets the access control policy on the specified note or occurrence.
	// Requires `containeranalysis.notes.setIamPolicy` or
	// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
	// a note or an occurrence, respectively.
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
	// Gets the access control policy for a note or an occurrence resource.
	// Requires `containeranalysis.notes.setIamPolicy` or
	// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
	// a note or occurrence, respectively.
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
	// Returns the permissions that a caller has on the specified note or
	// occurrence. Requires list permission on the project (for example,
	// `containeranalysis.notes.list`).
	//
	// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
	// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
	// occurrences.
	TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
	// Gets a summary of the packages within a given resource.
	GeneratePackagesSummary(context.Context, *GeneratePackagesSummaryRequest) (*PackagesSummaryResponse, error)
}

ContainerAnalysisV1Beta1Server is the server API for ContainerAnalysisV1Beta1 service.

GeneratePackagesSummaryRequest

type GeneratePackagesSummaryRequest struct {

	// Required. The name of the resource to get a packages summary for in the
	// form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GeneratePackagesSummaryRequest is the request body for the GeneratePackagesSummary API method. It just takes a single name argument, referring to the resource.

func (*GeneratePackagesSummaryRequest) Descriptor

func (*GeneratePackagesSummaryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GeneratePackagesSummaryRequest.ProtoReflect.Descriptor instead.

func (*GeneratePackagesSummaryRequest) GetName

func (*GeneratePackagesSummaryRequest) ProtoMessage

func (*GeneratePackagesSummaryRequest) ProtoMessage()

func (*GeneratePackagesSummaryRequest) ProtoReflect

func (*GeneratePackagesSummaryRequest) Reset

func (x *GeneratePackagesSummaryRequest) Reset()

func (*GeneratePackagesSummaryRequest) String

PackagesSummaryResponse

type PackagesSummaryResponse struct {

	// The unique URL of the image or the container for which this summary
	// applies.
	ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
	// A listing by license name of each of the licenses and their counts.
	LicensesSummary []*PackagesSummaryResponse_LicensesSummary `protobuf:"bytes,2,rep,name=licenses_summary,json=licensesSummary,proto3" json:"licenses_summary,omitempty"`
	// contains filtered or unexported fields
}

A summary of the packages found within the given resource.

func (*PackagesSummaryResponse) Descriptor

func (*PackagesSummaryResponse) Descriptor() ([]byte, []int)

Deprecated: Use PackagesSummaryResponse.ProtoReflect.Descriptor instead.

func (*PackagesSummaryResponse) GetLicensesSummary

func (*PackagesSummaryResponse) GetResourceUrl

func (x *PackagesSummaryResponse) GetResourceUrl() string

func (*PackagesSummaryResponse) ProtoMessage

func (*PackagesSummaryResponse) ProtoMessage()

func (*PackagesSummaryResponse) ProtoReflect

func (x *PackagesSummaryResponse) ProtoReflect() protoreflect.Message

func (*PackagesSummaryResponse) Reset

func (x *PackagesSummaryResponse) Reset()

func (*PackagesSummaryResponse) String

func (x *PackagesSummaryResponse) String() string

PackagesSummaryResponse_LicensesSummary

type PackagesSummaryResponse_LicensesSummary struct {

	// The license of the package. Note that the format of this value is not
	// guaranteed. It may be nil, an empty string, a boolean value (A | B), a
	// differently formed boolean value (A OR B), etc...
	License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
	// The number of fixable vulnerabilities associated with this resource.
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Per license count

func (*PackagesSummaryResponse_LicensesSummary) Descriptor

func (*PackagesSummaryResponse_LicensesSummary) Descriptor() ([]byte, []int)

Deprecated: Use PackagesSummaryResponse_LicensesSummary.ProtoReflect.Descriptor instead.

func (*PackagesSummaryResponse_LicensesSummary) GetCount

func (*PackagesSummaryResponse_LicensesSummary) GetLicense

func (*PackagesSummaryResponse_LicensesSummary) ProtoMessage

func (*PackagesSummaryResponse_LicensesSummary) ProtoReflect

func (*PackagesSummaryResponse_LicensesSummary) Reset

func (*PackagesSummaryResponse_LicensesSummary) String

UnimplementedContainerAnalysisV1Beta1Server

type UnimplementedContainerAnalysisV1Beta1Server struct {
}

UnimplementedContainerAnalysisV1Beta1Server can be embedded to have forward compatible implementations.

func (*UnimplementedContainerAnalysisV1Beta1Server) GeneratePackagesSummary

func (*UnimplementedContainerAnalysisV1Beta1Server) GetIamPolicy

func (*UnimplementedContainerAnalysisV1Beta1Server) SetIamPolicy

func (*UnimplementedContainerAnalysisV1Beta1Server) TestIamPermissions