Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProviderServiceServer(s grpc.ServiceRegistrar, srv ProviderServiceServer)
- type BasicResponse
- func (*BasicResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BasicResponse) GetError() string
- func (x *BasicResponse) GetSuccessful() bool
- func (*BasicResponse) ProtoMessage()
- func (x *BasicResponse) ProtoReflect() protoreflect.Message
- func (x *BasicResponse) Reset()
- func (x *BasicResponse) String() string
- type CapabilitiesResponse
- func (*CapabilitiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CapabilitiesResponse) GetCapabilities() []*Capability
- func (*CapabilitiesResponse) ProtoMessage()
- func (x *CapabilitiesResponse) ProtoReflect() protoreflect.Message
- func (x *CapabilitiesResponse) Reset()
- func (x *CapabilitiesResponse) String() string
- type Capability
- func (*Capability) Descriptor() ([]byte, []int)deprecated
- func (x *Capability) GetName() string
- func (x *Capability) GetTemplateContext() *structpb.Struct
- func (*Capability) ProtoMessage()
- func (x *Capability) ProtoReflect() protoreflect.Message
- func (x *Capability) Reset()
- func (x *Capability) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAnalysisMode() string
- func (x *Config) GetDependencyPath() string
- func (x *Config) GetLocation() string
- func (x *Config) GetProviderSpecificConfig() *structpb.Struct
- func (x *Config) GetProxy() *Proxy
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Dependency
- func (*Dependency) Descriptor() ([]byte, []int)deprecated
- func (x *Dependency) GetExtras() *structpb.Struct
- func (x *Dependency) GetFileURIPrefix() string
- func (x *Dependency) GetIndirect() bool
- func (x *Dependency) GetLabels() []string
- func (x *Dependency) GetName() string
- func (x *Dependency) GetResolvedIdentifier() string
- func (x *Dependency) GetType() string
- func (x *Dependency) GetVersion() string
- func (*Dependency) ProtoMessage()
- func (x *Dependency) ProtoReflect() protoreflect.Message
- func (x *Dependency) Reset()
- func (x *Dependency) String() string
- type DependencyDAGItem
- func (*DependencyDAGItem) Descriptor() ([]byte, []int)deprecated
- func (x *DependencyDAGItem) GetAddedDeps() []*DependencyDAGItem
- func (x *DependencyDAGItem) GetKey() *Dependency
- func (*DependencyDAGItem) ProtoMessage()
- func (x *DependencyDAGItem) ProtoReflect() protoreflect.Message
- func (x *DependencyDAGItem) Reset()
- func (x *DependencyDAGItem) String() string
- type DependencyDAGResponse
- func (*DependencyDAGResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DependencyDAGResponse) GetError() string
- func (x *DependencyDAGResponse) GetFileDagDep() []*FileDAGDep
- func (x *DependencyDAGResponse) GetSuccessful() bool
- func (*DependencyDAGResponse) ProtoMessage()
- func (x *DependencyDAGResponse) ProtoReflect() protoreflect.Message
- func (x *DependencyDAGResponse) Reset()
- func (x *DependencyDAGResponse) String() string
- type DependencyList
- type DependencyResponse
- func (*DependencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DependencyResponse) GetError() string
- func (x *DependencyResponse) GetFileDep() []*FileDep
- func (x *DependencyResponse) GetSuccessful() bool
- func (*DependencyResponse) ProtoMessage()
- func (x *DependencyResponse) ProtoReflect() protoreflect.Message
- func (x *DependencyResponse) Reset()
- func (x *DependencyResponse) String() string
- type EvaluateRequest
- func (*EvaluateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateRequest) GetCap() string
- func (x *EvaluateRequest) GetConditionInfo() string
- func (x *EvaluateRequest) GetId() int64
- func (*EvaluateRequest) ProtoMessage()
- func (x *EvaluateRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluateRequest) Reset()
- func (x *EvaluateRequest) String() string
- type EvaluateResponse
- func (*EvaluateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateResponse) GetError() string
- func (x *EvaluateResponse) GetResponse() *ProviderEvaluateResponse
- func (x *EvaluateResponse) GetSuccessful() bool
- func (*EvaluateResponse) ProtoMessage()
- func (x *EvaluateResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluateResponse) Reset()
- func (x *EvaluateResponse) String() string
- type ExternalLink
- func (*ExternalLink) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalLink) GetTitle() string
- func (x *ExternalLink) GetUrl() string
- func (*ExternalLink) ProtoMessage()
- func (x *ExternalLink) ProtoReflect() protoreflect.Message
- func (x *ExternalLink) Reset()
- func (x *ExternalLink) String() string
- type FileDAGDep
- func (*FileDAGDep) Descriptor() ([]byte, []int)deprecated
- func (x *FileDAGDep) GetFileURI() string
- func (x *FileDAGDep) GetList() []*DependencyDAGItem
- func (*FileDAGDep) ProtoMessage()
- func (x *FileDAGDep) ProtoReflect() protoreflect.Message
- func (x *FileDAGDep) Reset()
- func (x *FileDAGDep) String() string
- type FileDep
- type GetCodeSnipRequest
- func (*GetCodeSnipRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCodeSnipRequest) GetCodeLocation() *Location
- func (x *GetCodeSnipRequest) GetUri() string
- func (*GetCodeSnipRequest) ProtoMessage()
- func (x *GetCodeSnipRequest) ProtoReflect() protoreflect.Message
- func (x *GetCodeSnipRequest) Reset()
- func (x *GetCodeSnipRequest) String() string
- type GetCodeSnipResponse
- func (*GetCodeSnipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCodeSnipResponse) GetCodeSnip() string
- func (x *GetCodeSnipResponse) GetError() string
- func (x *GetCodeSnipResponse) GetSuccessful() bool
- func (x *GetCodeSnipResponse) GetUri() string
- func (*GetCodeSnipResponse) ProtoMessage()
- func (x *GetCodeSnipResponse) ProtoReflect() protoreflect.Message
- func (x *GetCodeSnipResponse) Reset()
- func (x *GetCodeSnipResponse) String() string
- type IncidentContext
- func (*IncidentContext) Descriptor() ([]byte, []int)deprecated
- func (x *IncidentContext) GetCodeLocation() *Location
- func (x *IncidentContext) GetEffort() int64
- func (x *IncidentContext) GetFileURI() string
- func (x *IncidentContext) GetLineNumber() int64
- func (x *IncidentContext) GetLinks() []*ExternalLink
- func (x *IncidentContext) GetVariables() *structpb.Struct
- func (*IncidentContext) ProtoMessage()
- func (x *IncidentContext) ProtoReflect() protoreflect.Message
- func (x *IncidentContext) Reset()
- func (x *IncidentContext) String() string
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitResponse) GetError() string
- func (x *InitResponse) GetId() int64
- func (x *InitResponse) GetSuccessful() bool
- func (*InitResponse) ProtoMessage()
- func (x *InitResponse) ProtoReflect() protoreflect.Message
- func (x *InitResponse) Reset()
- func (x *InitResponse) String() string
- type Location
- type Position
- type ProviderEvaluateResponse
- func (*ProviderEvaluateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderEvaluateResponse) GetIncidentContexts() []*IncidentContext
- func (x *ProviderEvaluateResponse) GetMatched() bool
- func (x *ProviderEvaluateResponse) GetTemplateContext() *structpb.Struct
- func (*ProviderEvaluateResponse) ProtoMessage()
- func (x *ProviderEvaluateResponse) ProtoReflect() protoreflect.Message
- func (x *ProviderEvaluateResponse) Reset()
- func (x *ProviderEvaluateResponse) String() string
- type ProviderServiceClient
- type ProviderServiceServer
- type Proxy
- func (*Proxy) Descriptor() ([]byte, []int)deprecated
- func (x *Proxy) GetHTTPProxy() string
- func (x *Proxy) GetHTTPSProxy() string
- func (x *Proxy) GetNoProxy() string
- func (*Proxy) ProtoMessage()
- func (x *Proxy) ProtoReflect() protoreflect.Message
- func (x *Proxy) Reset()
- func (x *Proxy) String() string
- type ServiceRequest
- type UnimplementedProviderServiceServer
- func (UnimplementedProviderServiceServer) Capabilities(context.Context, *emptypb.Empty) (*CapabilitiesResponse, error)
- func (UnimplementedProviderServiceServer) Evaluate(context.Context, *EvaluateRequest) (*EvaluateResponse, error)
- func (UnimplementedProviderServiceServer) GetCodeSnip(context.Context, *GetCodeSnipRequest) (*GetCodeSnipResponse, error)
- func (UnimplementedProviderServiceServer) GetDependencies(context.Context, *ServiceRequest) (*DependencyResponse, error)
- func (UnimplementedProviderServiceServer) GetDependenciesDAG(context.Context, *ServiceRequest) (*DependencyDAGResponse, error)
- func (UnimplementedProviderServiceServer) Init(context.Context, *Config) (*InitResponse, error)
- func (UnimplementedProviderServiceServer) Stop(context.Context, *ServiceRequest) (*emptypb.Empty, error)
- type UnsafeProviderServiceServer
Constants ¶
const ( ProviderService_Capabilities_FullMethodName = "/provider.ProviderService/Capabilities" ProviderService_Init_FullMethodName = "/provider.ProviderService/Init" ProviderService_Evaluate_FullMethodName = "/provider.ProviderService/Evaluate" ProviderService_GetCodeSnip_FullMethodName = "/provider.ProviderService/GetCodeSnip" ProviderService_Stop_FullMethodName = "/provider.ProviderService/Stop" ProviderService_GetDependencies_FullMethodName = "/provider.ProviderService/GetDependencies" ProviderService_GetDependenciesDAG_FullMethodName = "/provider.ProviderService/GetDependenciesDAG" )
Variables ¶
var File_provider_internal_grpc_library_proto protoreflect.FileDescriptor
var ProviderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "provider.ProviderService", HandlerType: (*ProviderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Capabilities", Handler: _ProviderService_Capabilities_Handler, }, { MethodName: "Init", Handler: _ProviderService_Init_Handler, }, { MethodName: "Evaluate", Handler: _ProviderService_Evaluate_Handler, }, { MethodName: "GetCodeSnip", Handler: _ProviderService_GetCodeSnip_Handler, }, { MethodName: "Stop", Handler: _ProviderService_Stop_Handler, }, { MethodName: "GetDependencies", Handler: _ProviderService_GetDependencies_Handler, }, { MethodName: "GetDependenciesDAG", Handler: _ProviderService_GetDependenciesDAG_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "provider/internal/grpc/library.proto", }
ProviderService_ServiceDesc is the grpc.ServiceDesc for ProviderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderServiceServer ¶
func RegisterProviderServiceServer(s grpc.ServiceRegistrar, srv ProviderServiceServer)
Types ¶
type BasicResponse ¶
type BasicResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Successful bool `protobuf:"varint,2,opt,name=successful,proto3" json:"successful,omitempty"` // contains filtered or unexported fields }
func (*BasicResponse) Descriptor
deprecated
func (*BasicResponse) Descriptor() ([]byte, []int)
Deprecated: Use BasicResponse.ProtoReflect.Descriptor instead.
func (*BasicResponse) GetError ¶
func (x *BasicResponse) GetError() string
func (*BasicResponse) GetSuccessful ¶
func (x *BasicResponse) GetSuccessful() bool
func (*BasicResponse) ProtoMessage ¶
func (*BasicResponse) ProtoMessage()
func (*BasicResponse) ProtoReflect ¶
func (x *BasicResponse) ProtoReflect() protoreflect.Message
func (*BasicResponse) Reset ¶
func (x *BasicResponse) Reset()
func (*BasicResponse) String ¶
func (x *BasicResponse) String() string
type CapabilitiesResponse ¶
type CapabilitiesResponse struct { Capabilities []*Capability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"` // contains filtered or unexported fields }
func (*CapabilitiesResponse) Descriptor
deprecated
func (*CapabilitiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CapabilitiesResponse.ProtoReflect.Descriptor instead.
func (*CapabilitiesResponse) GetCapabilities ¶
func (x *CapabilitiesResponse) GetCapabilities() []*Capability
func (*CapabilitiesResponse) ProtoMessage ¶
func (*CapabilitiesResponse) ProtoMessage()
func (*CapabilitiesResponse) ProtoReflect ¶
func (x *CapabilitiesResponse) ProtoReflect() protoreflect.Message
func (*CapabilitiesResponse) Reset ¶
func (x *CapabilitiesResponse) Reset()
func (*CapabilitiesResponse) String ¶
func (x *CapabilitiesResponse) String() string
type Capability ¶
type Capability struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` TemplateContext *structpb.Struct `protobuf:"bytes,2,opt,name=templateContext,proto3" json:"templateContext,omitempty"` // contains filtered or unexported fields }
func (*Capability) Descriptor
deprecated
func (*Capability) Descriptor() ([]byte, []int)
Deprecated: Use Capability.ProtoReflect.Descriptor instead.
func (*Capability) GetName ¶
func (x *Capability) GetName() string
func (*Capability) GetTemplateContext ¶
func (x *Capability) GetTemplateContext() *structpb.Struct
func (*Capability) ProtoMessage ¶
func (*Capability) ProtoMessage()
func (*Capability) ProtoReflect ¶
func (x *Capability) ProtoReflect() protoreflect.Message
func (*Capability) Reset ¶
func (x *Capability) Reset()
func (*Capability) String ¶
func (x *Capability) String() string
type Config ¶
type Config struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` DependencyPath string `protobuf:"bytes,2,opt,name=dependencyPath,proto3" json:"dependencyPath,omitempty"` AnalysisMode string `protobuf:"bytes,4,opt,name=analysisMode,proto3" json:"analysisMode,omitempty"` ProviderSpecificConfig *structpb.Struct `protobuf:"bytes,5,opt,name=providerSpecificConfig,proto3" json:"providerSpecificConfig,omitempty"` Proxy *Proxy `protobuf:"bytes,6,opt,name=proxy,proto3" json:"proxy,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAnalysisMode ¶
func (*Config) GetDependencyPath ¶
func (*Config) GetLocation ¶
func (*Config) GetProviderSpecificConfig ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Dependency ¶
type Dependency struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` ResolvedIdentifier string `protobuf:"bytes,4,opt,name=resolvedIdentifier,proto3" json:"resolvedIdentifier,omitempty"` FileURIPrefix string `protobuf:"bytes,5,opt,name=fileURIPrefix,proto3" json:"fileURIPrefix,omitempty"` Indirect bool `protobuf:"varint,6,opt,name=indirect,proto3" json:"indirect,omitempty"` Extras *structpb.Struct `protobuf:"bytes,7,opt,name=extras,proto3" json:"extras,omitempty"` Labels []string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
func (*Dependency) Descriptor
deprecated
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetExtras ¶
func (x *Dependency) GetExtras() *structpb.Struct
func (*Dependency) GetFileURIPrefix ¶
func (x *Dependency) GetFileURIPrefix() string
func (*Dependency) GetIndirect ¶
func (x *Dependency) GetIndirect() bool
func (*Dependency) GetLabels ¶
func (x *Dependency) GetLabels() []string
func (*Dependency) GetName ¶
func (x *Dependency) GetName() string
func (*Dependency) GetResolvedIdentifier ¶
func (x *Dependency) GetResolvedIdentifier() string
func (*Dependency) GetType ¶
func (x *Dependency) GetType() string
func (*Dependency) GetVersion ¶
func (x *Dependency) GetVersion() string
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶
func (x *Dependency) Reset()
func (*Dependency) String ¶
func (x *Dependency) String() string
type DependencyDAGItem ¶
type DependencyDAGItem struct { Key *Dependency `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` AddedDeps []*DependencyDAGItem `protobuf:"bytes,2,rep,name=addedDeps,proto3" json:"addedDeps,omitempty"` // contains filtered or unexported fields }
func (*DependencyDAGItem) Descriptor
deprecated
func (*DependencyDAGItem) Descriptor() ([]byte, []int)
Deprecated: Use DependencyDAGItem.ProtoReflect.Descriptor instead.
func (*DependencyDAGItem) GetAddedDeps ¶
func (x *DependencyDAGItem) GetAddedDeps() []*DependencyDAGItem
func (*DependencyDAGItem) GetKey ¶
func (x *DependencyDAGItem) GetKey() *Dependency
func (*DependencyDAGItem) ProtoMessage ¶
func (*DependencyDAGItem) ProtoMessage()
func (*DependencyDAGItem) ProtoReflect ¶
func (x *DependencyDAGItem) ProtoReflect() protoreflect.Message
func (*DependencyDAGItem) Reset ¶
func (x *DependencyDAGItem) Reset()
func (*DependencyDAGItem) String ¶
func (x *DependencyDAGItem) String() string
type DependencyDAGResponse ¶
type DependencyDAGResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` FileDagDep []*FileDAGDep `protobuf:"bytes,3,rep,name=fileDagDep,proto3" json:"fileDagDep,omitempty"` // contains filtered or unexported fields }
func (*DependencyDAGResponse) Descriptor
deprecated
func (*DependencyDAGResponse) Descriptor() ([]byte, []int)
Deprecated: Use DependencyDAGResponse.ProtoReflect.Descriptor instead.
func (*DependencyDAGResponse) GetError ¶
func (x *DependencyDAGResponse) GetError() string
func (*DependencyDAGResponse) GetFileDagDep ¶
func (x *DependencyDAGResponse) GetFileDagDep() []*FileDAGDep
func (*DependencyDAGResponse) GetSuccessful ¶
func (x *DependencyDAGResponse) GetSuccessful() bool
func (*DependencyDAGResponse) ProtoMessage ¶
func (*DependencyDAGResponse) ProtoMessage()
func (*DependencyDAGResponse) ProtoReflect ¶
func (x *DependencyDAGResponse) ProtoReflect() protoreflect.Message
func (*DependencyDAGResponse) Reset ¶
func (x *DependencyDAGResponse) Reset()
func (*DependencyDAGResponse) String ¶
func (x *DependencyDAGResponse) String() string
type DependencyList ¶
type DependencyList struct { Deps []*Dependency `protobuf:"bytes,1,rep,name=deps,proto3" json:"deps,omitempty"` // contains filtered or unexported fields }
func (*DependencyList) Descriptor
deprecated
func (*DependencyList) Descriptor() ([]byte, []int)
Deprecated: Use DependencyList.ProtoReflect.Descriptor instead.
func (*DependencyList) GetDeps ¶
func (x *DependencyList) GetDeps() []*Dependency
func (*DependencyList) ProtoMessage ¶
func (*DependencyList) ProtoMessage()
func (*DependencyList) ProtoReflect ¶
func (x *DependencyList) ProtoReflect() protoreflect.Message
func (*DependencyList) Reset ¶
func (x *DependencyList) Reset()
func (*DependencyList) String ¶
func (x *DependencyList) String() string
type DependencyResponse ¶
type DependencyResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` FileDep []*FileDep `protobuf:"bytes,3,rep,name=fileDep,proto3" json:"fileDep,omitempty"` // contains filtered or unexported fields }
func (*DependencyResponse) Descriptor
deprecated
func (*DependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use DependencyResponse.ProtoReflect.Descriptor instead.
func (*DependencyResponse) GetError ¶
func (x *DependencyResponse) GetError() string
func (*DependencyResponse) GetFileDep ¶
func (x *DependencyResponse) GetFileDep() []*FileDep
func (*DependencyResponse) GetSuccessful ¶
func (x *DependencyResponse) GetSuccessful() bool
func (*DependencyResponse) ProtoMessage ¶
func (*DependencyResponse) ProtoMessage()
func (*DependencyResponse) ProtoReflect ¶
func (x *DependencyResponse) ProtoReflect() protoreflect.Message
func (*DependencyResponse) Reset ¶
func (x *DependencyResponse) Reset()
func (*DependencyResponse) String ¶
func (x *DependencyResponse) String() string
type EvaluateRequest ¶
type EvaluateRequest struct { Cap string `protobuf:"bytes,1,opt,name=cap,proto3" json:"cap,omitempty"` ConditionInfo string `protobuf:"bytes,2,opt,name=conditionInfo,proto3" json:"conditionInfo,omitempty"` Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EvaluateRequest) Descriptor
deprecated
func (*EvaluateRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateRequest.ProtoReflect.Descriptor instead.
func (*EvaluateRequest) GetCap ¶
func (x *EvaluateRequest) GetCap() string
func (*EvaluateRequest) GetConditionInfo ¶
func (x *EvaluateRequest) GetConditionInfo() string
func (*EvaluateRequest) GetId ¶
func (x *EvaluateRequest) GetId() int64
func (*EvaluateRequest) ProtoMessage ¶
func (*EvaluateRequest) ProtoMessage()
func (*EvaluateRequest) ProtoReflect ¶
func (x *EvaluateRequest) ProtoReflect() protoreflect.Message
func (*EvaluateRequest) Reset ¶
func (x *EvaluateRequest) Reset()
func (*EvaluateRequest) String ¶
func (x *EvaluateRequest) String() string
type EvaluateResponse ¶
type EvaluateResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Successful bool `protobuf:"varint,2,opt,name=successful,proto3" json:"successful,omitempty"` Response *ProviderEvaluateResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*EvaluateResponse) Descriptor
deprecated
func (*EvaluateResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateResponse.ProtoReflect.Descriptor instead.
func (*EvaluateResponse) GetError ¶
func (x *EvaluateResponse) GetError() string
func (*EvaluateResponse) GetResponse ¶
func (x *EvaluateResponse) GetResponse() *ProviderEvaluateResponse
func (*EvaluateResponse) GetSuccessful ¶
func (x *EvaluateResponse) GetSuccessful() bool
func (*EvaluateResponse) ProtoMessage ¶
func (*EvaluateResponse) ProtoMessage()
func (*EvaluateResponse) ProtoReflect ¶
func (x *EvaluateResponse) ProtoReflect() protoreflect.Message
func (*EvaluateResponse) Reset ¶
func (x *EvaluateResponse) Reset()
func (*EvaluateResponse) String ¶
func (x *EvaluateResponse) String() string
type ExternalLink ¶
type ExternalLink struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*ExternalLink) Descriptor
deprecated
func (*ExternalLink) Descriptor() ([]byte, []int)
Deprecated: Use ExternalLink.ProtoReflect.Descriptor instead.
func (*ExternalLink) GetTitle ¶
func (x *ExternalLink) GetTitle() string
func (*ExternalLink) GetUrl ¶
func (x *ExternalLink) GetUrl() string
func (*ExternalLink) ProtoMessage ¶
func (*ExternalLink) ProtoMessage()
func (*ExternalLink) ProtoReflect ¶
func (x *ExternalLink) ProtoReflect() protoreflect.Message
func (*ExternalLink) Reset ¶
func (x *ExternalLink) Reset()
func (*ExternalLink) String ¶
func (x *ExternalLink) String() string
type FileDAGDep ¶
type FileDAGDep struct { FileURI string `protobuf:"bytes,3,opt,name=fileURI,proto3" json:"fileURI,omitempty"` List []*DependencyDAGItem `protobuf:"bytes,4,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FileDAGDep) Descriptor
deprecated
func (*FileDAGDep) Descriptor() ([]byte, []int)
Deprecated: Use FileDAGDep.ProtoReflect.Descriptor instead.
func (*FileDAGDep) GetFileURI ¶
func (x *FileDAGDep) GetFileURI() string
func (*FileDAGDep) GetList ¶
func (x *FileDAGDep) GetList() []*DependencyDAGItem
func (*FileDAGDep) ProtoMessage ¶
func (*FileDAGDep) ProtoMessage()
func (*FileDAGDep) ProtoReflect ¶
func (x *FileDAGDep) ProtoReflect() protoreflect.Message
func (*FileDAGDep) Reset ¶
func (x *FileDAGDep) Reset()
func (*FileDAGDep) String ¶
func (x *FileDAGDep) String() string
type FileDep ¶
type FileDep struct { FileURI string `protobuf:"bytes,3,opt,name=fileURI,proto3" json:"fileURI,omitempty"` List *DependencyList `protobuf:"bytes,4,opt,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FileDep) Descriptor
deprecated
func (*FileDep) GetFileURI ¶
func (*FileDep) GetList ¶
func (x *FileDep) GetList() *DependencyList
func (*FileDep) ProtoMessage ¶
func (*FileDep) ProtoMessage()
func (*FileDep) ProtoReflect ¶
func (x *FileDep) ProtoReflect() protoreflect.Message
type GetCodeSnipRequest ¶
type GetCodeSnipRequest struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` CodeLocation *Location `protobuf:"bytes,2,opt,name=codeLocation,proto3" json:"codeLocation,omitempty"` // contains filtered or unexported fields }
func (*GetCodeSnipRequest) Descriptor
deprecated
func (*GetCodeSnipRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCodeSnipRequest.ProtoReflect.Descriptor instead.
func (*GetCodeSnipRequest) GetCodeLocation ¶
func (x *GetCodeSnipRequest) GetCodeLocation() *Location
func (*GetCodeSnipRequest) GetUri ¶
func (x *GetCodeSnipRequest) GetUri() string
func (*GetCodeSnipRequest) ProtoMessage ¶
func (*GetCodeSnipRequest) ProtoMessage()
func (*GetCodeSnipRequest) ProtoReflect ¶
func (x *GetCodeSnipRequest) ProtoReflect() protoreflect.Message
func (*GetCodeSnipRequest) Reset ¶
func (x *GetCodeSnipRequest) Reset()
func (*GetCodeSnipRequest) String ¶
func (x *GetCodeSnipRequest) String() string
type GetCodeSnipResponse ¶
type GetCodeSnipResponse struct { CodeSnip string `protobuf:"bytes,1,opt,name=codeSnip,proto3" json:"codeSnip,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` Successful bool `protobuf:"varint,4,opt,name=successful,proto3" json:"successful,omitempty"` // contains filtered or unexported fields }
func (*GetCodeSnipResponse) Descriptor
deprecated
func (*GetCodeSnipResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCodeSnipResponse.ProtoReflect.Descriptor instead.
func (*GetCodeSnipResponse) GetCodeSnip ¶
func (x *GetCodeSnipResponse) GetCodeSnip() string
func (*GetCodeSnipResponse) GetError ¶
func (x *GetCodeSnipResponse) GetError() string
func (*GetCodeSnipResponse) GetSuccessful ¶
func (x *GetCodeSnipResponse) GetSuccessful() bool
func (*GetCodeSnipResponse) GetUri ¶
func (x *GetCodeSnipResponse) GetUri() string
func (*GetCodeSnipResponse) ProtoMessage ¶
func (*GetCodeSnipResponse) ProtoMessage()
func (*GetCodeSnipResponse) ProtoReflect ¶
func (x *GetCodeSnipResponse) ProtoReflect() protoreflect.Message
func (*GetCodeSnipResponse) Reset ¶
func (x *GetCodeSnipResponse) Reset()
func (*GetCodeSnipResponse) String ¶
func (x *GetCodeSnipResponse) String() string
type IncidentContext ¶
type IncidentContext struct { FileURI string `protobuf:"bytes,1,opt,name=fileURI,proto3" json:"fileURI,omitempty"` Effort *int64 `protobuf:"varint,2,opt,name=Effort,proto3,oneof" json:"Effort,omitempty"` CodeLocation *Location `protobuf:"bytes,3,opt,name=codeLocation,proto3" json:"codeLocation,omitempty"` LineNumber *int64 `protobuf:"varint,4,opt,name=LineNumber,proto3,oneof" json:"LineNumber,omitempty"` Variables *structpb.Struct `protobuf:"bytes,5,opt,name=variables,proto3" json:"variables,omitempty"` Links []*ExternalLink `protobuf:"bytes,6,rep,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
func (*IncidentContext) Descriptor
deprecated
func (*IncidentContext) Descriptor() ([]byte, []int)
Deprecated: Use IncidentContext.ProtoReflect.Descriptor instead.
func (*IncidentContext) GetCodeLocation ¶
func (x *IncidentContext) GetCodeLocation() *Location
func (*IncidentContext) GetEffort ¶
func (x *IncidentContext) GetEffort() int64
func (*IncidentContext) GetFileURI ¶
func (x *IncidentContext) GetFileURI() string
func (*IncidentContext) GetLineNumber ¶
func (x *IncidentContext) GetLineNumber() int64
func (*IncidentContext) GetLinks ¶
func (x *IncidentContext) GetLinks() []*ExternalLink
func (*IncidentContext) GetVariables ¶
func (x *IncidentContext) GetVariables() *structpb.Struct
func (*IncidentContext) ProtoMessage ¶
func (*IncidentContext) ProtoMessage()
func (*IncidentContext) ProtoReflect ¶
func (x *IncidentContext) ProtoReflect() protoreflect.Message
func (*IncidentContext) Reset ¶
func (x *IncidentContext) Reset()
func (*IncidentContext) String ¶
func (x *IncidentContext) String() string
type InitResponse ¶
type InitResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Successful bool `protobuf:"varint,2,opt,name=successful,proto3" json:"successful,omitempty"` Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) GetError ¶
func (x *InitResponse) GetError() string
func (*InitResponse) GetId ¶
func (x *InitResponse) GetId() int64
func (*InitResponse) GetSuccessful ¶
func (x *InitResponse) GetSuccessful() bool
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type Location ¶
type Location struct { StartPosition *Position `protobuf:"bytes,1,opt,name=startPosition,proto3" json:"startPosition,omitempty"` EndPosition *Position `protobuf:"bytes,2,opt,name=endPosition,proto3" json:"endPosition,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetEndPosition ¶
func (*Location) GetStartPosition ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type Position ¶
type Position struct { Line float64 `protobuf:"fixed64,1,opt,name=line,proto3" json:"line,omitempty"` Character float64 `protobuf:"fixed64,2,opt,name=character,proto3" json:"character,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) GetCharacter ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type ProviderEvaluateResponse ¶
type ProviderEvaluateResponse struct { Matched bool `protobuf:"varint,1,opt,name=matched,proto3" json:"matched,omitempty"` IncidentContexts []*IncidentContext `protobuf:"bytes,2,rep,name=incidentContexts,proto3" json:"incidentContexts,omitempty"` TemplateContext *structpb.Struct `protobuf:"bytes,3,opt,name=templateContext,proto3" json:"templateContext,omitempty"` // contains filtered or unexported fields }
func (*ProviderEvaluateResponse) Descriptor
deprecated
func (*ProviderEvaluateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProviderEvaluateResponse.ProtoReflect.Descriptor instead.
func (*ProviderEvaluateResponse) GetIncidentContexts ¶
func (x *ProviderEvaluateResponse) GetIncidentContexts() []*IncidentContext
func (*ProviderEvaluateResponse) GetMatched ¶
func (x *ProviderEvaluateResponse) GetMatched() bool
func (*ProviderEvaluateResponse) GetTemplateContext ¶
func (x *ProviderEvaluateResponse) GetTemplateContext() *structpb.Struct
func (*ProviderEvaluateResponse) ProtoMessage ¶
func (*ProviderEvaluateResponse) ProtoMessage()
func (*ProviderEvaluateResponse) ProtoReflect ¶
func (x *ProviderEvaluateResponse) ProtoReflect() protoreflect.Message
func (*ProviderEvaluateResponse) Reset ¶
func (x *ProviderEvaluateResponse) Reset()
func (*ProviderEvaluateResponse) String ¶
func (x *ProviderEvaluateResponse) String() string
type ProviderServiceClient ¶
type ProviderServiceClient interface { Capabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CapabilitiesResponse, error) Init(ctx context.Context, in *Config, opts ...grpc.CallOption) (*InitResponse, error) Evaluate(ctx context.Context, in *EvaluateRequest, opts ...grpc.CallOption) (*EvaluateResponse, error) GetCodeSnip(ctx context.Context, in *GetCodeSnipRequest, opts ...grpc.CallOption) (*GetCodeSnipResponse, error) Stop(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetDependencies(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*DependencyResponse, error) GetDependenciesDAG(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*DependencyDAGResponse, error) }
ProviderServiceClient is the client API for ProviderService 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 NewProviderServiceClient ¶
func NewProviderServiceClient(cc grpc.ClientConnInterface) ProviderServiceClient
type ProviderServiceServer ¶
type ProviderServiceServer interface { Capabilities(context.Context, *emptypb.Empty) (*CapabilitiesResponse, error) Init(context.Context, *Config) (*InitResponse, error) Evaluate(context.Context, *EvaluateRequest) (*EvaluateResponse, error) GetCodeSnip(context.Context, *GetCodeSnipRequest) (*GetCodeSnipResponse, error) Stop(context.Context, *ServiceRequest) (*emptypb.Empty, error) GetDependencies(context.Context, *ServiceRequest) (*DependencyResponse, error) GetDependenciesDAG(context.Context, *ServiceRequest) (*DependencyDAGResponse, error) // contains filtered or unexported methods }
ProviderServiceServer is the server API for ProviderService service. All implementations must embed UnimplementedProviderServiceServer for forward compatibility
type Proxy ¶
type Proxy struct { HTTPProxy string `protobuf:"bytes,1,opt,name=HTTPProxy,proto3" json:"HTTPProxy,omitempty"` HTTPSProxy string `protobuf:"bytes,2,opt,name=HTTPSProxy,proto3" json:"HTTPSProxy,omitempty"` NoProxy string `protobuf:"bytes,3,opt,name=NoProxy,proto3" json:"NoProxy,omitempty"` // contains filtered or unexported fields }
func (*Proxy) Descriptor
deprecated
func (*Proxy) GetHTTPProxy ¶
func (*Proxy) GetHTTPSProxy ¶
func (*Proxy) GetNoProxy ¶
func (*Proxy) ProtoMessage ¶
func (*Proxy) ProtoMessage()
func (*Proxy) ProtoReflect ¶
func (x *Proxy) ProtoReflect() protoreflect.Message
type ServiceRequest ¶
type ServiceRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ServiceRequest) Descriptor
deprecated
func (*ServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServiceRequest.ProtoReflect.Descriptor instead.
func (*ServiceRequest) GetId ¶
func (x *ServiceRequest) GetId() int64
func (*ServiceRequest) ProtoMessage ¶
func (*ServiceRequest) ProtoMessage()
func (*ServiceRequest) ProtoReflect ¶
func (x *ServiceRequest) ProtoReflect() protoreflect.Message
func (*ServiceRequest) Reset ¶
func (x *ServiceRequest) Reset()
func (*ServiceRequest) String ¶
func (x *ServiceRequest) String() string
type UnimplementedProviderServiceServer ¶
type UnimplementedProviderServiceServer struct { }
UnimplementedProviderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServiceServer) Capabilities ¶
func (UnimplementedProviderServiceServer) Capabilities(context.Context, *emptypb.Empty) (*CapabilitiesResponse, error)
func (UnimplementedProviderServiceServer) Evaluate ¶
func (UnimplementedProviderServiceServer) Evaluate(context.Context, *EvaluateRequest) (*EvaluateResponse, error)
func (UnimplementedProviderServiceServer) GetCodeSnip ¶
func (UnimplementedProviderServiceServer) GetCodeSnip(context.Context, *GetCodeSnipRequest) (*GetCodeSnipResponse, error)
func (UnimplementedProviderServiceServer) GetDependencies ¶
func (UnimplementedProviderServiceServer) GetDependencies(context.Context, *ServiceRequest) (*DependencyResponse, error)
func (UnimplementedProviderServiceServer) GetDependenciesDAG ¶
func (UnimplementedProviderServiceServer) GetDependenciesDAG(context.Context, *ServiceRequest) (*DependencyDAGResponse, error)
func (UnimplementedProviderServiceServer) Init ¶
func (UnimplementedProviderServiceServer) Init(context.Context, *Config) (*InitResponse, error)
func (UnimplementedProviderServiceServer) Stop ¶
func (UnimplementedProviderServiceServer) Stop(context.Context, *ServiceRequest) (*emptypb.Empty, error)
type UnsafeProviderServiceServer ¶
type UnsafeProviderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServiceServer will result in compilation errors.