automationservice

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Automation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "automationservice.Automation",
	HandlerType: (*AutomationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EnqueueClusterOperation",
			Handler:    _Automation_EnqueueClusterOperation_Handler,
		},
		{
			MethodName: "GetClusterOperationDetails",
			Handler:    _Automation_GetClusterOperationDetails_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "automationservice.proto",
}

Automation_ServiceDesc is the grpc.ServiceDesc for Automation 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 File_automationservice_proto protoreflect.FileDescriptor

Functions

func RegisterAutomationServer

func RegisterAutomationServer(s grpc.ServiceRegistrar, srv AutomationServer)

Types

type AutomationClient

type AutomationClient interface {
	// Start a cluster operation.
	EnqueueClusterOperation(ctx context.Context, in *automation.EnqueueClusterOperationRequest, opts ...grpc.CallOption) (*automation.EnqueueClusterOperationResponse, error)
	// TODO(mberlin): Polling this is bad. Implement a subscribe mechanism to wait for changes?
	// Get all details of an active cluster operation.
	GetClusterOperationDetails(ctx context.Context, in *automation.GetClusterOperationDetailsRequest, opts ...grpc.CallOption) (*automation.GetClusterOperationDetailsResponse, error)
}

AutomationClient is the client API for Automation 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 NewAutomationClient

func NewAutomationClient(cc grpc.ClientConnInterface) AutomationClient

type AutomationServer

type AutomationServer interface {
	// Start a cluster operation.
	EnqueueClusterOperation(context.Context, *automation.EnqueueClusterOperationRequest) (*automation.EnqueueClusterOperationResponse, error)
	// TODO(mberlin): Polling this is bad. Implement a subscribe mechanism to wait for changes?
	// Get all details of an active cluster operation.
	GetClusterOperationDetails(context.Context, *automation.GetClusterOperationDetailsRequest) (*automation.GetClusterOperationDetailsResponse, error)
	// contains filtered or unexported methods
}

AutomationServer is the server API for Automation service. All implementations must embed UnimplementedAutomationServer for forward compatibility

type UnimplementedAutomationServer

type UnimplementedAutomationServer struct {
}

UnimplementedAutomationServer must be embedded to have forward compatible implementations.

type UnsafeAutomationServer added in v0.11.0

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

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

Jump to

Keyboard shortcuts

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