proto

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_orchestration_proto_service_proto protoreflect.FileDescriptor
View Source
var OrchestrationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nsl.orchestration.OrchestrationService",
	HandlerType: (*OrchestrationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Deploy",
			Handler:    _OrchestrationService_Deploy_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "DeploymentStatus",
			Handler:       _OrchestrationService_DeploymentStatus_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "orchestration/proto/service.proto",
}

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

Functions

func RegisterOrchestrationServiceServer

func RegisterOrchestrationServiceServer(s grpc.ServiceRegistrar, srv OrchestrationServiceServer)

Types

type DeployRequest

type DeployRequest struct {
	Plan *schema.DeployPlan           `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
	Aws  *configuration.Configuration `protobuf:"bytes,4,opt,name=aws,proto3" json:"aws,omitempty"`
	Auth *fnapi.UserAuth              `protobuf:"bytes,5,opt,name=auth,proto3" json:"auth,omitempty"` // Time-limited Namespace session.
	// contains filtered or unexported fields
}

func (*DeployRequest) Descriptor deprecated

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

Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead.

func (*DeployRequest) GetAuth

func (x *DeployRequest) GetAuth() *fnapi.UserAuth

func (*DeployRequest) GetAws

func (*DeployRequest) GetPlan

func (x *DeployRequest) GetPlan() *schema.DeployPlan

func (*DeployRequest) ProtoMessage

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) ProtoReflect

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

func (*DeployRequest) Reset

func (x *DeployRequest) Reset()

func (*DeployRequest) String

func (x *DeployRequest) String() string

type DeployResponse

type DeployResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deployment to follow
	// contains filtered or unexported fields
}

func (*DeployResponse) Descriptor deprecated

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

Deprecated: Use DeployResponse.ProtoReflect.Descriptor instead.

func (*DeployResponse) GetId

func (x *DeployResponse) GetId() string

func (*DeployResponse) ProtoMessage

func (*DeployResponse) ProtoMessage()

func (*DeployResponse) ProtoReflect

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

func (*DeployResponse) Reset

func (x *DeployResponse) Reset()

func (*DeployResponse) String

func (x *DeployResponse) String() string

type DeploymentStatusRequest

type DeploymentStatusRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deployment to follow
	LogLevel int32  `protobuf:"varint,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentStatusRequest) Descriptor deprecated

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

Deprecated: Use DeploymentStatusRequest.ProtoReflect.Descriptor instead.

func (*DeploymentStatusRequest) GetId

func (x *DeploymentStatusRequest) GetId() string

func (*DeploymentStatusRequest) GetLogLevel

func (x *DeploymentStatusRequest) GetLogLevel() int32

func (*DeploymentStatusRequest) ProtoMessage

func (*DeploymentStatusRequest) ProtoMessage()

func (*DeploymentStatusRequest) ProtoReflect

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

func (*DeploymentStatusRequest) Reset

func (x *DeploymentStatusRequest) Reset()

func (*DeploymentStatusRequest) String

func (x *DeploymentStatusRequest) String() string

type DeploymentStatusResponse

type DeploymentStatusResponse struct {
	Event *orchestration.Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	Log   *protolog.Log        `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentStatusResponse) Descriptor deprecated

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

Deprecated: Use DeploymentStatusResponse.ProtoReflect.Descriptor instead.

func (*DeploymentStatusResponse) GetEvent

func (*DeploymentStatusResponse) GetLog

func (x *DeploymentStatusResponse) GetLog() *protolog.Log

func (*DeploymentStatusResponse) ProtoMessage

func (*DeploymentStatusResponse) ProtoMessage()

func (*DeploymentStatusResponse) ProtoReflect

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

func (*DeploymentStatusResponse) Reset

func (x *DeploymentStatusResponse) Reset()

func (*DeploymentStatusResponse) String

func (x *DeploymentStatusResponse) String() string

type OrchestrationServiceClient

type OrchestrationServiceClient interface {
	Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*DeployResponse, error)
	DeploymentStatus(ctx context.Context, in *DeploymentStatusRequest, opts ...grpc.CallOption) (OrchestrationService_DeploymentStatusClient, error)
}

OrchestrationServiceClient is the client API for OrchestrationService 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 OrchestrationServiceServer

type OrchestrationServiceServer interface {
	Deploy(context.Context, *DeployRequest) (*DeployResponse, error)
	DeploymentStatus(*DeploymentStatusRequest, OrchestrationService_DeploymentStatusServer) error
}

OrchestrationServiceServer is the server API for OrchestrationService service. All implementations should embed UnimplementedOrchestrationServiceServer for forward compatibility

type OrchestrationService_DeploymentStatusClient

type OrchestrationService_DeploymentStatusClient interface {
	Recv() (*DeploymentStatusResponse, error)
	grpc.ClientStream
}

type OrchestrationService_DeploymentStatusServer

type OrchestrationService_DeploymentStatusServer interface {
	Send(*DeploymentStatusResponse) error
	grpc.ServerStream
}

type UnimplementedOrchestrationServiceServer

type UnimplementedOrchestrationServiceServer struct {
}

UnimplementedOrchestrationServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedOrchestrationServiceServer) Deploy

type UnsafeOrchestrationServiceServer

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

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

Jump to

Keyboard shortcuts

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