Documentation ¶
Index ¶
- Variables
- func RegisterContainerAnalysisServer(s *grpc.Server, srv ContainerAnalysisServer)
- type ContainerAnalysisClient
- type ContainerAnalysisServer
- type GetVulnerabilityOccurrencesSummaryRequest
- func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string
- func (x *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string
- func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage()
- func (x *GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect() protoreflect.Message
- func (x *GetVulnerabilityOccurrencesSummaryRequest) Reset()
- func (x *GetVulnerabilityOccurrencesSummaryRequest) String() string
- type UnimplementedContainerAnalysisServer
- func (*UnimplementedContainerAnalysisServer) GetIamPolicy(context.Context, *v11.GetIamPolicyRequest) (*v11.Policy, error)
- func (*UnimplementedContainerAnalysisServer) GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
- func (*UnimplementedContainerAnalysisServer) SetIamPolicy(context.Context, *v11.SetIamPolicyRequest) (*v11.Policy, error)
- func (*UnimplementedContainerAnalysisServer) TestIamPermissions(context.Context, *v11.TestIamPermissionsRequest) (*v11.TestIamPermissionsResponse, error)
- type VulnerabilityOccurrencesSummary
- func (*VulnerabilityOccurrencesSummary) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest
- func (*VulnerabilityOccurrencesSummary) ProtoMessage()
- func (x *VulnerabilityOccurrencesSummary) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityOccurrencesSummary) Reset()
- func (x *VulnerabilityOccurrencesSummary) String() string
- type VulnerabilityOccurrencesSummary_FixableTotalByDigest
- func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResourceUri() string
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() v1.Severity
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64
- func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage()
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset()
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string
Constants ¶
This section is empty.
Variables ¶
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.
func NewContainerAnalysisClient ¶
func NewContainerAnalysisClient(cc grpc.ClientConnInterface) ContainerAnalysisClient
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 (x *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string
func (*GetVulnerabilityOccurrencesSummaryRequest) GetParent ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage ¶
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage()
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect() protoreflect.Message
func (*GetVulnerabilityOccurrencesSummaryRequest) Reset ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) Reset()
func (*GetVulnerabilityOccurrencesSummaryRequest) String ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) String() string
type UnimplementedContainerAnalysisServer ¶
type UnimplementedContainerAnalysisServer struct { }
UnimplementedContainerAnalysisServer can be embedded to have forward compatible implementations.
func (*UnimplementedContainerAnalysisServer) GetIamPolicy ¶
func (*UnimplementedContainerAnalysisServer) GetIamPolicy(context.Context, *v11.GetIamPolicyRequest) (*v11.Policy, error)
func (*UnimplementedContainerAnalysisServer) GetVulnerabilityOccurrencesSummary ¶
func (*UnimplementedContainerAnalysisServer) GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
func (*UnimplementedContainerAnalysisServer) SetIamPolicy ¶
func (*UnimplementedContainerAnalysisServer) SetIamPolicy(context.Context, *v11.SetIamPolicyRequest) (*v11.Policy, error)
func (*UnimplementedContainerAnalysisServer) TestIamPermissions ¶
func (*UnimplementedContainerAnalysisServer) TestIamPermissions(context.Context, *v11.TestIamPermissionsRequest) (*v11.TestIamPermissionsResponse, error)
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 (x *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest
func (*VulnerabilityOccurrencesSummary) ProtoMessage ¶
func (*VulnerabilityOccurrencesSummary) ProtoMessage()
func (*VulnerabilityOccurrencesSummary) ProtoReflect ¶
func (x *VulnerabilityOccurrencesSummary) ProtoReflect() protoreflect.Message
func (*VulnerabilityOccurrencesSummary) Reset ¶
func (x *VulnerabilityOccurrencesSummary) Reset()
func (*VulnerabilityOccurrencesSummary) String ¶
func (x *VulnerabilityOccurrencesSummary) String() 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
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityOccurrencesSummary_FixableTotalByDigest.ProtoReflect.Descriptor instead.
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResourceUri ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResourceUri() string
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() v1.Severity
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage ¶
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage()
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect() protoreflect.Message
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset()
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) String ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string