v1

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

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)

Variables

View Source
var File_schema_v1_schema_proto protoreflect.FileDescriptor
View Source
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/schema.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 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) Descriptor() ([]byte, []int)

Deprecated: Use Analysis.ProtoReflect.Descriptor instead.

func (*Analysis) GetAnalysis

func (x *Analysis) GetAnalysis() []*AnalysisItem

func (*Analysis) ProtoMessage

func (*Analysis) ProtoMessage()

func (*Analysis) ProtoReflect

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

func (*Analysis) Reset

func (x *Analysis) Reset()

func (*Analysis) String

func (x *Analysis) String() string

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetAzureCache

func (x *Cache) GetAzureCache() *AzureCache

func (*Cache) GetCacheType

func (m *Cache) GetCacheType() isCache_CacheType

func (*Cache) GetGcsCache

func (x *Cache) GetGcsCache() *GCSCache

func (*Cache) GetS3Cache

func (x *Cache) GetS3Cache() *S3Cache

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GCSCache.ProtoReflect.Descriptor instead.

func (*GCSCache) GetBucketName

func (x *GCSCache) GetBucketName() string

func (*GCSCache) GetProjectId

func (x *GCSCache) GetProjectId() string

func (*GCSCache) GetRegion

func (x *GCSCache) GetRegion() string

func (*GCSCache) ProtoMessage

func (*GCSCache) ProtoMessage()

func (*GCSCache) ProtoReflect

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

func (*GCSCache) Reset

func (x *GCSCache) Reset()

func (*GCSCache) String

func (x *GCSCache) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDetails

func (x *Result) GetDetails() string

func (*Result) GetError

func (x *Result) GetError() []*ErrorDetail

func (*Result) GetKind

func (x *Result) GetKind() string

func (*Result) GetName

func (x *Result) GetName() string

func (*Result) GetParentObject

func (x *Result) GetParentObject() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use S3Cache.ProtoReflect.Descriptor instead.

func (*S3Cache) GetBucketName

func (x *S3Cache) GetBucketName() string

func (*S3Cache) GetRegion

func (x *S3Cache) GetRegion() string

func (*S3Cache) ProtoMessage

func (*S3Cache) ProtoMessage()

func (*S3Cache) ProtoReflect

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

func (*S3Cache) Reset

func (x *S3Cache) Reset()

func (*S3Cache) String

func (x *S3Cache) String() string

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.

type ServerServiceServer

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) Descriptor() ([]byte, []int)

Deprecated: Use Trivy.ProtoReflect.Descriptor instead.

func (*Trivy) GetEnabled

func (x *Trivy) GetEnabled() bool

func (*Trivy) GetNamespace

func (x *Trivy) GetNamespace() string

func (*Trivy) GetSkipInstall

func (x *Trivy) GetSkipInstall() bool

func (*Trivy) ProtoMessage

func (*Trivy) ProtoMessage()

func (*Trivy) ProtoReflect

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

func (*Trivy) Reset

func (x *Trivy) Reset()

func (*Trivy) String

func (x *Trivy) String() string

type UnimplementedServerServiceServer

type UnimplementedServerServiceServer struct {
}

UnimplementedServerServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedServerServiceServer) AddConfig

func (UnimplementedServerServiceServer) Analyze

func (UnimplementedServerServiceServer) ListIntegrations

func (UnimplementedServerServiceServer) RemoveConfig

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.

Jump to

Keyboard shortcuts

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