protocol

package
v0.0.389 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Lifecycle_name = map[int32]string{
		0: "LIFECYCLE_UNKNOWN",
		1: "PROVISION",
		2: "SHUTDOWN",
	}
	Lifecycle_value = map[string]int32{
		"LIFECYCLE_UNKNOWN": 0,
		"PROVISION":         1,
		"SHUTDOWN":          2,
	}
)

Enum value maps for Lifecycle.

View Source
var File_internal_planning_tool_protocol_prepare_proto protoreflect.FileDescriptor
View Source
var File_internal_planning_tool_protocol_toolprotocol_proto protoreflect.FileDescriptor
View Source
var InvocationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "foundation.provision.tool.protocol.InvocationService",
	HandlerType: (*InvocationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Invoke",
			Handler:    _InvocationService_Invoke_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/planning/tool/protocol/toolprotocol.proto",
}

InvocationService_ServiceDesc is the grpc.ServiceDesc for InvocationService 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 PrepareService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "foundation.provision.tool.protocol.PrepareService",
	HandlerType: (*PrepareServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Prepare",
			Handler:    _PrepareService_Prepare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/planning/tool/protocol/prepare.proto",
}

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

Functions

func RegisterInvocationServiceServer

func RegisterInvocationServiceServer(s grpc.ServiceRegistrar, srv InvocationServiceServer)

func RegisterPrepareServiceServer

func RegisterPrepareServiceServer(s grpc.ServiceRegistrar, srv PrepareServiceServer)

Types

type ApplyRequest

