Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)deprecated
- func (m *Asset) GetAssetType() isAsset_AssetType
- func (x *Asset) GetDirinfo() *DirInfo
- func (x *Asset) GetPodinfo() *PodInfo
- func (x *Asset) GetVminfo() *VMInfo
- func (*Asset) ProtoMessage()
- func (x *Asset) ProtoReflect() protoreflect.Message
- func (x *Asset) Reset()
- func (x *Asset) String() string
- type Asset_Dirinfo
- type Asset_Podinfo
- type Asset_Vminfo
- type DirInfo
- type DiscoverAssetsParams
- type DiscoverAssetsResult
- func (*DiscoverAssetsResult) Descriptor() ([]byte, []int)deprecated
- func (x *DiscoverAssetsResult) GetAssets() []*Asset
- func (*DiscoverAssetsResult) ProtoMessage()
- func (x *DiscoverAssetsResult) ProtoReflect() protoreflect.Message
- func (x *DiscoverAssetsResult) Reset()
- func (x *DiscoverAssetsResult) String() string
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetErrFatal() *ErrorFatal
- func (x *Error) GetErrNone() *ErrorNone
- func (x *Error) GetErrRetry() *ErrorRetryable
- func (m *Error) GetErrorType() isError_ErrorType
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type ErrorFatal
- type ErrorNone
- type ErrorRetryable
- func (*ErrorRetryable) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorRetryable) GetAfter() uint32
- func (x *ErrorRetryable) GetErr() string
- func (*ErrorRetryable) ProtoMessage()
- func (x *ErrorRetryable) ProtoReflect() protoreflect.Message
- func (x *ErrorRetryable) Reset()
- func (x *ErrorRetryable) String() string
- type Error_ErrFatal
- type Error_ErrNone
- type Error_ErrRetry
- type PodInfo
- type ProviderClient
- type ProviderServer
- type RemoveAssetScanParams
- func (*RemoveAssetScanParams) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveAssetScanParams) GetScanJobConfig() *ScanJobConfig
- func (*RemoveAssetScanParams) ProtoMessage()
- func (x *RemoveAssetScanParams) ProtoReflect() protoreflect.Message
- func (x *RemoveAssetScanParams) Reset()
- func (x *RemoveAssetScanParams) String() string
- type RemoveAssetScanResult
- type RunAssetScanParams
- func (*RunAssetScanParams) Descriptor() ([]byte, []int)deprecated
- func (x *RunAssetScanParams) GetScanJobConfig() *ScanJobConfig
- func (*RunAssetScanParams) ProtoMessage()
- func (x *RunAssetScanParams) ProtoReflect() protoreflect.Message
- func (x *RunAssetScanParams) Reset()
- func (x *RunAssetScanParams) String() string
- type RunAssetScanResult
- type ScanJobConfig
- func (*ScanJobConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ScanJobConfig) GetAsset() *Asset
- func (x *ScanJobConfig) GetScanMetadata() *ScanMetadata
- func (x *ScanJobConfig) GetScannerCLIConfig() string
- func (x *ScanJobConfig) GetScannerImage() string
- func (x *ScanJobConfig) GetScannerInstanceCreationConfig() *ScannerInstanceCreationConfig
- func (x *ScanJobConfig) GetVmClarityAddress() string
- func (*ScanJobConfig) ProtoMessage()
- func (x *ScanJobConfig) ProtoReflect() protoreflect.Message
- func (x *ScanJobConfig) Reset()
- func (x *ScanJobConfig) String() string
- type ScanMetadata
- func (*ScanMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ScanMetadata) GetAssetID() string
- func (x *ScanMetadata) GetAssetScanID() string
- func (x *ScanMetadata) GetScanID() string
- func (*ScanMetadata) ProtoMessage()
- func (x *ScanMetadata) ProtoReflect() protoreflect.Message
- func (x *ScanMetadata) Reset()
- func (x *ScanMetadata) String() string
- type ScannerInstanceCreationConfig
- func (*ScannerInstanceCreationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ScannerInstanceCreationConfig) GetMaxPrice() string
- func (x *ScannerInstanceCreationConfig) GetRetryMaxAttempts() int32
- func (x *ScannerInstanceCreationConfig) GetUseSpotInstances() bool
- func (*ScannerInstanceCreationConfig) ProtoMessage()
- func (x *ScannerInstanceCreationConfig) ProtoReflect() protoreflect.Message
- func (x *ScannerInstanceCreationConfig) Reset()
- func (x *ScannerInstanceCreationConfig) String() string
- type Tag
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) DiscoverAssets(context.Context, *DiscoverAssetsParams) (*DiscoverAssetsResult, error)
- func (UnimplementedProviderServer) RemoveAssetScan(context.Context, *RemoveAssetScanParams) (*RemoveAssetScanResult, error)
- func (UnimplementedProviderServer) RunAssetScan(context.Context, *RunAssetScanParams) (*RunAssetScanResult, error)
- type UnsafeProviderServer
- type VMInfo
- func (*VMInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VMInfo) GetId() string
- func (x *VMInfo) GetImage() string
- func (x *VMInfo) GetInstanceType() string
- func (x *VMInfo) GetLaunchTime() *timestamppb.Timestamp
- func (x *VMInfo) GetLocation() string
- func (x *VMInfo) GetPlatform() string
- func (x *VMInfo) GetTags() []*Tag
- func (*VMInfo) ProtoMessage()
- func (x *VMInfo) ProtoReflect() protoreflect.Message
- func (x *VMInfo) Reset()
- func (x *VMInfo) String() string
Constants ¶
const ( Provider_DiscoverAssets_FullMethodName = "/provider.Provider/DiscoverAssets" Provider_RunAssetScan_FullMethodName = "/provider.Provider/RunAssetScan" Provider_RemoveAssetScan_FullMethodName = "/provider.Provider/RemoveAssetScan" )
Variables ¶
var File_proto_provider_service_proto protoreflect.FileDescriptor
var Provider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "provider.Provider", HandlerType: (*ProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DiscoverAssets", Handler: _Provider_DiscoverAssets_Handler, }, { MethodName: "RunAssetScan", Handler: _Provider_RunAssetScan_Handler, }, { MethodName: "RemoveAssetScan", Handler: _Provider_RemoveAssetScan_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/provider_service.proto", }
Provider_ServiceDesc is the grpc.ServiceDesc for Provider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderServer ¶
func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
Types ¶
type Asset ¶
type Asset struct { // Types that are assignable to AssetType: // // *Asset_Vminfo // *Asset_Dirinfo // *Asset_Podinfo AssetType isAsset_AssetType `protobuf_oneof:"assetType"` // contains filtered or unexported fields }
func (*Asset) Descriptor
deprecated
func (*Asset) GetAssetType ¶
func (m *Asset) GetAssetType() isAsset_AssetType
func (*Asset) GetDirinfo ¶
func (*Asset) GetPodinfo ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type Asset_Dirinfo ¶
type Asset_Dirinfo struct {
Dirinfo *DirInfo `protobuf:"bytes,2,opt,name=dirinfo,proto3,oneof"`
}
type Asset_Podinfo ¶
type Asset_Podinfo struct {
Podinfo *PodInfo `protobuf:"bytes,3,opt,name=podinfo,proto3,oneof"`
}
type Asset_Vminfo ¶
type Asset_Vminfo struct {
Vminfo *VMInfo `protobuf:"bytes,1,opt,name=vminfo,proto3,oneof"`
}
type DirInfo ¶
type DirInfo struct { DirName string `protobuf:"bytes,1,opt,name=dirName,proto3" json:"dirName,omitempty"` Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*DirInfo) Descriptor
deprecated
func (*DirInfo) GetDirName ¶
func (*DirInfo) GetLocation ¶
func (*DirInfo) ProtoMessage ¶
func (*DirInfo) ProtoMessage()
func (*DirInfo) ProtoReflect ¶
func (x *DirInfo) ProtoReflect() protoreflect.Message
type DiscoverAssetsParams ¶
type DiscoverAssetsParams struct {
// contains filtered or unexported fields
}
func (*DiscoverAssetsParams) Descriptor
deprecated
func (*DiscoverAssetsParams) Descriptor() ([]byte, []int)
Deprecated: Use DiscoverAssetsParams.ProtoReflect.Descriptor instead.
func (*DiscoverAssetsParams) ProtoMessage ¶
func (*DiscoverAssetsParams) ProtoMessage()
func (*DiscoverAssetsParams) ProtoReflect ¶
func (x *DiscoverAssetsParams) ProtoReflect() protoreflect.Message
func (*DiscoverAssetsParams) Reset ¶
func (x *DiscoverAssetsParams) Reset()
func (*DiscoverAssetsParams) String ¶
func (x *DiscoverAssetsParams) String() string
type DiscoverAssetsResult ¶
type DiscoverAssetsResult struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // contains filtered or unexported fields }
func (*DiscoverAssetsResult) Descriptor
deprecated
func (*DiscoverAssetsResult) Descriptor() ([]byte, []int)
Deprecated: Use DiscoverAssetsResult.ProtoReflect.Descriptor instead.
func (*DiscoverAssetsResult) GetAssets ¶
func (x *DiscoverAssetsResult) GetAssets() []*Asset
func (*DiscoverAssetsResult) ProtoMessage ¶
func (*DiscoverAssetsResult) ProtoMessage()
func (*DiscoverAssetsResult) ProtoReflect ¶
func (x *DiscoverAssetsResult) ProtoReflect() protoreflect.Message
func (*DiscoverAssetsResult) Reset ¶
func (x *DiscoverAssetsResult) Reset()
func (*DiscoverAssetsResult) String ¶
func (x *DiscoverAssetsResult) String() string
type Error ¶
type Error struct { // Types that are assignable to ErrorType: // // *Error_ErrNone // *Error_ErrRetry // *Error_ErrFatal ErrorType isError_ErrorType `protobuf_oneof:"errorType"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetErrFatal ¶
func (x *Error) GetErrFatal() *ErrorFatal
func (*Error) GetErrNone ¶
func (*Error) GetErrRetry ¶
func (x *Error) GetErrRetry() *ErrorRetryable
func (*Error) GetErrorType ¶
func (m *Error) GetErrorType() isError_ErrorType
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorFatal ¶
type ErrorFatal struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*ErrorFatal) Descriptor
deprecated
func (*ErrorFatal) Descriptor() ([]byte, []int)
Deprecated: Use ErrorFatal.ProtoReflect.Descriptor instead.
func (*ErrorFatal) GetErr ¶
func (x *ErrorFatal) GetErr() string
func (*ErrorFatal) ProtoMessage ¶
func (*ErrorFatal) ProtoMessage()
func (*ErrorFatal) ProtoReflect ¶
func (x *ErrorFatal) ProtoReflect() protoreflect.Message
func (*ErrorFatal) Reset ¶
func (x *ErrorFatal) Reset()
func (*ErrorFatal) String ¶
func (x *ErrorFatal) String() string
type ErrorNone ¶
type ErrorNone struct {
// contains filtered or unexported fields
}
func (*ErrorNone) Descriptor
deprecated
func (*ErrorNone) ProtoMessage ¶
func (*ErrorNone) ProtoMessage()
func (*ErrorNone) ProtoReflect ¶
func (x *ErrorNone) ProtoReflect() protoreflect.Message
type ErrorRetryable ¶
type ErrorRetryable struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // The duration in seconds that needs to wait until next retry. After uint32 `protobuf:"varint,2,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
func (*ErrorRetryable) Descriptor
deprecated
func (*ErrorRetryable) Descriptor() ([]byte, []int)
Deprecated: Use ErrorRetryable.ProtoReflect.Descriptor instead.
func (*ErrorRetryable) GetAfter ¶
func (x *ErrorRetryable) GetAfter() uint32
func (*ErrorRetryable) GetErr ¶
func (x *ErrorRetryable) GetErr() string
func (*ErrorRetryable) ProtoMessage ¶
func (*ErrorRetryable) ProtoMessage()
func (*ErrorRetryable) ProtoReflect ¶
func (x *ErrorRetryable) ProtoReflect() protoreflect.Message
func (*ErrorRetryable) Reset ¶
func (x *ErrorRetryable) Reset()
func (*ErrorRetryable) String ¶
func (x *ErrorRetryable) String() string
type Error_ErrFatal ¶
type Error_ErrFatal struct {
ErrFatal *ErrorFatal `protobuf:"bytes,3,opt,name=errFatal,proto3,oneof"`
}
type Error_ErrNone ¶
type Error_ErrNone struct {
ErrNone *ErrorNone `protobuf:"bytes,1,opt,name=errNone,proto3,oneof"`
}
type Error_ErrRetry ¶
type Error_ErrRetry struct {
ErrRetry *ErrorRetryable `protobuf:"bytes,2,opt,name=errRetry,proto3,oneof"`
}
type PodInfo ¶
type PodInfo struct { PodName string `protobuf:"bytes,1,opt,name=podName,proto3" json:"podName,omitempty"` Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*PodInfo) Descriptor
deprecated
func (*PodInfo) GetLocation ¶
func (*PodInfo) GetPodName ¶
func (*PodInfo) ProtoMessage ¶
func (*PodInfo) ProtoMessage()
func (*PodInfo) ProtoReflect ¶
func (x *PodInfo) ProtoReflect() protoreflect.Message
type ProviderClient ¶
type ProviderClient interface { DiscoverAssets(ctx context.Context, in *DiscoverAssetsParams, opts ...grpc.CallOption) (*DiscoverAssetsResult, error) // The VMClarity CLI image is provided and can be used as a scanning tool, or otherwise, you can use your own scanning tool. // In case you don't use the VMClarity CLI, you should update AssetScan state in the backend: Ready, Aborted, Done, InProgress etc. RunAssetScan(ctx context.Context, in *RunAssetScanParams, opts ...grpc.CallOption) (*RunAssetScanResult, error) RemoveAssetScan(ctx context.Context, in *RemoveAssetScanParams, opts ...grpc.CallOption) (*RemoveAssetScanResult, error) }
ProviderClient is the client API for Provider service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderServer ¶
type ProviderServer interface { DiscoverAssets(context.Context, *DiscoverAssetsParams) (*DiscoverAssetsResult, error) // The VMClarity CLI image is provided and can be used as a scanning tool, or otherwise, you can use your own scanning tool. // In case you don't use the VMClarity CLI, you should update AssetScan state in the backend: Ready, Aborted, Done, InProgress etc. RunAssetScan(context.Context, *RunAssetScanParams) (*RunAssetScanResult, error) RemoveAssetScan(context.Context, *RemoveAssetScanParams) (*RemoveAssetScanResult, error) // contains filtered or unexported methods }
ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility
type RemoveAssetScanParams ¶
type RemoveAssetScanParams struct { ScanJobConfig *ScanJobConfig `protobuf:"bytes,1,opt,name=scanJobConfig,proto3" json:"scanJobConfig,omitempty"` // contains filtered or unexported fields }
func (*RemoveAssetScanParams) Descriptor
deprecated
func (*RemoveAssetScanParams) Descriptor() ([]byte, []int)
Deprecated: Use RemoveAssetScanParams.ProtoReflect.Descriptor instead.
func (*RemoveAssetScanParams) GetScanJobConfig ¶
func (x *RemoveAssetScanParams) GetScanJobConfig() *ScanJobConfig
func (*RemoveAssetScanParams) ProtoMessage ¶
func (*RemoveAssetScanParams) ProtoMessage()
func (*RemoveAssetScanParams) ProtoReflect ¶
func (x *RemoveAssetScanParams) ProtoReflect() protoreflect.Message
func (*RemoveAssetScanParams) Reset ¶
func (x *RemoveAssetScanParams) Reset()
func (*RemoveAssetScanParams) String ¶
func (x *RemoveAssetScanParams) String() string
type RemoveAssetScanResult ¶
type RemoveAssetScanResult struct {
// contains filtered or unexported fields
}
func (*RemoveAssetScanResult) Descriptor
deprecated
func (*RemoveAssetScanResult) Descriptor() ([]byte, []int)
Deprecated: Use RemoveAssetScanResult.ProtoReflect.Descriptor instead.
func (*RemoveAssetScanResult) ProtoMessage ¶
func (*RemoveAssetScanResult) ProtoMessage()
func (*RemoveAssetScanResult) ProtoReflect ¶
func (x *RemoveAssetScanResult) ProtoReflect() protoreflect.Message
func (*RemoveAssetScanResult) Reset ¶
func (x *RemoveAssetScanResult) Reset()
func (*RemoveAssetScanResult) String ¶
func (x *RemoveAssetScanResult) String() string
type RunAssetScanParams ¶
type RunAssetScanParams struct { ScanJobConfig *ScanJobConfig `protobuf:"bytes,1,opt,name=scanJobConfig,proto3" json:"scanJobConfig,omitempty"` // contains filtered or unexported fields }
func (*RunAssetScanParams) Descriptor
deprecated
func (*RunAssetScanParams) Descriptor() ([]byte, []int)
Deprecated: Use RunAssetScanParams.ProtoReflect.Descriptor instead.
func (*RunAssetScanParams) GetScanJobConfig ¶
func (x *RunAssetScanParams) GetScanJobConfig() *ScanJobConfig
func (*RunAssetScanParams) ProtoMessage ¶
func (*RunAssetScanParams) ProtoMessage()
func (*RunAssetScanParams) ProtoReflect ¶
func (x *RunAssetScanParams) ProtoReflect() protoreflect.Message
func (*RunAssetScanParams) Reset ¶
func (x *RunAssetScanParams) Reset()
func (*RunAssetScanParams) String ¶
func (x *RunAssetScanParams) String() string
type RunAssetScanResult ¶
type RunAssetScanResult struct { Err *Error `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*RunAssetScanResult) Descriptor
deprecated
func (*RunAssetScanResult) Descriptor() ([]byte, []int)
Deprecated: Use RunAssetScanResult.ProtoReflect.Descriptor instead.
func (*RunAssetScanResult) GetErr ¶
func (x *RunAssetScanResult) GetErr() *Error
func (*RunAssetScanResult) ProtoMessage ¶
func (*RunAssetScanResult) ProtoMessage()
func (*RunAssetScanResult) ProtoReflect ¶
func (x *RunAssetScanResult) ProtoReflect() protoreflect.Message
func (*RunAssetScanResult) Reset ¶
func (x *RunAssetScanResult) Reset()
func (*RunAssetScanResult) String ¶
func (x *RunAssetScanResult) String() string
type ScanJobConfig ¶
type ScanJobConfig struct { // The container image of the scanner CLI. contains the vmclarity-cli and other required scanning tools. ScannerImage string `protobuf:"bytes,1,opt,name=scannerImage,proto3" json:"scannerImage,omitempty"` // Scanner CLI config yaml (families config yaml) serialized in json format. ScannerCLIConfig string `protobuf:"bytes,2,opt,name=scannerCLIConfig,proto3" json:"scannerCLIConfig,omitempty"` // The VMClarity API address. VmClarityAddress string `protobuf:"bytes,3,opt,name=vmClarityAddress,proto3" json:"vmClarityAddress,omitempty"` // The ID of the AssetScan that the scanner CLI should update in the backend. ScanMetadata *ScanMetadata `protobuf:"bytes,4,opt,name=scanMetadata,proto3" json:"scanMetadata,omitempty"` // Configuration for how to run the scanner instance (optional). ScannerInstanceCreationConfig *ScannerInstanceCreationConfig `protobuf:"bytes,5,opt,name=scannerInstanceCreationConfig,proto3" json:"scannerInstanceCreationConfig,omitempty"` // The asset to scan. Asset *Asset `protobuf:"bytes,6,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
ScanJobConfig Scanner instance - the VM that runs the VMClarity CLI. Scanner CLI - VMClarity CLI tool that does the actual scanning.
func (*ScanJobConfig) Descriptor
deprecated
func (*ScanJobConfig) Descriptor() ([]byte, []int)
Deprecated: Use ScanJobConfig.ProtoReflect.Descriptor instead.
func (*ScanJobConfig) GetAsset ¶
func (x *ScanJobConfig) GetAsset() *Asset
func (*ScanJobConfig) GetScanMetadata ¶
func (x *ScanJobConfig) GetScanMetadata() *ScanMetadata
func (*ScanJobConfig) GetScannerCLIConfig ¶
func (x *ScanJobConfig) GetScannerCLIConfig() string
func (*ScanJobConfig) GetScannerImage ¶
func (x *ScanJobConfig) GetScannerImage() string
func (*ScanJobConfig) GetScannerInstanceCreationConfig ¶
func (x *ScanJobConfig) GetScannerInstanceCreationConfig() *ScannerInstanceCreationConfig
func (*ScanJobConfig) GetVmClarityAddress ¶
func (x *ScanJobConfig) GetVmClarityAddress() string
func (*ScanJobConfig) ProtoMessage ¶
func (*ScanJobConfig) ProtoMessage()
func (*ScanJobConfig) ProtoReflect ¶
func (x *ScanJobConfig) ProtoReflect() protoreflect.Message
func (*ScanJobConfig) Reset ¶
func (x *ScanJobConfig) Reset()
func (*ScanJobConfig) String ¶
func (x *ScanJobConfig) String() string
type ScanMetadata ¶
type ScanMetadata struct { ScanID string `protobuf:"bytes,1,opt,name=ScanID,proto3" json:"ScanID,omitempty"` AssetScanID string `protobuf:"bytes,2,opt,name=AssetScanID,proto3" json:"AssetScanID,omitempty"` AssetID string `protobuf:"bytes,3,opt,name=AssetID,proto3" json:"AssetID,omitempty"` // contains filtered or unexported fields }
func (*ScanMetadata) Descriptor
deprecated
func (*ScanMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ScanMetadata.ProtoReflect.Descriptor instead.
func (*ScanMetadata) GetAssetID ¶
func (x *ScanMetadata) GetAssetID() string
func (*ScanMetadata) GetAssetScanID ¶
func (x *ScanMetadata) GetAssetScanID() string
func (*ScanMetadata) GetScanID ¶
func (x *ScanMetadata) GetScanID() string
func (*ScanMetadata) ProtoMessage ¶
func (*ScanMetadata) ProtoMessage()
func (*ScanMetadata) ProtoReflect ¶
func (x *ScanMetadata) ProtoReflect() protoreflect.Message
func (*ScanMetadata) Reset ¶
func (x *ScanMetadata) Reset()
func (*ScanMetadata) String ¶
func (x *ScanMetadata) String() string
type ScannerInstanceCreationConfig ¶
type ScannerInstanceCreationConfig struct { MaxPrice string `protobuf:"bytes,1,opt,name=MaxPrice,proto3" json:"MaxPrice,omitempty"` RetryMaxAttempts int32 `protobuf:"varint,2,opt,name=RetryMaxAttempts,proto3" json:"RetryMaxAttempts,omitempty"` UseSpotInstances bool `protobuf:"varint,3,opt,name=UseSpotInstances,proto3" json:"UseSpotInstances,omitempty"` // contains filtered or unexported fields }
func (*ScannerInstanceCreationConfig) Descriptor
deprecated
func (*ScannerInstanceCreationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ScannerInstanceCreationConfig.ProtoReflect.Descriptor instead.
func (*ScannerInstanceCreationConfig) GetMaxPrice ¶
func (x *ScannerInstanceCreationConfig) GetMaxPrice() string
func (*ScannerInstanceCreationConfig) GetRetryMaxAttempts ¶
func (x *ScannerInstanceCreationConfig) GetRetryMaxAttempts() int32
func (*ScannerInstanceCreationConfig) GetUseSpotInstances ¶
func (x *ScannerInstanceCreationConfig) GetUseSpotInstances() bool
func (*ScannerInstanceCreationConfig) ProtoMessage ¶
func (*ScannerInstanceCreationConfig) ProtoMessage()
func (*ScannerInstanceCreationConfig) ProtoReflect ¶
func (x *ScannerInstanceCreationConfig) ProtoReflect() protoreflect.Message
func (*ScannerInstanceCreationConfig) Reset ¶
func (x *ScannerInstanceCreationConfig) Reset()
func (*ScannerInstanceCreationConfig) String ¶
func (x *ScannerInstanceCreationConfig) String() string
type Tag ¶
type Tag struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UnimplementedProviderServer ¶
type UnimplementedProviderServer struct { }
UnimplementedProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServer) DiscoverAssets ¶
func (UnimplementedProviderServer) DiscoverAssets(context.Context, *DiscoverAssetsParams) (*DiscoverAssetsResult, error)
func (UnimplementedProviderServer) RemoveAssetScan ¶
func (UnimplementedProviderServer) RemoveAssetScan(context.Context, *RemoveAssetScanParams) (*RemoveAssetScanResult, error)
func (UnimplementedProviderServer) RunAssetScan ¶
func (UnimplementedProviderServer) RunAssetScan(context.Context, *RunAssetScanParams) (*RunAssetScanResult, error)
type UnsafeProviderServer ¶
type UnsafeProviderServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServer will result in compilation errors.
type VMInfo ¶
type VMInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Location string `protobuf:"bytes,2,opt,name=Location,proto3" json:"Location,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` InstanceType string `protobuf:"bytes,4,opt,name=instanceType,proto3" json:"instanceType,omitempty"` Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` LaunchTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=launchTime,proto3" json:"launchTime,omitempty"` // contains filtered or unexported fields }
func (*VMInfo) Descriptor
deprecated
func (*VMInfo) GetInstanceType ¶
func (*VMInfo) GetLaunchTime ¶
func (x *VMInfo) GetLaunchTime() *timestamppb.Timestamp
func (*VMInfo) GetLocation ¶
func (*VMInfo) GetPlatform ¶
func (*VMInfo) ProtoMessage ¶
func (*VMInfo) ProtoMessage()
func (*VMInfo) ProtoReflect ¶
func (x *VMInfo) ProtoReflect() protoreflect.Message