containeranalysis

package
v0.0.0-...-00d5c0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_devtools_containeranalysis_v1_containeranalysis_proto protoreflect.FileDescriptor

Functions

func RegisterContainerAnalysisServer

func RegisterContainerAnalysisServer(s *grpc.Server, srv ContainerAnalysisServer)

Types

type ContainerAnalysisClient

type ContainerAnalysisClient 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 *v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*v11.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 *v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*v11.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 *v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v11.TestIamPermissionsResponse, error)
	// Gets a summary of the number and severity of occurrences.
	GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error)
}

ContainerAnalysisClient is the client API for ContainerAnalysis service.

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

type ContainerAnalysisServer

type ContainerAnalysisServer 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, *v11.SetIamPolicyRequest) (*v11.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, *v11.GetIamPolicyRequest) (*v11.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, *v11.TestIamPermissionsRequest) (*v11.TestIamPermissionsResponse, error)
	// Gets a summary of the number and severity of occurrences.
	GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
}

ContainerAnalysisServer is the server API for ContainerAnalysis service.

type GetVulnerabilityOccurrencesSummaryRequest

type GetVulnerabilityOccurrencesSummaryRequest struct {

	// Required. The name of the project to get a vulnerability summary for in the form of
	// `projects/[PROJECT_ID]`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The filter expression.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request to get a vulnerability summary for some set of occurrences.

func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor deprecated

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

Deprecated: Use GetVulnerabilityOccurrencesSummaryRequest.ProtoReflect.Descriptor instead.

func (*GetVulnerabilityOccurrencesSummaryRequest) GetFilter

func (*GetVulnerabilityOccurrencesSummaryRequest) GetParent

func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage

func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect

func (*GetVulnerabilityOccurrencesSummaryRequest) Reset

func (*GetVulnerabilityOccurrencesSummaryRequest) String

type UnimplementedContainerAnalysisServer

type UnimplementedContainerAnalysisServer struct {
}

UnimplementedContainerAnalysisServer can be embedded to have forward compatible implementations.

func (*UnimplementedContainerAnalysisServer) GetIamPolicy

func (*UnimplementedContainerAnalysisServer) SetIamPolicy

func (*UnimplementedContainerAnalysisServer) TestIamPermissions

type VulnerabilityOccurrencesSummary

type VulnerabilityOccurrencesSummary struct {

	// A listing by resource of the number of fixable and total vulnerabilities.
	Counts []*VulnerabilityOccurrencesSummary_FixableTotalByDigest `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"`
	// contains filtered or unexported fields
}

A summary of how many vulnerability occurrences there are per resource and severity type.

func (*VulnerabilityOccurrencesSummary) Descriptor deprecated

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

Deprecated: Use VulnerabilityOccurrencesSummary.ProtoReflect.Descriptor instead.

func (*VulnerabilityOccurrencesSummary) GetCounts

func (*VulnerabilityOccurrencesSummary) ProtoMessage

func (*VulnerabilityOccurrencesSummary) ProtoMessage()

func (*VulnerabilityOccurrencesSummary) ProtoReflect

func (*VulnerabilityOccurrencesSummary) Reset

func (*VulnerabilityOccurrencesSummary) String

type VulnerabilityOccurrencesSummary_FixableTotalByDigest

type VulnerabilityOccurrencesSummary_FixableTotalByDigest struct {

	// The affected resource.
	ResourceUri string `protobuf:"bytes,1,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
	// The severity for this count. SEVERITY_UNSPECIFIED indicates total across
	// all severities.
	Severity v1.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"`
	// The number of fixable vulnerabilities associated with this resource.
	FixableCount int64 `protobuf:"varint,3,opt,name=fixable_count,json=fixableCount,proto3" json:"fixable_count,omitempty"`
	// The total number of vulnerabilities associated with this resource.
	TotalCount int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

Per resource and severity counts of fixable and total vulnerabilities.

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor deprecated

Deprecated: Use VulnerabilityOccurrencesSummary_FixableTotalByDigest.ProtoReflect.Descriptor instead.

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResourceUri

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL