Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAnalyzerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAnalyzerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnalyzerServiceClient) error
- func RegisterAnalyzerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAnalyzerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnalyzerServiceServer) error
- func RegisterAnalyzerServiceServer(s grpc.ServiceRegistrar, srv AnalyzerServiceServer)
- func RegisterServerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerServiceClient) error
- func RegisterServerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerServiceServer) error
- func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer)
- type AddConfigRequest
- func (*AddConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddConfigRequest) GetCache() *Cache
- func (x *AddConfigRequest) GetIntegrations() *Integrations
- func (*AddConfigRequest) ProtoMessage()
- func (x *AddConfigRequest) ProtoReflect() protoreflect.Message
- func (x *AddConfigRequest) Reset()
- func (x *AddConfigRequest) String() string
- type AddConfigResponse
- type Analysis
- type AnalysisItem
- func (*AnalysisItem) Descriptor() ([]byte, []int)deprecated
- func (x *AnalysisItem) GetDescription() string
- func (x *AnalysisItem) GetName() string
- func (*AnalysisItem) ProtoMessage()
- func (x *AnalysisItem) ProtoReflect() protoreflect.Message
- func (x *AnalysisItem) Reset()
- func (x *AnalysisItem) String() string
- type AnalyzeRequest
- func (*AnalyzeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeRequest) GetAnonymize() bool
- func (x *AnalyzeRequest) GetBackend() string
- func (x *AnalyzeRequest) GetExplain() bool
- func (x *AnalyzeRequest) GetFilters() []string
- func (x *AnalyzeRequest) GetLanguage() string
- func (x *AnalyzeRequest) GetMaxConcurrency() int32
- func (x *AnalyzeRequest) GetNamespace() string
- func (x *AnalyzeRequest) GetNocache() bool
- func (x *AnalyzeRequest) GetOutput() string
- func (*AnalyzeRequest) ProtoMessage()
- func (x *AnalyzeRequest) ProtoReflect() protoreflect.Message
- func (x *AnalyzeRequest) Reset()
- func (x *AnalyzeRequest) String() string
- type AnalyzeResponse
- func (*AnalyzeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeResponse) GetError() *Error
- func (x *AnalyzeResponse) GetErrors() []string
- func (x *AnalyzeResponse) GetProblems() int32
- func (x *AnalyzeResponse) GetResults() []*Result
- func (x *AnalyzeResponse) GetStatus() string
- func (*AnalyzeResponse) ProtoMessage()
- func (x *AnalyzeResponse) ProtoReflect() protoreflect.Message
- func (x *AnalyzeResponse) Reset()
- func (x *AnalyzeResponse) String() string
- type AnalyzerRunRequest
- type AnalyzerRunResponse
- func (*AnalyzerRunResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzerRunResponse) GetResult() *Result
- func (*AnalyzerRunResponse) ProtoMessage()
- func (x *AnalyzerRunResponse) ProtoReflect() protoreflect.Message
- func (x *AnalyzerRunResponse) Reset()
- func (x *AnalyzerRunResponse) String() string
- type AnalyzerServiceClient
- type AnalyzerServiceServer
- type AzureCache
- func (*AzureCache) Descriptor() ([]byte, []int)deprecated
- func (x *AzureCache) GetContainerName() string
- func (x *AzureCache) GetStorageAccount() string
- func (*AzureCache) ProtoMessage()
- func (x *AzureCache) ProtoReflect() protoreflect.Message
- func (x *AzureCache) Reset()
- func (x *AzureCache) String() string
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (x *Cache) GetAzureCache() *AzureCache
- func (m *Cache) GetCacheType() isCache_CacheType
- func (x *Cache) GetGcsCache() *GCSCache
- func (x *Cache) GetS3Cache() *S3Cache
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (x *Cache) String() string
- type Cache_AzureCache
- type Cache_GcsCache
- type Cache_S3Cache
- type Error
- type ErrorDetail
- func (*ErrorDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorDetail) GetSensitive() []*SensitiveData
- func (x *ErrorDetail) GetText() string
- func (*ErrorDetail) ProtoMessage()
- func (x *ErrorDetail) ProtoReflect() protoreflect.Message
- func (x *ErrorDetail) Reset()
- func (x *ErrorDetail) String() string
- type GCSCache
- func (*GCSCache) Descriptor() ([]byte, []int)deprecated
- func (x *GCSCache) GetBucketName() string
- func (x *GCSCache) GetProjectId() string
- func (x *GCSCache) GetRegion() string
- func (*GCSCache) ProtoMessage()
- func (x *GCSCache) ProtoReflect() protoreflect.Message
- func (x *GCSCache) Reset()
- func (x *GCSCache) String() string
- type Integrations
- type ListIntegrationsRequest
- type ListIntegrationsResponse
- func (*ListIntegrationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIntegrationsResponse) GetTrivy() *Trivy
- func (*ListIntegrationsResponse) ProtoMessage()
- func (x *ListIntegrationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListIntegrationsResponse) Reset()
- func (x *ListIntegrationsResponse) String() string
- type RemoveConfigRequest
- func (*RemoveConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveConfigRequest) GetCache() *Cache
- func (x *RemoveConfigRequest) GetIntegrations() *Integrations
- func (*RemoveConfigRequest) ProtoMessage()
- func (x *RemoveConfigRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveConfigRequest) Reset()
- func (x *RemoveConfigRequest) String() string
- type RemoveConfigResponse
- func (*RemoveConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveConfigResponse) GetStatus() string
- func (*RemoveConfigResponse) ProtoMessage()
- func (x *RemoveConfigResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveConfigResponse) Reset()
- func (x *RemoveConfigResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetDetails() string
- func (x *Result) GetError() []*ErrorDetail
- func (x *Result) GetKind() string
- func (x *Result) GetName() string
- func (x *Result) GetParentObject() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type S3Cache
- type SensitiveData
- func (*SensitiveData) Descriptor() ([]byte, []int)deprecated
- func (x *SensitiveData) GetMasked() string
- func (x *SensitiveData) GetUnmasked() string
- func (*SensitiveData) ProtoMessage()
- func (x *SensitiveData) ProtoReflect() protoreflect.Message
- func (x *SensitiveData) Reset()
- func (x *SensitiveData) String() string
- type ServerServiceClient
- type ServerServiceServer
- type Trivy
- type UnimplementedAnalyzerServiceServer
- type UnimplementedServerServiceServer
- func (UnimplementedServerServiceServer) AddConfig(context.Context, *AddConfigRequest) (*AddConfigResponse, error)
- func (UnimplementedServerServiceServer) Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
- func (UnimplementedServerServiceServer) ListIntegrations(context.Context, *ListIntegrationsRequest) (*ListIntegrationsResponse, error)
- func (UnimplementedServerServiceServer) RemoveConfig(context.Context, *RemoveConfigRequest) (*RemoveConfigResponse, error)
- type UnsafeAnalyzerServiceServer
- type UnsafeServerServiceServer
Constants ¶
const ( ServerService_Analyze_FullMethodName = "/schema.v1.ServerService/Analyze" ServerService_AddConfig_FullMethodName = "/schema.v1.ServerService/AddConfig" ServerService_RemoveConfig_FullMethodName = "/schema.v1.ServerService/RemoveConfig" ServerService_ListIntegrations_FullMethodName = "/schema.v1.ServerService/ListIntegrations" )
const (
AnalyzerService_Run_FullMethodName = "/schema.v1.AnalyzerService/Run"
)
Variables ¶
var AnalyzerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "schema.v1.AnalyzerService", HandlerType: (*AnalyzerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Run", Handler: _AnalyzerService_Run_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "schema/v1/analyzer.proto", }
AnalyzerService_ServiceDesc is the grpc.ServiceDesc for AnalyzerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_schema_v1_analyzer_proto protoreflect.FileDescriptor
var File_schema_v1_server_service_proto protoreflect.FileDescriptor
var ServerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "schema.v1.ServerService", HandlerType: (*ServerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Analyze", Handler: _ServerService_Analyze_Handler, }, { MethodName: "AddConfig", Handler: _ServerService_AddConfig_Handler, }, { MethodName: "RemoveConfig", Handler: _ServerService_RemoveConfig_Handler, }, { MethodName: "ListIntegrations", Handler: _ServerService_ListIntegrations_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "schema/v1/server-service.proto", }
ServerService_ServiceDesc is the grpc.ServiceDesc for ServerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAnalyzerServiceHandler ¶
func RegisterAnalyzerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAnalyzerServiceHandler registers the http handlers for service AnalyzerService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAnalyzerServiceHandlerClient ¶
func RegisterAnalyzerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnalyzerServiceClient) error
RegisterAnalyzerServiceHandlerClient registers the http handlers for service AnalyzerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AnalyzerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AnalyzerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AnalyzerServiceClient" to call the correct interceptors.
func RegisterAnalyzerServiceHandlerFromEndpoint ¶
func RegisterAnalyzerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAnalyzerServiceHandlerFromEndpoint is same as RegisterAnalyzerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAnalyzerServiceHandlerServer ¶
func RegisterAnalyzerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnalyzerServiceServer) error
RegisterAnalyzerServiceHandlerServer registers the http handlers for service AnalyzerService to "mux". UnaryRPC :call AnalyzerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnalyzerServiceHandlerFromEndpoint instead.
func RegisterAnalyzerServiceServer ¶
func RegisterAnalyzerServiceServer(s grpc.ServiceRegistrar, srv AnalyzerServiceServer)
func RegisterServerServiceHandler ¶
func RegisterServerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServerServiceHandler registers the http handlers for service ServerService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServerServiceHandlerClient ¶
func RegisterServerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerServiceClient) error
RegisterServerServiceHandlerClient registers the http handlers for service ServerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServerServiceClient" to call the correct interceptors.
func RegisterServerServiceHandlerFromEndpoint ¶
func RegisterServerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServerServiceHandlerFromEndpoint is same as RegisterServerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServerServiceHandlerServer ¶
func RegisterServerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerServiceServer) error
RegisterServerServiceHandlerServer registers the http handlers for service ServerService to "mux". UnaryRPC :call ServerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServerServiceHandlerFromEndpoint instead.
func RegisterServerServiceServer ¶
func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer)
Types ¶
type AddConfigRequest ¶
type AddConfigRequest struct { Cache *Cache `protobuf:"bytes,1,opt,name=cache,proto3" json:"cache,omitempty"` Integrations *Integrations `protobuf:"bytes,2,opt,name=integrations,proto3" json:"integrations,omitempty"` // contains filtered or unexported fields }
func (*AddConfigRequest) Descriptor
deprecated
func (*AddConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddConfigRequest.ProtoReflect.Descriptor instead.
func (*AddConfigRequest) GetCache ¶
func (x *AddConfigRequest) GetCache() *Cache
func (*AddConfigRequest) GetIntegrations ¶
func (x *AddConfigRequest) GetIntegrations() *Integrations
func (*AddConfigRequest) ProtoMessage ¶
func (*AddConfigRequest) ProtoMessage()
func (*AddConfigRequest) ProtoReflect ¶
func (x *AddConfigRequest) ProtoReflect() protoreflect.Message
func (*AddConfigRequest) Reset ¶
func (x *AddConfigRequest) Reset()
func (*AddConfigRequest) String ¶
func (x *AddConfigRequest) String() string
type AddConfigResponse ¶
type AddConfigResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AddConfigResponse) Descriptor
deprecated
func (*AddConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddConfigResponse.ProtoReflect.Descriptor instead.
func (*AddConfigResponse) GetStatus ¶
func (x *AddConfigResponse) GetStatus() string
func (*AddConfigResponse) ProtoMessage ¶
func (*AddConfigResponse) ProtoMessage()
func (*AddConfigResponse) ProtoReflect ¶
func (x *AddConfigResponse) ProtoReflect() protoreflect.Message
func (*AddConfigResponse) Reset ¶
func (x *AddConfigResponse) Reset()
func (*AddConfigResponse) String ¶
func (x *AddConfigResponse) String() string
type Analysis ¶
type Analysis struct { Analysis []*AnalysisItem `protobuf:"bytes,1,rep,name=analysis,proto3" json:"analysis,omitempty"` // contains filtered or unexported fields }
func (*Analysis) Descriptor
deprecated
func (*Analysis) GetAnalysis ¶
func (x *Analysis) GetAnalysis() []*AnalysisItem
func (*Analysis) ProtoMessage ¶
func (*Analysis) ProtoMessage()
func (*Analysis) ProtoReflect ¶
func (x *Analysis) ProtoReflect() protoreflect.Message
type AnalysisItem ¶
type AnalysisItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*AnalysisItem) Descriptor
deprecated
func (*AnalysisItem) Descriptor() ([]byte, []int)
Deprecated: Use AnalysisItem.ProtoReflect.Descriptor instead.
func (*AnalysisItem) GetDescription ¶
func (x *AnalysisItem) GetDescription() string
func (*AnalysisItem) GetName ¶
func (x *AnalysisItem) GetName() string
func (*AnalysisItem) ProtoMessage ¶
func (*AnalysisItem) ProtoMessage()
func (*AnalysisItem) ProtoReflect ¶
func (x *AnalysisItem) ProtoReflect() protoreflect.Message
func (*AnalysisItem) Reset ¶
func (x *AnalysisItem) Reset()
func (*AnalysisItem) String ¶
func (x *AnalysisItem) String() string
type AnalyzeRequest ¶
type AnalyzeRequest struct { Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Explain bool `protobuf:"varint,3,opt,name=explain,proto3" json:"explain,omitempty"` Anonymize bool `protobuf:"varint,4,opt,name=anonymize,proto3" json:"anonymize,omitempty"` Nocache bool `protobuf:"varint,5,opt,name=nocache,proto3" json:"nocache,omitempty"` Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` MaxConcurrency int32 `protobuf:"varint,7,opt,name=max_concurrency,json=maxConcurrency,proto3" json:"max_concurrency,omitempty"` Output string `protobuf:"bytes,8,opt,name=output,proto3" json:"output,omitempty"` Filters []string `protobuf:"bytes,9,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*AnalyzeRequest) Descriptor
deprecated
func (*AnalyzeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeRequest) GetAnonymize ¶
func (x *AnalyzeRequest) GetAnonymize() bool
func (*AnalyzeRequest) GetBackend ¶
func (x *AnalyzeRequest) GetBackend() string
func (*AnalyzeRequest) GetExplain ¶
func (x *AnalyzeRequest) GetExplain() bool
func (*AnalyzeRequest) GetFilters ¶
func (x *AnalyzeRequest) GetFilters() []string
func (*AnalyzeRequest) GetLanguage ¶
func (x *AnalyzeRequest) GetLanguage() string
func (*AnalyzeRequest) GetMaxConcurrency ¶
func (x *AnalyzeRequest) GetMaxConcurrency() int32
func (*AnalyzeRequest) GetNamespace ¶
func (x *AnalyzeRequest) GetNamespace() string
func (*AnalyzeRequest) GetNocache ¶
func (x *AnalyzeRequest) GetNocache() bool
func (*AnalyzeRequest) GetOutput ¶
func (x *AnalyzeRequest) GetOutput() string
func (*AnalyzeRequest) ProtoMessage ¶
func (*AnalyzeRequest) ProtoMessage()
func (*AnalyzeRequest) ProtoReflect ¶
func (x *AnalyzeRequest) ProtoReflect() protoreflect.Message
func (*AnalyzeRequest) Reset ¶
func (x *AnalyzeRequest) Reset()
func (*AnalyzeRequest) String ¶
func (x *AnalyzeRequest) String() string
type AnalyzeResponse ¶
type AnalyzeResponse struct { Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Errors []string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Problems int32 `protobuf:"varint,4,opt,name=problems,proto3" json:"problems,omitempty"` Results []*Result `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*AnalyzeResponse) Descriptor
deprecated
func (*AnalyzeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeResponse) GetError ¶
func (x *AnalyzeResponse) GetError() *Error
func (*AnalyzeResponse) GetErrors ¶
func (x *AnalyzeResponse) GetErrors() []string
func (*AnalyzeResponse) GetProblems ¶
func (x *AnalyzeResponse) GetProblems() int32
func (*AnalyzeResponse) GetResults ¶
func (x *AnalyzeResponse) GetResults() []*Result
func (*AnalyzeResponse) GetStatus ¶
func (x *AnalyzeResponse) GetStatus() string
func (*AnalyzeResponse) ProtoMessage ¶
func (*AnalyzeResponse) ProtoMessage()
func (*AnalyzeResponse) ProtoReflect ¶
func (x *AnalyzeResponse) ProtoReflect() protoreflect.Message
func (*AnalyzeResponse) Reset ¶
func (x *AnalyzeResponse) Reset()
func (*AnalyzeResponse) String ¶
func (x *AnalyzeResponse) String() string
type AnalyzerRunRequest ¶
type AnalyzerRunRequest struct {
// contains filtered or unexported fields
}
func (*AnalyzerRunRequest) Descriptor
deprecated
func (*AnalyzerRunRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzerRunRequest.ProtoReflect.Descriptor instead.
func (*AnalyzerRunRequest) ProtoMessage ¶
func (*AnalyzerRunRequest) ProtoMessage()
func (*AnalyzerRunRequest) ProtoReflect ¶
func (x *AnalyzerRunRequest) ProtoReflect() protoreflect.Message
func (*AnalyzerRunRequest) Reset ¶
func (x *AnalyzerRunRequest) Reset()
func (*AnalyzerRunRequest) String ¶
func (x *AnalyzerRunRequest) String() string
type AnalyzerRunResponse ¶
type AnalyzerRunResponse struct { Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*AnalyzerRunResponse) Descriptor
deprecated
func (*AnalyzerRunResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzerRunResponse.ProtoReflect.Descriptor instead.
func (*AnalyzerRunResponse) GetResult ¶
func (x *AnalyzerRunResponse) GetResult() *Result
func (*AnalyzerRunResponse) ProtoMessage ¶
func (*AnalyzerRunResponse) ProtoMessage()
func (*AnalyzerRunResponse) ProtoReflect ¶
func (x *AnalyzerRunResponse) ProtoReflect() protoreflect.Message
func (*AnalyzerRunResponse) Reset ¶
func (x *AnalyzerRunResponse) Reset()
func (*AnalyzerRunResponse) String ¶
func (x *AnalyzerRunResponse) String() string
type AnalyzerServiceClient ¶
type AnalyzerServiceClient interface {
Run(ctx context.Context, in *AnalyzerRunRequest, opts ...grpc.CallOption) (*AnalyzerRunResponse, error)
}
AnalyzerServiceClient is the client API for AnalyzerService 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 NewAnalyzerServiceClient ¶
func NewAnalyzerServiceClient(cc grpc.ClientConnInterface) AnalyzerServiceClient
type AnalyzerServiceServer ¶
type AnalyzerServiceServer interface {
Run(context.Context, *AnalyzerRunRequest) (*AnalyzerRunResponse, error)
}
AnalyzerServiceServer is the server API for AnalyzerService service. All implementations should embed UnimplementedAnalyzerServiceServer for forward compatibility
type AzureCache ¶
type AzureCache struct { StorageAccount string `protobuf:"bytes,1,opt,name=storage_account,json=storageAccount,proto3" json:"storage_account,omitempty"` ContainerName string `protobuf:"bytes,2,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` // contains filtered or unexported fields }
func (*AzureCache) Descriptor
deprecated
func (*AzureCache) Descriptor() ([]byte, []int)
Deprecated: Use AzureCache.ProtoReflect.Descriptor instead.
func (*AzureCache) GetContainerName ¶
func (x *AzureCache) GetContainerName() string
func (*AzureCache) GetStorageAccount ¶
func (x *AzureCache) GetStorageAccount() string
func (*AzureCache) ProtoMessage ¶
func (*AzureCache) ProtoMessage()
func (*AzureCache) ProtoReflect ¶
func (x *AzureCache) ProtoReflect() protoreflect.Message
func (*AzureCache) Reset ¶
func (x *AzureCache) Reset()
func (*AzureCache) String ¶
func (x *AzureCache) String() string
type Cache ¶
type Cache struct { // Types that are assignable to CacheType: // // *Cache_S3Cache // *Cache_AzureCache // *Cache_GcsCache CacheType isCache_CacheType `protobuf_oneof:"cache_type"` // contains filtered or unexported fields }
func (*Cache) Descriptor
deprecated
func (*Cache) GetAzureCache ¶
func (x *Cache) GetAzureCache() *AzureCache
func (*Cache) GetCacheType ¶
func (m *Cache) GetCacheType() isCache_CacheType
func (*Cache) GetGcsCache ¶
func (*Cache) GetS3Cache ¶
func (*Cache) ProtoMessage ¶
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶
func (x *Cache) ProtoReflect() protoreflect.Message
type Cache_AzureCache ¶
type Cache_AzureCache struct {
AzureCache *AzureCache `protobuf:"bytes,2,opt,name=azure_cache,json=azureCache,proto3,oneof"`
}
type Cache_GcsCache ¶
type Cache_GcsCache struct {
GcsCache *GCSCache `protobuf:"bytes,3,opt,name=gcs_cache,json=gcsCache,proto3,oneof"`
}
type Cache_S3Cache ¶
type Cache_S3Cache struct {
S3Cache *S3Cache `protobuf:"bytes,1,opt,name=s3_cache,json=s3Cache,proto3,oneof"`
}
type Error ¶
type Error struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorDetail ¶
type ErrorDetail struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Sensitive []*SensitiveData `protobuf:"bytes,2,rep,name=sensitive,proto3" json:"sensitive,omitempty"` // contains filtered or unexported fields }
func (*ErrorDetail) Descriptor
deprecated
func (*ErrorDetail) Descriptor() ([]byte, []int)
Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.
func (*ErrorDetail) GetSensitive ¶
func (x *ErrorDetail) GetSensitive() []*SensitiveData
func (*ErrorDetail) GetText ¶
func (x *ErrorDetail) GetText() string
func (*ErrorDetail) ProtoMessage ¶
func (*ErrorDetail) ProtoMessage()
func (*ErrorDetail) ProtoReflect ¶
func (x *ErrorDetail) ProtoReflect() protoreflect.Message
func (*ErrorDetail) Reset ¶
func (x *ErrorDetail) Reset()
func (*ErrorDetail) String ¶
func (x *ErrorDetail) String() string
type GCSCache ¶
type GCSCache struct { Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*GCSCache) Descriptor
deprecated
func (*GCSCache) GetBucketName ¶
func (*GCSCache) GetProjectId ¶
func (*GCSCache) ProtoMessage ¶
func (*GCSCache) ProtoMessage()
func (*GCSCache) ProtoReflect ¶
func (x *GCSCache) ProtoReflect() protoreflect.Message
type Integrations ¶
type Integrations struct { Trivy *Trivy `protobuf:"bytes,1,opt,name=trivy,proto3" json:"trivy,omitempty"` // contains filtered or unexported fields }
func (*Integrations) Descriptor
deprecated
func (*Integrations) Descriptor() ([]byte, []int)
Deprecated: Use Integrations.ProtoReflect.Descriptor instead.
func (*Integrations) GetTrivy ¶
func (x *Integrations) GetTrivy() *Trivy
func (*Integrations) ProtoMessage ¶
func (*Integrations) ProtoMessage()
func (*Integrations) ProtoReflect ¶
func (x *Integrations) ProtoReflect() protoreflect.Message
func (*Integrations) Reset ¶
func (x *Integrations) Reset()
func (*Integrations) String ¶
func (x *Integrations) String() string
type ListIntegrationsRequest ¶
type ListIntegrationsRequest struct {
// contains filtered or unexported fields
}
func (*ListIntegrationsRequest) Descriptor
deprecated
func (*ListIntegrationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIntegrationsRequest.ProtoReflect.Descriptor instead.
func (*ListIntegrationsRequest) ProtoMessage ¶
func (*ListIntegrationsRequest) ProtoMessage()
func (*ListIntegrationsRequest) ProtoReflect ¶
func (x *ListIntegrationsRequest) ProtoReflect() protoreflect.Message
func (*ListIntegrationsRequest) Reset ¶
func (x *ListIntegrationsRequest) Reset()
func (*ListIntegrationsRequest) String ¶
func (x *ListIntegrationsRequest) String() string
type ListIntegrationsResponse ¶
type ListIntegrationsResponse struct { Trivy *Trivy `protobuf:"bytes,1,opt,name=trivy,proto3" json:"trivy,omitempty"` // contains filtered or unexported fields }
Add integrations to list
func (*ListIntegrationsResponse) Descriptor
deprecated
func (*ListIntegrationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIntegrationsResponse.ProtoReflect.Descriptor instead.
func (*ListIntegrationsResponse) GetTrivy ¶
func (x *ListIntegrationsResponse) GetTrivy() *Trivy
func (*ListIntegrationsResponse) ProtoMessage ¶
func (*ListIntegrationsResponse) ProtoMessage()
func (*ListIntegrationsResponse) ProtoReflect ¶
func (x *ListIntegrationsResponse) ProtoReflect() protoreflect.Message
func (*ListIntegrationsResponse) Reset ¶
func (x *ListIntegrationsResponse) Reset()
func (*ListIntegrationsResponse) String ¶
func (x *ListIntegrationsResponse) String() string
type RemoveConfigRequest ¶
type RemoveConfigRequest struct { Cache *Cache `protobuf:"bytes,1,opt,name=cache,proto3" json:"cache,omitempty"` Integrations *Integrations `protobuf:"bytes,2,opt,name=integrations,proto3" json:"integrations,omitempty"` // contains filtered or unexported fields }
func (*RemoveConfigRequest) Descriptor
deprecated
func (*RemoveConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveConfigRequest.ProtoReflect.Descriptor instead.
func (*RemoveConfigRequest) GetCache ¶
func (x *RemoveConfigRequest) GetCache() *Cache
func (*RemoveConfigRequest) GetIntegrations ¶
func (x *RemoveConfigRequest) GetIntegrations() *Integrations
func (*RemoveConfigRequest) ProtoMessage ¶
func (*RemoveConfigRequest) ProtoMessage()
func (*RemoveConfigRequest) ProtoReflect ¶
func (x *RemoveConfigRequest) ProtoReflect() protoreflect.Message
func (*RemoveConfigRequest) Reset ¶
func (x *RemoveConfigRequest) Reset()
func (*RemoveConfigRequest) String ¶
func (x *RemoveConfigRequest) String() string
type RemoveConfigResponse ¶
type RemoveConfigResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*RemoveConfigResponse) Descriptor
deprecated
func (*RemoveConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveConfigResponse.ProtoReflect.Descriptor instead.
func (*RemoveConfigResponse) GetStatus ¶
func (x *RemoveConfigResponse) GetStatus() string
func (*RemoveConfigResponse) ProtoMessage ¶
func (*RemoveConfigResponse) ProtoMessage()
func (*RemoveConfigResponse) ProtoReflect ¶
func (x *RemoveConfigResponse) ProtoReflect() protoreflect.Message
func (*RemoveConfigResponse) Reset ¶
func (x *RemoveConfigResponse) Reset()
func (*RemoveConfigResponse) String ¶
func (x *RemoveConfigResponse) String() string
type Result ¶
type Result struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Error []*ErrorDetail `protobuf:"bytes,3,rep,name=error,proto3" json:"error,omitempty"` Details string `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"` ParentObject string `protobuf:"bytes,5,opt,name=parent_object,json=parentObject,proto3" json:"parent_object,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetDetails ¶
func (*Result) GetError ¶
func (x *Result) GetError() []*ErrorDetail
func (*Result) GetParentObject ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type S3Cache ¶
type S3Cache struct { Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` // contains filtered or unexported fields }
func (*S3Cache) Descriptor
deprecated
func (*S3Cache) GetBucketName ¶
func (*S3Cache) ProtoMessage ¶
func (*S3Cache) ProtoMessage()
func (*S3Cache) ProtoReflect ¶
func (x *S3Cache) ProtoReflect() protoreflect.Message
type SensitiveData ¶
type SensitiveData struct { Unmasked string `protobuf:"bytes,1,opt,name=unmasked,proto3" json:"unmasked,omitempty"` Masked string `protobuf:"bytes,2,opt,name=masked,proto3" json:"masked,omitempty"` // contains filtered or unexported fields }
func (*SensitiveData) Descriptor
deprecated
func (*SensitiveData) Descriptor() ([]byte, []int)
Deprecated: Use SensitiveData.ProtoReflect.Descriptor instead.
func (*SensitiveData) GetMasked ¶
func (x *SensitiveData) GetMasked() string
func (*SensitiveData) GetUnmasked ¶
func (x *SensitiveData) GetUnmasked() string
func (*SensitiveData) ProtoMessage ¶
func (*SensitiveData) ProtoMessage()
func (*SensitiveData) ProtoReflect ¶
func (x *SensitiveData) ProtoReflect() protoreflect.Message
func (*SensitiveData) Reset ¶
func (x *SensitiveData) Reset()
func (*SensitiveData) String ¶
func (x *SensitiveData) String() string
type ServerServiceClient ¶
type ServerServiceClient interface { Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error) AddConfig(ctx context.Context, in *AddConfigRequest, opts ...grpc.CallOption) (*AddConfigResponse, error) RemoveConfig(ctx context.Context, in *RemoveConfigRequest, opts ...grpc.CallOption) (*RemoveConfigResponse, error) ListIntegrations(ctx context.Context, in *ListIntegrationsRequest, opts ...grpc.CallOption) (*ListIntegrationsResponse, error) }
ServerServiceClient is the client API for ServerService 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 NewServerServiceClient ¶
func NewServerServiceClient(cc grpc.ClientConnInterface) ServerServiceClient
type ServerServiceServer ¶
type ServerServiceServer interface { Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error) AddConfig(context.Context, *AddConfigRequest) (*AddConfigResponse, error) RemoveConfig(context.Context, *RemoveConfigRequest) (*RemoveConfigResponse, error) ListIntegrations(context.Context, *ListIntegrationsRequest) (*ListIntegrationsResponse, error) }
ServerServiceServer is the server API for ServerService service. All implementations should embed UnimplementedServerServiceServer for forward compatibility
type Trivy ¶
type Trivy struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` SkipInstall bool `protobuf:"varint,2,opt,name=skip_install,json=skipInstall,proto3" json:"skip_install,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*Trivy) Descriptor
deprecated
func (*Trivy) GetEnabled ¶
func (*Trivy) GetNamespace ¶
func (*Trivy) GetSkipInstall ¶
func (*Trivy) ProtoMessage ¶
func (*Trivy) ProtoMessage()
func (*Trivy) ProtoReflect ¶
func (x *Trivy) ProtoReflect() protoreflect.Message
type UnimplementedAnalyzerServiceServer ¶
type UnimplementedAnalyzerServiceServer struct { }
UnimplementedAnalyzerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAnalyzerServiceServer) Run ¶
func (UnimplementedAnalyzerServiceServer) Run(context.Context, *AnalyzerRunRequest) (*AnalyzerRunResponse, error)
type UnimplementedServerServiceServer ¶
type UnimplementedServerServiceServer struct { }
UnimplementedServerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedServerServiceServer) AddConfig ¶
func (UnimplementedServerServiceServer) AddConfig(context.Context, *AddConfigRequest) (*AddConfigResponse, error)
func (UnimplementedServerServiceServer) Analyze ¶
func (UnimplementedServerServiceServer) Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
func (UnimplementedServerServiceServer) ListIntegrations ¶
func (UnimplementedServerServiceServer) ListIntegrations(context.Context, *ListIntegrationsRequest) (*ListIntegrationsResponse, error)
func (UnimplementedServerServiceServer) RemoveConfig ¶
func (UnimplementedServerServiceServer) RemoveConfig(context.Context, *RemoveConfigRequest) (*RemoveConfigResponse, error)
type UnsafeAnalyzerServiceServer ¶
type UnsafeAnalyzerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAnalyzerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyzerServiceServer will result in compilation errors.
type UnsafeServerServiceServer ¶
type UnsafeServerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServiceServer will result in compilation errors.