containeranalysis

package
v0.0.0-...-e165f0f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get a scan configuration.

func (*GetScanConfigRequest) Descriptor

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

func (*GetScanConfigRequest) GetName

func (m *GetScanConfigRequest) GetName() string

func (*GetScanConfigRequest) ProtoMessage

func (*GetScanConfigRequest) ProtoMessage()

func (*GetScanConfigRequest) Reset

func (m *GetScanConfigRequest) Reset()

func (*GetScanConfigRequest) String

func (m *GetScanConfigRequest) String() string

func (*GetScanConfigRequest) XXX_DiscardUnknown

func (m *GetScanConfigRequest) XXX_DiscardUnknown()

func (*GetScanConfigRequest) XXX_Marshal

func (m *GetScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetScanConfigRequest) XXX_Merge

func (m *GetScanConfigRequest) XXX_Merge(src proto.Message)

func (*GetScanConfigRequest) XXX_Size

func (m *GetScanConfigRequest) XXX_Size() int

func (*GetScanConfigRequest) XXX_Unmarshal

func (m *GetScanConfigRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list scan configurations.

func (*ListScanConfigsRequest) Descriptor

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

func (*ListScanConfigsRequest) GetFilter

func (m *ListScanConfigsRequest) GetFilter() string

func (*ListScanConfigsRequest) GetPageSize

func (m *ListScanConfigsRequest) GetPageSize() int32

func (*ListScanConfigsRequest) GetPageToken

func (m *ListScanConfigsRequest) GetPageToken() string

func (*ListScanConfigsRequest) GetParent

func (m *ListScanConfigsRequest) GetParent() string

func (*ListScanConfigsRequest) ProtoMessage

func (*ListScanConfigsRequest) ProtoMessage()

func (*ListScanConfigsRequest) Reset

func (m *ListScanConfigsRequest) Reset()

func (*ListScanConfigsRequest) String

func (m *ListScanConfigsRequest) String() string

func (*ListScanConfigsRequest) XXX_DiscardUnknown

func (m *ListScanConfigsRequest) XXX_DiscardUnknown()

func (*ListScanConfigsRequest) XXX_Marshal

func (m *ListScanConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListScanConfigsRequest) XXX_Merge

func (m *ListScanConfigsRequest) XXX_Merge(src proto.Message)

func (*ListScanConfigsRequest) XXX_Size

func (m *ListScanConfigsRequest) XXX_Size() int

func (*ListScanConfigsRequest) XXX_Unmarshal

func (m *ListScanConfigsRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for listing scan configurations.

func (*ListScanConfigsResponse) Descriptor

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

func (*ListScanConfigsResponse) GetNextPageToken

func (m *ListScanConfigsResponse) GetNextPageToken() string

func (*ListScanConfigsResponse) GetScanConfigs

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

func (*ListScanConfigsResponse) ProtoMessage

func (*ListScanConfigsResponse) ProtoMessage()

func (*ListScanConfigsResponse) Reset

func (m *ListScanConfigsResponse) Reset()

func (*ListScanConfigsResponse) String

func (m *ListScanConfigsResponse) String() string

func (*ListScanConfigsResponse) XXX_DiscardUnknown

func (m *ListScanConfigsResponse) XXX_DiscardUnknown()

func (*ListScanConfigsResponse) XXX_Marshal

func (m *ListScanConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListScanConfigsResponse) XXX_Merge

func (m *ListScanConfigsResponse) XXX_Merge(src proto.Message)

func (*ListScanConfigsResponse) XXX_Size

func (m *ListScanConfigsResponse) XXX_Size() int

func (*ListScanConfigsResponse) XXX_Unmarshal

func (m *ListScanConfigsResponse) XXX_Unmarshal(b []byte) error

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 *timestamp.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           *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

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

func (*ScanConfig) GetCreateTime

func (m *ScanConfig) GetCreateTime() *timestamp.Timestamp

func (*ScanConfig) GetDescription

func (m *ScanConfig) GetDescription() string

func (*ScanConfig) GetEnabled

func (m *ScanConfig) GetEnabled() bool

func (*ScanConfig) GetName

func (m *ScanConfig) GetName() string

func (*ScanConfig) GetUpdateTime

func (m *ScanConfig) GetUpdateTime() *timestamp.Timestamp

func (*ScanConfig) ProtoMessage

func (*ScanConfig) ProtoMessage()

func (*ScanConfig) Reset

func (m *ScanConfig) Reset()

func (*ScanConfig) String

func (m *ScanConfig) String() string

func (*ScanConfig) XXX_DiscardUnknown

func (m *ScanConfig) XXX_DiscardUnknown()

func (*ScanConfig) XXX_Marshal

func (m *ScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScanConfig) XXX_Merge

func (m *ScanConfig) XXX_Merge(src proto.Message)

func (*ScanConfig) XXX_Size

func (m *ScanConfig) XXX_Size() int

func (*ScanConfig) XXX_Unmarshal

func (m *ScanConfig) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

A request to update a scan configuration.

func (*UpdateScanConfigRequest) Descriptor

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

func (*UpdateScanConfigRequest) GetName

func (m *UpdateScanConfigRequest) GetName() string

func (*UpdateScanConfigRequest) GetScanConfig

func (m *UpdateScanConfigRequest) GetScanConfig() *ScanConfig

func (*UpdateScanConfigRequest) ProtoMessage

func (*UpdateScanConfigRequest) ProtoMessage()

func (*UpdateScanConfigRequest) Reset

func (m *UpdateScanConfigRequest) Reset()

func (*UpdateScanConfigRequest) String

func (m *UpdateScanConfigRequest) String() string

func (*UpdateScanConfigRequest) XXX_DiscardUnknown

func (m *UpdateScanConfigRequest) XXX_DiscardUnknown()

func (*UpdateScanConfigRequest) XXX_Marshal

func (m *UpdateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateScanConfigRequest) XXX_Merge

func (m *UpdateScanConfigRequest) XXX_Merge(src proto.Message)

func (*UpdateScanConfigRequest) XXX_Size

func (m *UpdateScanConfigRequest) XXX_Size() int

func (*UpdateScanConfigRequest) XXX_Unmarshal

func (m *UpdateScanConfigRequest) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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