genproto: google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1 Index | Files | Directories

package containeranalysis

import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1"

Index

Package Files

containeranalysis.pb.go

Variables

var File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto protoreflect.FileDescriptor

func RegisterContainerAnalysisV1Beta1Server Uses

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

type ContainerAnalysisV1Beta1Client Uses

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 *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.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 *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.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 *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
    // Gets the specified scan configuration.
    GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error)
    // Lists scan configurations for the specified project.
    ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error)
    // Updates the specified scan configuration.
    UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, 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 Uses

func NewContainerAnalysisV1Beta1Client(cc grpc.ClientConnInterface) ContainerAnalysisV1Beta1Client

type ContainerAnalysisV1Beta1Server Uses

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, *v1.SetIamPolicyRequest) (*v1.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, *v1.GetIamPolicyRequest) (*v1.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, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
    // Gets the specified scan configuration.
    GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error)
    // Lists scan configurations for the specified project.
    ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error)
    // Updates the specified scan configuration.
    UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error)
}

ContainerAnalysisV1Beta1Server is the server API for ContainerAnalysisV1Beta1 service.

type GetScanConfigRequest Uses

type GetScanConfigRequest struct {

    // Required. The name of the scan configuration in the form of
    // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request to get a scan configuration.

func (*GetScanConfigRequest) Descriptor Uses

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

Deprecated: Use GetScanConfigRequest.ProtoReflect.Descriptor instead.

func (*GetScanConfigRequest) GetName Uses

func (x *GetScanConfigRequest) GetName() string

func (*GetScanConfigRequest) ProtoMessage Uses

func (*GetScanConfigRequest) ProtoMessage()

func (*GetScanConfigRequest) ProtoReflect Uses

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

func (*GetScanConfigRequest) Reset Uses

func (x *GetScanConfigRequest) Reset()

func (*GetScanConfigRequest) String Uses

func (x *GetScanConfigRequest) String() string

type ListScanConfigsRequest Uses

type ListScanConfigsRequest struct {

    // Required. The name of the project to list scan configurations for in the form of
    // `projects/[PROJECT_ID]`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. The filter expression.
    Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
    // The number of scan configs to return in the list.
    PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Token to provide to skip to a particular spot in the list.
    PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request to list scan configurations.

func (*ListScanConfigsRequest) Descriptor Uses

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

Deprecated: Use ListScanConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListScanConfigsRequest) GetFilter Uses

func (x *ListScanConfigsRequest) GetFilter() string

func (*ListScanConfigsRequest) GetPageSize Uses

func (x *ListScanConfigsRequest) GetPageSize() int32

func (*ListScanConfigsRequest) GetPageToken Uses

func (x *ListScanConfigsRequest) GetPageToken() string

func (*ListScanConfigsRequest) GetParent Uses

func (x *ListScanConfigsRequest) GetParent() string

func (*ListScanConfigsRequest) ProtoMessage Uses

func (*ListScanConfigsRequest) ProtoMessage()

func (*ListScanConfigsRequest) ProtoReflect Uses

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

func (*ListScanConfigsRequest) Reset Uses

func (x *ListScanConfigsRequest) Reset()

func (*ListScanConfigsRequest) String Uses

func (x *ListScanConfigsRequest) String() string

type ListScanConfigsResponse Uses

type ListScanConfigsResponse struct {

    // The scan configurations requested.
    ScanConfigs []*ScanConfig `protobuf:"bytes,1,rep,name=scan_configs,json=scanConfigs,proto3" json:"scan_configs,omitempty"`
    // The next pagination token in the list response. It should be used as
    // `page_token` for the following request. An empty value means no more
    // results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response for listing scan configurations.

func (*ListScanConfigsResponse) Descriptor Uses

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

Deprecated: Use ListScanConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListScanConfigsResponse) GetNextPageToken Uses

func (x *ListScanConfigsResponse) GetNextPageToken() string

func (*ListScanConfigsResponse) GetScanConfigs Uses

func (x *ListScanConfigsResponse) GetScanConfigs() []*ScanConfig

func (*ListScanConfigsResponse) ProtoMessage Uses

func (*ListScanConfigsResponse) ProtoMessage()

func (*ListScanConfigsResponse) ProtoReflect Uses

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

func (*ListScanConfigsResponse) Reset Uses

func (x *ListScanConfigsResponse) Reset()

func (*ListScanConfigsResponse) String Uses

func (x *ListScanConfigsResponse) String() string

type ScanConfig Uses

type ScanConfig struct {

    // Output only. The name of the scan configuration in the form of
    // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Output only. A human-readable description of what the scan configuration
    // does.
    Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    // Whether the scan is enabled.
    Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
    // Output only. The time this scan config was created.
    CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Output only. The time this scan config was last updated.
    UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
    // contains filtered or unexported fields
}

A scan configuration specifies whether Cloud components in a project have a particular type of analysis being run. For example, it can configure whether vulnerability scanning is being done on Docker images or not.

func (*ScanConfig) Descriptor Uses

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

Deprecated: Use ScanConfig.ProtoReflect.Descriptor instead.

func (*ScanConfig) GetCreateTime Uses

func (x *ScanConfig) GetCreateTime() *timestamppb.Timestamp

func (*ScanConfig) GetDescription Uses

func (x *ScanConfig) GetDescription() string

func (*ScanConfig) GetEnabled Uses

func (x *ScanConfig) GetEnabled() bool

func (*ScanConfig) GetName Uses

func (x *ScanConfig) GetName() string

func (*ScanConfig) GetUpdateTime Uses

func (x *ScanConfig) GetUpdateTime() *timestamppb.Timestamp

func (*ScanConfig) ProtoMessage Uses

func (*ScanConfig) ProtoMessage()

func (*ScanConfig) ProtoReflect Uses

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

func (*ScanConfig) Reset Uses

func (x *ScanConfig) Reset()

func (*ScanConfig) String Uses

func (x *ScanConfig) String() string

type UnimplementedContainerAnalysisV1Beta1Server Uses

type UnimplementedContainerAnalysisV1Beta1Server struct {
}

UnimplementedContainerAnalysisV1Beta1Server can be embedded to have forward compatible implementations.

func (*UnimplementedContainerAnalysisV1Beta1Server) GetIamPolicy Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedContainerAnalysisV1Beta1Server) GetScanConfig Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error)

