grpc

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

GRPC Communication

Protoc Installation

To install protoc, follow the directions found here: https://grpc.io/docs/protoc-installation/

Linux Installation

Below is a list of instructions specifically for Linux on installing protoc.

Go to https://github.com/protocolbuffers/protobuf/releases and download the appropriate zip file, say protoc-24.3-linux-x86_64.zip to ~/Downloads/`. Then run:

cd ~/Downloads/
unzip protoc-24.3-linux-x86_64.zip -d protoc-24.3-linux-x86_64
cd protoc-24.3-linux-x86_64
sudo mv ./bin/* /usr/local/bin
sudo mv ./include/* /usr/local/include

Update Provider GRPC Definition

To update the Provider GRPC definition, update library.proto and run:

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative provider/internal/grpc/library.proto

Documentation

Index

Constants

View Source
const (
	ProviderService_Capabilities_FullMethodName       = "/provider.ProviderService/Capabilities"
	ProviderService_Init_FullMethodName               = "/provider.ProviderService/Init"
	ProviderService_Evaluate_FullMethodName           = "/provider.ProviderService/Evaluate"
	ProviderService_Stop_FullMethodName               = "/provider.ProviderService/Stop"
	ProviderService_GetDependencies_FullMethodName    = "/provider.ProviderService/GetDependencies"
	ProviderService_GetDependenciesDAG_FullMethodName = "/provider.ProviderService/GetDependenciesDAG"
)
View Source
const (
	ProviderCodeLocationService_GetCodeSnip_FullMethodName = "/provider.ProviderCodeLocationService/GetCodeSnip"
)
View Source
const (
	ProviderDependencyLocationService_GetDependencyLocation_FullMethodName = "/provider.ProviderDependencyLocationService/GetDependencyLocation"
)

Variables

View Source
var File_provider_internal_grpc_library_proto protoreflect.FileDescriptor
View Source
var ProviderCodeLocationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "provider.ProviderCodeLocationService",
	HandlerType: (*ProviderCodeLocationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCodeSnip",
			Handler:    _ProviderCodeLocationService_GetCodeSnip_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "provider/internal/grpc/library.proto",
}

ProviderCodeLocationService_ServiceDesc is the grpc.ServiceDesc for ProviderCodeLocationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProviderDependencyLocationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "provider.ProviderDependencyLocationService",
	HandlerType: (*ProviderDependencyLocationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDependencyLocation",
			Handler:    _ProviderDependencyLocationService_GetDependencyLocation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "provider/internal/grpc/library.proto",
}

ProviderDependencyLocationService_ServiceDesc is the grpc.ServiceDesc for ProviderDependencyLocationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
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: "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 RegisterProviderCodeLocationServiceServer added in v0.4.0

func RegisterProviderCodeLocationServiceServer(s grpc.ServiceRegistrar, srv ProviderCodeLocationServiceServer)

func RegisterProviderDependencyLocationServiceServer added in v0.4.0

func RegisterProviderDependencyLocationServiceServer(s grpc.ServiceRegistrar, srv ProviderDependencyLocationServiceServer)

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAnalysisMode

func (x *Config) GetAnalysisMode() string

func (*Config) GetDependencyPath

func (x *Config) GetDependencyPath() string

func (*Config) GetLocation

func (x *Config) GetLocation() string

func (*Config) GetProviderSpecificConfig

func (x *Config) GetProviderSpecificConfig() *structpb.Struct

func (*Config) GetProxy

func (x *Config) GetProxy() *Proxy

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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"`
	Classifier         string           `protobuf:"bytes,3,opt,name=classifier,proto3" json:"classifier,omitempty"`
	Type               string           `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	ResolvedIdentifier string           `protobuf:"bytes,5,opt,name=resolvedIdentifier,proto3" json:"resolvedIdentifier,omitempty"`
	FileURIPrefix      string           `protobuf:"bytes,6,opt,name=fileURIPrefix,proto3" json:"fileURIPrefix,omitempty"`
	Indirect           bool             `protobuf:"varint,7,opt,name=indirect,proto3" json:"indirect,omitempty"`
	Extras             *structpb.Struct `protobuf:"bytes,8,opt,name=extras,proto3" json:"extras,omitempty"`
	Labels             []string         `protobuf:"bytes,9,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) GetClassifier added in v0.4.0

func (x *Dependency) GetClassifier() string

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

Deprecated: Use FileDep.ProtoReflect.Descriptor instead.

func (*FileDep) GetFileURI

func (x *FileDep) GetFileURI() string

func (*FileDep) GetList

func (x *FileDep) GetList() *DependencyList

func (*FileDep) ProtoMessage

func (*FileDep) ProtoMessage()

func (*FileDep) ProtoReflect

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

func (*FileDep) Reset

func (x *FileDep) Reset()

func (*FileDep) String

func (x *FileDep) String() string

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 {
	Snip string `protobuf:"bytes,1,opt,name=snip,proto3" json:"snip,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCodeSnipResponse) Descriptor deprecated

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

Deprecated: Use GetCodeSnipResponse.ProtoReflect.Descriptor instead.

func (*GetCodeSnipResponse) GetSnip added in v0.4.0

func (x *GetCodeSnipResponse) GetSnip() 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 GetDependencyLocationRequest added in v0.4.0

type GetDependencyLocationRequest struct {
	Dep     *Dependency `protobuf:"bytes,1,opt,name=dep,proto3" json:"dep,omitempty"`
	DepFile string      `protobuf:"bytes,2,opt,name=DepFile,proto3" json:"DepFile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDependencyLocationRequest) Descriptor deprecated added in v0.4.0

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

Deprecated: Use GetDependencyLocationRequest.ProtoReflect.Descriptor instead.

func (*GetDependencyLocationRequest) GetDep added in v0.4.0

func (*GetDependencyLocationRequest) GetDepFile added in v0.4.0

func (x *GetDependencyLocationRequest) GetDepFile() string

func (*GetDependencyLocationRequest) ProtoMessage added in v0.4.0

func (*GetDependencyLocationRequest) ProtoMessage()

func (*GetDependencyLocationRequest) ProtoReflect added in v0.4.0

func (*GetDependencyLocationRequest) Reset added in v0.4.0

func (x *GetDependencyLocationRequest) Reset()

func (*GetDependencyLocationRequest) String added in v0.4.0

type GetDependencyLocationResponse added in v0.4.0

type GetDependencyLocationResponse struct {
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDependencyLocationResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use GetDependencyLocationResponse.ProtoReflect.Descriptor instead.

func (*GetDependencyLocationResponse) GetLocation added in v0.4.0

func (x *GetDependencyLocationResponse) GetLocation() *Location

func (*GetDependencyLocationResponse) ProtoMessage added in v0.4.0

func (*GetDependencyLocationResponse) ProtoMessage()

func (*GetDependencyLocationResponse) ProtoReflect added in v0.4.0

func (*GetDependencyLocationResponse) Reset added in v0.4.0

func (x *GetDependencyLocationResponse) Reset()

func (*GetDependencyLocationResponse) String added in v0.4.0

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"`
	IsDependencyIncident bool             `protobuf:"varint,7,opt,name=IsDependencyIncident,proto3" json:"IsDependencyIncident,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) GetIsDependencyIncident added in v0.4.0

func (x *IncidentContext) GetIsDependencyIncident() bool

func (*IncidentContext) GetLineNumber

func (x *IncidentContext) GetLineNumber() int64
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"`
	BuiltinConfig *Config `protobuf:"bytes,4,opt,name=builtinConfig,proto3" json:"builtinConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*InitResponse) Descriptor deprecated

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetBuiltinConfig added in v0.5.0

func (x *InitResponse) GetBuiltinConfig() *Config

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetEndPosition

func (x *Location) GetEndPosition() *Position

func (*Location) GetStartPosition

func (x *Location) GetStartPosition() *Position

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetCharacter

func (x *Position) GetCharacter() float64

func (*Position) GetLine

func (x *Position) GetLine() float64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type ProviderCodeLocationServiceClient added in v0.4.0

type ProviderCodeLocationServiceClient interface {
	GetCodeSnip(ctx context.Context, in *GetCodeSnipRequest, opts ...grpc.CallOption) (*GetCodeSnipResponse, error)
}

ProviderCodeLocationServiceClient is the client API for ProviderCodeLocationService 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 NewProviderCodeLocationServiceClient added in v0.4.0

func NewProviderCodeLocationServiceClient(cc grpc.ClientConnInterface) ProviderCodeLocationServiceClient

type ProviderCodeLocationServiceServer added in v0.4.0

type ProviderCodeLocationServiceServer interface {
	GetCodeSnip(context.Context, *GetCodeSnipRequest) (*GetCodeSnipResponse, error)
	// contains filtered or unexported methods
}

ProviderCodeLocationServiceServer is the server API for ProviderCodeLocationService service. All implementations must embed UnimplementedProviderCodeLocationServiceServer for forward compatibility

type ProviderDependencyLocationServiceClient added in v0.4.0

type ProviderDependencyLocationServiceClient interface {
	GetDependencyLocation(ctx context.Context, in *GetDependencyLocationRequest, opts ...grpc.CallOption) (*GetDependencyLocationResponse, error)
}

ProviderDependencyLocationServiceClient is the client API for ProviderDependencyLocationService 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 NewProviderDependencyLocationServiceClient added in v0.4.0

func NewProviderDependencyLocationServiceClient(cc grpc.ClientConnInterface) ProviderDependencyLocationServiceClient

type ProviderDependencyLocationServiceServer added in v0.4.0

type ProviderDependencyLocationServiceServer interface {
	GetDependencyLocation(context.Context, *GetDependencyLocationRequest) (*GetDependencyLocationResponse, error)
	// contains filtered or unexported methods
}

ProviderDependencyLocationServiceServer is the server API for ProviderDependencyLocationService service. All implementations must embed UnimplementedProviderDependencyLocationServiceServer for forward compatibility

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)
	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.

type ProviderServiceServer

type ProviderServiceServer interface {
	Capabilities(context.Context, *emptypb.Empty) (*CapabilitiesResponse, error)
	Init(context.Context, *Config) (*InitResponse, error)
	Evaluate(context.Context, *EvaluateRequest) (*EvaluateResponse, 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) Descriptor() ([]byte, []int)

Deprecated: Use Proxy.ProtoReflect.Descriptor instead.

func (*Proxy) GetHTTPProxy

func (x *Proxy) GetHTTPProxy() string

func (*Proxy) GetHTTPSProxy

func (x *Proxy) GetHTTPSProxy() string

func (*Proxy) GetNoProxy

func (x *Proxy) GetNoProxy() string

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) ProtoReflect

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

func (*Proxy) Reset

func (x *Proxy) Reset()

func (*Proxy) String

func (x *Proxy) String() string

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 UnimplementedProviderCodeLocationServiceServer added in v0.4.0

type UnimplementedProviderCodeLocationServiceServer struct {
}

UnimplementedProviderCodeLocationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderCodeLocationServiceServer) GetCodeSnip added in v0.4.0

type UnimplementedProviderDependencyLocationServiceServer added in v0.4.0

type UnimplementedProviderDependencyLocationServiceServer struct {
}

UnimplementedProviderDependencyLocationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderDependencyLocationServiceServer) GetDependencyLocation added in v0.4.0

type UnimplementedProviderServiceServer

type UnimplementedProviderServiceServer struct {
}

UnimplementedProviderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderServiceServer) Capabilities

func (UnimplementedProviderServiceServer) Evaluate

func (UnimplementedProviderServiceServer) GetDependencies

func (UnimplementedProviderServiceServer) GetDependenciesDAG

func (UnimplementedProviderServiceServer) Init

func (UnimplementedProviderServiceServer) Stop

type UnsafeProviderCodeLocationServiceServer added in v0.4.0

type UnsafeProviderCodeLocationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProviderCodeLocationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderCodeLocationServiceServer will result in compilation errors.

type UnsafeProviderDependencyLocationServiceServer added in v0.4.0

type UnsafeProviderDependencyLocationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProviderDependencyLocationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderDependencyLocationServiceServer will result in compilation errors.

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.

Jump to

Keyboard shortcuts

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