type ApplyRequest struct {
	Header *StackRelated `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyRequest) Descriptor deprecated

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

Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.

func (*ApplyRequest) GetHeader

func (x *ApplyRequest) GetHeader() *StackRelated

func (*ApplyRequest) ProtoMessage

func (*ApplyRequest) ProtoMessage()

func (*ApplyRequest) ProtoReflect

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

func (*ApplyRequest) Reset

func (x *ApplyRequest) Reset()

func (*ApplyRequest) String

func (x *ApplyRequest) String() string

type ApplyResponse

type ApplyResponse struct {
	Extension                            []*schema.DefExtension               `protobuf:"bytes,1,rep,name=extension,proto3" json:"extension,omitempty"`
	Invocation                           []*schema.SerializedInvocation       `protobuf:"bytes,2,rep,name=invocation,proto3" json:"invocation,omitempty"`
	InvocationSource                     []*schema.SerializedInvocationSource `protobuf:"bytes,5,rep,name=invocation_source,json=invocationSource,proto3" json:"invocation_source,omitempty"`
	Computed                             []*schema.ComputedConfiguration      `protobuf:"bytes,4,rep,name=computed,proto3" json:"computed,omitempty"`
	ServerExtension                      []*schema.ServerExtension            `protobuf:"bytes,6,rep,name=server_extension,json=serverExtension,proto3" json:"server_extension,omitempty"`
	OutputResourceInstance               *anypb.Any                           `` /* 129-byte string literal not displayed */
	ComputedResourceInput                []*ApplyResponse_ResourceInput       `` /* 126-byte string literal not displayed */
	OutputResourceInstanceSerializedJson []byte                               `` /* 175-byte string literal not displayed */
	// The outcome of this tool computation is valid for as long as these
	// inputs don't change.
	CacheKey []*CacheKey `protobuf:"bytes,3,rep,name=cache_key,json=cacheKey,proto3" json:"cache_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyResponse) Descriptor deprecated

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

Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.

func (*ApplyResponse) GetCacheKey

func (x *ApplyResponse) GetCacheKey() []*CacheKey

func (*ApplyResponse) GetComputed

func (x *ApplyResponse) GetComputed() []*schema.ComputedConfiguration

func (*ApplyResponse) GetComputedResourceInput added in v0.0.111

func (x *ApplyResponse) GetComputedResourceInput() []*ApplyResponse_ResourceInput

func (*ApplyResponse) GetExtension

func (x *ApplyResponse) GetExtension() []*schema.DefExtension

func (*ApplyResponse) GetInvocation

func (x *ApplyResponse) GetInvocation() []*schema.SerializedInvocation

func (*ApplyResponse) GetInvocationSource

func (x *ApplyResponse) GetInvocationSource() []*schema.SerializedInvocationSource

func (*ApplyResponse) GetOutputResourceInstance added in v0.0.103

func (x *ApplyResponse) GetOutputResourceInstance() *anypb.Any

func (*ApplyResponse) GetOutputResourceInstanceSerializedJson added in v0.0.115

func (x *ApplyResponse) GetOutputResourceInstanceSerializedJson() []byte

func (*ApplyResponse) GetServerExtension

func (x *ApplyResponse) GetServerExtension() []*schema.ServerExtension

func (*ApplyResponse) ProtoMessage

func (*ApplyResponse) ProtoMessage()

func (*ApplyResponse) ProtoReflect

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

func (*ApplyResponse) Reset

func (x *ApplyResponse) Reset()

func (*ApplyResponse) String

func (x *ApplyResponse) String() string

type ApplyResponse_ResourceInput added in v0.0.111

type ApplyResponse_ResourceInput struct {
	Name                 string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Class                *schema.PackageRef `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	Provider             string             `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	SerializedIntentJson string             `protobuf:"bytes,4,opt,name=serialized_intent_json,json=serializedIntentJson,proto3" json:"serialized_intent_json,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyResponse_ResourceInput) Descriptor deprecated added in v0.0.111

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

Deprecated: Use ApplyResponse_ResourceInput.ProtoReflect.Descriptor instead.

func (*ApplyResponse_ResourceInput) GetClass added in v0.0.111

func (*ApplyResponse_ResourceInput) GetName added in v0.0.111

func (x *ApplyResponse_ResourceInput) GetName() string

func (*ApplyResponse_ResourceInput) GetProvider added in v0.0.111

func (x *ApplyResponse_ResourceInput) GetProvider() string

func (*ApplyResponse_ResourceInput) GetSerializedIntentJson added in v0.0.111

func (x *ApplyResponse_ResourceInput) GetSerializedIntentJson() string

func (*ApplyResponse_ResourceInput) ProtoMessage added in v0.0.111

func (*ApplyResponse_ResourceInput) ProtoMessage()

func (*ApplyResponse_ResourceInput) ProtoReflect added in v0.0.111

func (*ApplyResponse_ResourceInput) Reset added in v0.0.111

func (x *ApplyResponse_ResourceInput) Reset()

func (*ApplyResponse_ResourceInput) String added in v0.0.111

func (x *ApplyResponse_ResourceInput) String() string

type CacheKey

type CacheKey struct {
	// contains filtered or unexported fields
}

func (*CacheKey) Descriptor deprecated

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

Deprecated: Use CacheKey.ProtoReflect.Descriptor instead.

func (*CacheKey) ProtoMessage

func (*CacheKey) ProtoMessage()

func (*CacheKey) ProtoReflect

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

func (*CacheKey) Reset

func (x *CacheKey) Reset()

func (*CacheKey) String

func (x *CacheKey) String() string

type DeleteRequest

type DeleteRequest struct {
	Header *StackRelated `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetHeader

func (x *DeleteRequest) GetHeader() *StackRelated

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	Invocation []*schema.SerializedInvocation `protobuf:"bytes,1,rep,name=invocation,proto3" json:"invocation,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetInvocation

func (x *DeleteResponse) GetInvocation() []*schema.SerializedInvocation

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type InvocationServiceClient

type InvocationServiceClient interface {
	Invoke(ctx context.Context, in *ToolRequest, opts ...grpc.CallOption) (*ToolResponse, error)
}

InvocationServiceClient is the client API for InvocationService 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 InvocationServiceServer

type InvocationServiceServer interface {
	Invoke(context.Context, *ToolRequest) (*ToolResponse, error)
}

InvocationServiceServer is the server API for InvocationService service. All implementations should embed UnimplementedInvocationServiceServer for forward compatibility

type InvokeRequest

type InvokeRequest struct {
	// contains filtered or unexported fields
}

func (*InvokeRequest) Descriptor deprecated

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

Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.

func (*InvokeRequest) ProtoMessage

func (*InvokeRequest) ProtoMessage()

func (*InvokeRequest) ProtoReflect

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

func (*InvokeRequest) Reset

func (x *InvokeRequest) Reset()

func (*InvokeRequest) String

func (x *InvokeRequest) String() string

type InvokeResponse

type InvokeResponse struct {
	Resource *types.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeResponse) Descriptor deprecated

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

Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.

func (*InvokeResponse) GetResource

func (x *InvokeResponse) GetResource() *types.Resource

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) ProtoReflect

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

func (*InvokeResponse) Reset

func (x *InvokeResponse) Reset()

func (*InvokeResponse) String

func (x *InvokeResponse) String() string

type Lifecycle

type Lifecycle int32
const (
	Lifecycle_LIFECYCLE_UNKNOWN Lifecycle = 0
	Lifecycle_PROVISION         Lifecycle = 1
	Lifecycle_SHUTDOWN          Lifecycle = 2
)

func (Lifecycle) Descriptor

func (Lifecycle) Descriptor() protoreflect.EnumDescriptor

func (Lifecycle) Enum

func (x Lifecycle) Enum() *Lifecycle

func (Lifecycle) EnumDescriptor deprecated

func (Lifecycle) EnumDescriptor() ([]byte, []int)

Deprecated: Use Lifecycle.Descriptor instead.

func (Lifecycle) Number

func (x Lifecycle) Number() protoreflect.EnumNumber

func (Lifecycle) String

func (x Lifecycle) String() string

func (Lifecycle) Type

type PrepareRequest

type PrepareRequest struct {
	Env        *schema.Environment `protobuf:"bytes,1,opt,name=env,proto3" json:"env,omitempty"`
	Server     *schema.Server      `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	ApiVersion int32               `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareRequest) Descriptor deprecated

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

Deprecated: Use PrepareRequest.ProtoReflect.Descriptor instead.

func (*PrepareRequest) GetApiVersion

func (x *PrepareRequest) GetApiVersion() int32

func (*PrepareRequest) GetEnv

func (x *PrepareRequest) GetEnv() *schema.Environment

func (*PrepareRequest) GetServer

func (x *PrepareRequest) GetServer() *schema.Server

func (*PrepareRequest) ProtoMessage

func (*PrepareRequest) ProtoMessage()

func (*PrepareRequest) ProtoReflect

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

func (*PrepareRequest) Reset

func (x *PrepareRequest) Reset()

func (*PrepareRequest) String

func (x *PrepareRequest) String() string

type PrepareResponse

type PrepareResponse struct {
	PreparedProvisionPlan    *PreparedProvisionPlan      `` /* 126-byte string literal not displayed */
	DeprecatedProvisionInput []*anypb.Any                `` /* 135-byte string literal not displayed */
	ProvisionInput           []*schema.SerializedMessage `protobuf:"bytes,6,rep,name=provision_input,json=provisionInput,proto3" json:"provision_input,omitempty"`
	Extension                []*schema.DefExtension      `protobuf:"bytes,4,rep,name=extension,proto3" json:"extension,omitempty"`
	ServerExtension          []*schema.ServerExtension   `protobuf:"bytes,5,rep,name=server_extension,json=serverExtension,proto3" json:"server_extension,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareResponse) Descriptor deprecated

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

Deprecated: Use PrepareResponse.ProtoReflect.Descriptor instead.

func (*PrepareResponse) GetDeprecatedProvisionInput

func (x *PrepareResponse) GetDeprecatedProvisionInput() []*anypb.Any

func (*PrepareResponse) GetExtension

func (x *PrepareResponse) GetExtension() []*schema.DefExtension

func (*PrepareResponse) GetPreparedProvisionPlan

func (x *PrepareResponse) GetPreparedProvisionPlan() *PreparedProvisionPlan

func (*PrepareResponse) GetProvisionInput

func (x *PrepareResponse) GetProvisionInput() []*schema.SerializedMessage

func (*PrepareResponse) GetServerExtension

func (x *PrepareResponse) GetServerExtension() []*schema.ServerExtension

func (*PrepareResponse) ProtoMessage

func (*PrepareResponse) ProtoMessage()

func (*PrepareResponse) ProtoReflect

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

func (*PrepareResponse) Reset

func (x *PrepareResponse) Reset()

func (*PrepareResponse) String

func (x *PrepareResponse) String() string

type PrepareServiceClient

type PrepareServiceClient interface {
	Prepare(ctx context.Context, in *PrepareRequest, opts ...grpc.CallOption) (*PrepareResponse, error)
}

PrepareServiceClient is the client API for PrepareService 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 PrepareServiceServer

type PrepareServiceServer interface {
	Prepare(context.Context, *PrepareRequest) (*PrepareResponse, error)
}

PrepareServiceServer is the server API for PrepareService service. All implementations should embed UnimplementedPrepareServiceServer for forward compatibility

type PreparedProvisionPlan

type PreparedProvisionPlan struct {
	DeclaredStack []string             `protobuf:"bytes,1,rep,name=declared_stack,json=declaredStack,proto3" json:"declared_stack,omitempty"`
	Provisioning  []*schema.Invocation `protobuf:"bytes,2,rep,name=provisioning,proto3" json:"provisioning,omitempty"`
	Sidecar       []*schema.Container  `protobuf:"bytes,3,rep,name=sidecar,proto3" json:"sidecar,omitempty"`
	Init          []*schema.Container  `protobuf:"bytes,4,rep,name=init,proto3" json:"init,omitempty"`
	// contains filtered or unexported fields
}

func (*PreparedProvisionPlan) Descriptor deprecated

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

Deprecated: Use PreparedProvisionPlan.ProtoReflect.Descriptor instead.

func (*PreparedProvisionPlan) GetDeclaredStack

func (x *PreparedProvisionPlan) GetDeclaredStack() []string

func (*PreparedProvisionPlan) GetInit

func (x *PreparedProvisionPlan) GetInit() []*schema.Container

func (*PreparedProvisionPlan) GetProvisioning

func (x *PreparedProvisionPlan) GetProvisioning() []*schema.Invocation

func (*PreparedProvisionPlan) GetSidecar

func (x *PreparedProvisionPlan) GetSidecar() []*schema.Container

func (*PreparedProvisionPlan) ProtoMessage

func (*PreparedProvisionPlan) ProtoMessage()

func (*PreparedProvisionPlan) ProtoReflect

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

func (*PreparedProvisionPlan) Reset

func (x *PreparedProvisionPlan) Reset()

func (*PreparedProvisionPlan) String

func (x *PreparedProvisionPlan) String() string

type ResourceInstance added in v0.0.103

type ResourceInstance struct {
	ResourceInstanceId string                   `protobuf:"bytes,1,opt,name=resource_instance_id,json=resourceInstanceId,proto3" json:"resource_instance_id,omitempty"`
	ResourceInstance   *schema.ResourceInstance `protobuf:"bytes,2,opt,name=resource_instance,json=resourceInstance,proto3" json:"resource_instance,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceInstance) Descriptor deprecated added in v0.0.103

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

Deprecated: Use ResourceInstance.ProtoReflect.Descriptor instead.

func (*ResourceInstance) GetResourceInstance added in v0.0.103

func (x *ResourceInstance) GetResourceInstance() *schema.ResourceInstance

func (*ResourceInstance) GetResourceInstanceId added in v0.0.103

func (x *ResourceInstance) GetResourceInstanceId() string

func (*ResourceInstance) ProtoMessage added in v0.0.103

func (*ResourceInstance) ProtoMessage()

func (*ResourceInstance) ProtoReflect added in v0.0.103

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

func (*ResourceInstance) Reset added in v0.0.103

func (x *ResourceInstance) Reset()

func (*ResourceInstance) String added in v0.0.103

func (x *ResourceInstance) String() string

type Snapshot

type Snapshot struct {
	Name  string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Entry []*Snapshot_FileEntry `protobuf:"bytes,2,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot) Descriptor deprecated

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetEntry

func (x *Snapshot) GetEntry() []*Snapshot_FileEntry

func (*Snapshot) GetName

func (x *Snapshot) GetName() string

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type Snapshot_FileEntry

type Snapshot_FileEntry struct {
	Path     string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot_FileEntry) Descriptor deprecated

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

Deprecated: Use Snapshot_FileEntry.ProtoReflect.Descriptor instead.

func (*Snapshot_FileEntry) GetContents

func (x *Snapshot_FileEntry) GetContents() []byte

func (*Snapshot_FileEntry) GetPath

func (x *Snapshot_FileEntry) GetPath() string

func (*Snapshot_FileEntry) ProtoMessage

func (*Snapshot_FileEntry) ProtoMessage()

func (*Snapshot_FileEntry) ProtoReflect

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

func (*Snapshot_FileEntry) Reset

func (x *Snapshot_FileEntry) Reset()

func (*Snapshot_FileEntry) String

func (x *Snapshot_FileEntry) String() string

type StackRelated

type StackRelated struct {
	FocusedServer string              `protobuf:"bytes,1,opt,name=focused_server,json=focusedServer,proto3" json:"focused_server,omitempty"`
	Env           *schema.Environment `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"`
	Stack         *schema.Stack       `protobuf:"bytes,3,opt,name=stack,proto3" json:"stack,omitempty"`
	// contains filtered or unexported fields
}

func (*StackRelated) Descriptor deprecated

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

Deprecated: Use StackRelated.ProtoReflect.Descriptor instead.

func (*StackRelated) GetEnv

func (x *StackRelated) GetEnv() *schema.Environment

func (*StackRelated) GetFocusedServer

func (x *StackRelated) GetFocusedServer() string

func (*StackRelated) GetStack

func (x *StackRelated) GetStack() *schema.Stack

func (*StackRelated) ProtoMessage

func (*StackRelated) ProtoMessage()

func (*StackRelated) ProtoReflect

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

func (*StackRelated) Reset

func (x *StackRelated) Reset()

func (*StackRelated) String

func (x *StackRelated) String() string

type ToolRequest

type ToolRequest struct {
	ApiVersion  int32        `protobuf:"varint,11,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	ToolPackage string       `protobuf:"bytes,1,opt,name=tool_package,json=toolPackage,proto3" json:"tool_package,omitempty"`
	Input       []*anypb.Any `protobuf:"bytes,5,rep,name=input,proto3" json:"input,omitempty"`
	Snapshot    []*Snapshot  `protobuf:"bytes,9,rep,name=snapshot,proto3" json:"snapshot,omitempty"`
	// XXX deprecated, in favor of StackRelated.
	FocusedServer string              `protobuf:"bytes,2,opt,name=focused_server,json=focusedServer,proto3" json:"focused_server,omitempty"`
	Env           *schema.Environment `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`
	Stack         *schema.Stack       `protobuf:"bytes,8,opt,name=stack,proto3" json:"stack,omitempty"`
	// Types that are assignable to RequestType:
	//	*ToolRequest_ApplyRequest
	//	*ToolRequest_DeleteRequest
	//	*ToolRequest_InvokeRequest
	RequestType isToolRequest_RequestType `protobuf_oneof:"request_type"`
	// contains filtered or unexported fields
}

func (*ToolRequest) Descriptor deprecated

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

Deprecated: Use ToolRequest.ProtoReflect.Descriptor instead.

func (*ToolRequest) GetApiVersion

func (x *ToolRequest) GetApiVersion() int32

func (*ToolRequest) GetApplyRequest

func (x *ToolRequest) GetApplyRequest() *ApplyRequest

func (*ToolRequest) GetDeleteRequest

func (x *ToolRequest) GetDeleteRequest() *DeleteRequest

func (*ToolRequest) GetEnv

func (x *ToolRequest) GetEnv() *schema.Environment

func (*ToolRequest) GetFocusedServer

func (x *ToolRequest) GetFocusedServer() string

func (*ToolRequest) GetInput

func (x *ToolRequest) GetInput() []*anypb.Any

func (*ToolRequest) GetInvokeRequest

func (x *ToolRequest) GetInvokeRequest() *InvokeRequest

func (*ToolRequest) GetRequestType

func (m *ToolRequest) GetRequestType() isToolRequest_RequestType

func (*ToolRequest) GetSnapshot

func (x *ToolRequest) GetSnapshot() []*Snapshot

func (*ToolRequest) GetStack

func (x *ToolRequest) GetStack() *schema.Stack

func (*ToolRequest) GetToolPackage

func (x *ToolRequest) GetToolPackage() string

func (*ToolRequest) ProtoMessage

func (*ToolRequest) ProtoMessage()

func (*ToolRequest) ProtoReflect

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

func (*ToolRequest) Reset

func (x *ToolRequest) Reset()

func (*ToolRequest) String

func (x *ToolRequest) String() string

type ToolRequest_ApplyRequest

type ToolRequest_ApplyRequest struct {
	ApplyRequest *ApplyRequest `protobuf:"bytes,6,opt,name=apply_request,json=applyRequest,proto3,oneof"`
}

type ToolRequest_DeleteRequest

type ToolRequest_DeleteRequest struct {
	DeleteRequest *DeleteRequest `protobuf:"bytes,7,opt,name=delete_request,json=deleteRequest,proto3,oneof"`
}

type ToolRequest_InvokeRequest

type ToolRequest_InvokeRequest struct {
	InvokeRequest *InvokeRequest `protobuf:"bytes,10,opt,name=invoke_request,json=invokeRequest,proto3,oneof"`
}

type ToolResponse

type ToolResponse struct {
	ApplyResponse  *ApplyResponse  `protobuf:"bytes,1,opt,name=apply_response,json=applyResponse,proto3" json:"apply_response,omitempty"`
	DeleteResponse *DeleteResponse `protobuf:"bytes,2,opt,name=delete_response,json=deleteResponse,proto3" json:"delete_response,omitempty"`
	InvokeResponse *InvokeResponse `protobuf:"bytes,3,opt,name=invoke_response,json=invokeResponse,proto3" json:"invoke_response,omitempty"`
	// contains filtered or unexported fields
}

func (*ToolResponse) Descriptor deprecated

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

Deprecated: Use ToolResponse.ProtoReflect.Descriptor instead.

func (*ToolResponse) GetApplyResponse

func (x *ToolResponse) GetApplyResponse() *ApplyResponse

func (*ToolResponse) GetDeleteResponse

func (x *ToolResponse) GetDeleteResponse() *DeleteResponse

func (*ToolResponse) GetInvokeResponse

func (x *ToolResponse) GetInvokeResponse() *InvokeResponse

func (*ToolResponse) ProtoMessage

func (*ToolResponse) ProtoMessage()

func (*ToolResponse) ProtoReflect

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

func (*ToolResponse) Reset

func (x *ToolResponse) Reset()

func (*ToolResponse) String

func (x *ToolResponse) String() string

type UnimplementedInvocationServiceServer

type UnimplementedInvocationServiceServer struct {
}

UnimplementedInvocationServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedInvocationServiceServer) Invoke

type UnimplementedPrepareServiceServer

type UnimplementedPrepareServiceServer struct {
}

UnimplementedPrepareServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPrepareServiceServer) Prepare

type UnsafeInvocationServiceServer

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

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

type UnsafePrepareServiceServer

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

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

Jump to

Keyboard shortcuts

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