func (*UnimplementedContainerAnalysisV1Beta1Server) ListScanConfigs Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error)

func (*UnimplementedContainerAnalysisV1Beta1Server) SetIamPolicy Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedContainerAnalysisV1Beta1Server) TestIamPermissions Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)

func (*UnimplementedContainerAnalysisV1Beta1Server) UpdateScanConfig Uses

func (*UnimplementedContainerAnalysisV1Beta1Server) UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error)

type UpdateScanConfigRequest Uses

type UpdateScanConfigRequest struct {

    // Required. The name of the scan configuration in the form of
    // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The updated scan configuration.
    ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"`
    // contains filtered or unexported fields
}

A request to update a scan configuration.

func (*UpdateScanConfigRequest) Descriptor Uses

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

Deprecated: Use UpdateScanConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateScanConfigRequest) GetName Uses

func (x *UpdateScanConfigRequest) GetName() string

func (*UpdateScanConfigRequest) GetScanConfig Uses

func (x *UpdateScanConfigRequest) GetScanConfig() *ScanConfig

func (*UpdateScanConfigRequest) ProtoMessage Uses

func (*UpdateScanConfigRequest) ProtoMessage()

func (*UpdateScanConfigRequest) ProtoReflect Uses

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

func (*UpdateScanConfigRequest) Reset Uses

func (x *UpdateScanConfigRequest) Reset()

func (*UpdateScanConfigRequest) String Uses

func (x *UpdateScanConfigRequest) String() string

Directories

PathSynopsis
attestation
build
common
cvss
deployment
discovery
grafeas
image
package
provenance
source
vulnerability

Package containeranalysis imports 12 packages (graph) and is imported by 1 packages. Updated 2020-09-28. Refresh now. Tools for package owners.