containeranalysis

package
v0.0.0-...-6cb3ea0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto protoreflect.FileDescriptor

Functions

func RegisterContainerAnalysisV1Beta1Server

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

Types

type 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 *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.

type 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, *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

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 deprecated

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

Deprecated: Use GetScanConfigRequest.ProtoReflect.Descriptor instead.

func (*GetScanConfigRequest) GetName

func (x *GetScanConfigRequest) GetName() string

func (*GetScanConfigRequest) ProtoMessage

func (*GetScanConfigRequest) ProtoMessage()

func (*GetScanConfigRequest) ProtoReflect

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

func (*GetScanConfigRequest) Reset

func (x *GetScanConfigRequest) Reset()

func (*GetScanConfigRequest) String

func (x *GetScanConfigRequest) String() string

type ListScanConfigsRequest

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 deprecated

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

Deprecated: Use ListScanConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListScanConfigsRequest) GetFilter

func (x *ListScanConfigsRequest) GetFilter() string

func (*ListScanConfigsRequest) GetPageSize

func (x *ListScanConfigsRequest) GetPageSize() int32

func (*ListScanConfigsRequest) GetPageToken

func (x *ListScanConfigsRequest) GetPageToken() string

func (*ListScanConfigsRequest) GetParent

func (x *ListScanConfigsRequest) GetParent() string

func (*ListScanConfigsRequest) ProtoMessage

func (*ListScanConfigsRequest) ProtoMessage()

func (*ListScanConfigsRequest) ProtoReflect

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

func (*ListScanConfigsRequest) Reset

func (x *ListScanConfigsRequest) Reset()

func (*ListScanConfigsRequest) String

func (x *ListScanConfigsRequest) String() string

type ListScanConfigsResponse

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 deprecated

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

Deprecated: Use ListScanConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListScanConfigsResponse) GetNextPageToken

func (x *ListScanConfigsResponse) GetNextPageToken() string

func (*ListScanConfigsResponse) GetScanConfigs

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

func (*ListScanConfigsResponse) ProtoMessage

func (*ListScanConfigsResponse) ProtoMessage()

func (*ListScanConfigsResponse) ProtoReflect

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

func (*ListScanConfigsResponse) Reset

func (x *ListScanConfigsResponse) Reset()

func (*ListScanConfigsResponse) String

func (x *ListScanConfigsResponse) String() string

type ScanConfig

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 deprecated

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

Deprecated: Use ScanConfig.ProtoReflect.Descriptor instead.

func (*ScanConfig) GetCreateTime

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

func (*ScanConfig) GetDescription

func (x *ScanConfig) GetDescription() string

func (*ScanConfig) GetEnabled

func (x *ScanConfig) GetEnabled() bool

func (*ScanConfig) GetName

func (x *ScanConfig) GetName() string

func (*ScanConfig) GetUpdateTime

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

func (*ScanConfig) ProtoMessage

func (*ScanConfig) ProtoMessage()

func (*ScanConfig) ProtoReflect

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

func (*ScanConfig) Reset

func (x *ScanConfig) Reset()

func (*ScanConfig) String

func (x *ScanConfig) String() string

type UnimplementedContainerAnalysisV1Beta1Server

type UnimplementedContainerAnalysisV1Beta1Server struct {
}

UnimplementedContainerAnalysisV1Beta1Server can be embedded to have forward compatible implementations.

func (*UnimplementedContainerAnalysisV1Beta1Server) GetIamPolicy

func (*UnimplementedContainerAnalysisV1Beta1Server) GetScanConfig

func (*UnimplementedContainerAnalysisV1Beta1Server) ListScanConfigs

func (*UnimplementedContainerAnalysisV1Beta1Server) SetIamPolicy

func (*UnimplementedContainerAnalysisV1Beta1Server) TestIamPermissions

func (*UnimplementedContainerAnalysisV1Beta1Server) UpdateScanConfig

type UpdateScanConfigRequest

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 deprecated

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

Deprecated: Use UpdateScanConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateScanConfigRequest) GetName

func (x *UpdateScanConfigRequest) GetName() string

func (*UpdateScanConfigRequest) GetScanConfig

func (x *UpdateScanConfigRequest) GetScanConfig() *ScanConfig

func (*UpdateScanConfigRequest) ProtoMessage

func (*UpdateScanConfigRequest) ProtoMessage()

func (*UpdateScanConfigRequest) ProtoReflect

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

func (*UpdateScanConfigRequest) Reset

func (x *UpdateScanConfigRequest) Reset()

func (*UpdateScanConfigRequest) String

func (x *UpdateScanConfigRequest) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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