vanilla

package
v0.0.14-r11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nocloud.instance.driver.vanilla.DriverService",
	HandlerType: (*DriverServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TestServiceProviderConfig",
			Handler:    _DriverService_TestServiceProviderConfig_Handler,
		},
		{
			MethodName: "TestInstancesGroupConfig",
			Handler:    _DriverService_TestInstancesGroupConfig_Handler,
		},
		{
			MethodName: "GetType",
			Handler:    _DriverService_GetType_Handler,
		},
		{
			MethodName: "Up",
			Handler:    _DriverService_Up_Handler,
		},
		{
			MethodName: "Down",
			Handler:    _DriverService_Down_Handler,
		},
		{
			MethodName: "Invoke",
			Handler:    _DriverService_Invoke_Handler,
		},
		{
			MethodName: "Monitoring",
			Handler:    _DriverService_Monitoring_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/drivers/instance/vanilla/driver.proto",
}

DriverService_ServiceDesc is the grpc.ServiceDesc for DriverService 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_pkg_drivers_instance_vanilla_driver_proto protoreflect.FileDescriptor

Functions

func RegisterDriverServiceServer

func RegisterDriverServiceServer(s grpc.ServiceRegistrar, srv DriverServiceServer)

Types

type DownRequest

type DownRequest struct {
	Group            *proto1.InstancesGroup  `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	ServicesProvider *proto.ServicesProvider `protobuf:"bytes,2,opt,name=services_provider,json=servicesProvider,proto3" json:"services_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*DownRequest) Descriptor deprecated

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

Deprecated: Use DownRequest.ProtoReflect.Descriptor instead.

func (*DownRequest) GetGroup

func (x *DownRequest) GetGroup() *proto1.InstancesGroup

func (*DownRequest) GetServicesProvider

func (x *DownRequest) GetServicesProvider() *proto.ServicesProvider

func (*DownRequest) ProtoMessage

func (*DownRequest) ProtoMessage()

func (*DownRequest) ProtoReflect

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

func (*DownRequest) Reset

func (x *DownRequest) Reset()

func (*DownRequest) String

func (x *DownRequest) String() string

type DownResponse

type DownResponse struct {
	Group *proto1.InstancesGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*DownResponse) Descriptor deprecated

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

Deprecated: Use DownResponse.ProtoReflect.Descriptor instead.

func (*DownResponse) GetGroup

func (x *DownResponse) GetGroup() *proto1.InstancesGroup

func (*DownResponse) ProtoMessage

func (*DownResponse) ProtoMessage()

func (*DownResponse) ProtoReflect

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

func (*DownResponse) Reset

func (x *DownResponse) Reset()

func (*DownResponse) String

func (x *DownResponse) String() string

type DriverServiceClient

type DriverServiceClient interface {
	TestServiceProviderConfig(ctx context.Context, in *TestServiceProviderConfigRequest, opts ...grpc.CallOption) (*proto.TestResponse, error)
	TestInstancesGroupConfig(ctx context.Context, in *proto1.TestInstancesGroupConfigRequest, opts ...grpc.CallOption) (*proto1.TestInstancesGroupConfigResponse, error)
	GetType(ctx context.Context, in *GetTypeRequest, opts ...grpc.CallOption) (*GetTypeResponse, error)
	Up(ctx context.Context, in *UpRequest, opts ...grpc.CallOption) (*UpResponse, error)
	Down(ctx context.Context, in *DownRequest, opts ...grpc.CallOption) (*DownResponse, error)
	Invoke(ctx context.Context, in *PerformActionRequest, opts ...grpc.CallOption) (*proto2.PerformActionResponse, error)
	Monitoring(ctx context.Context, in *MonitoringRequest, opts ...grpc.CallOption) (*MonitoringResponse, error)
}

DriverServiceClient is the client API for DriverService 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 DriverServiceServer

DriverServiceServer is the server API for DriverService service. All implementations must embed UnimplementedDriverServiceServer for forward compatibility

type GetTypeRequest

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

func (*GetTypeRequest) Descriptor deprecated

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

Deprecated: Use GetTypeRequest.ProtoReflect.Descriptor instead.

func (*GetTypeRequest) ProtoMessage

func (*GetTypeRequest) ProtoMessage()

func (*GetTypeRequest) ProtoReflect

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

func (*GetTypeRequest) Reset

func (x *GetTypeRequest) Reset()

func (*GetTypeRequest) String

func (x *GetTypeRequest) String() string

type GetTypeResponse

type GetTypeResponse struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTypeResponse) Descriptor deprecated

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

Deprecated: Use GetTypeResponse.ProtoReflect.Descriptor instead.

func (*GetTypeResponse) GetType

func (x *GetTypeResponse) GetType() string

func (*GetTypeResponse) ProtoMessage

func (*GetTypeResponse) ProtoMessage()

func (*GetTypeResponse) ProtoReflect

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

func (*GetTypeResponse) Reset

func (x *GetTypeResponse) Reset()

func (*GetTypeResponse) String

func (x *GetTypeResponse) String() string

type MonitoringRequest

type MonitoringRequest struct {
	Groups           []*proto1.InstancesGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	ServicesProvider *proto.ServicesProvider  `protobuf:"bytes,2,opt,name=services_provider,json=servicesProvider,proto3" json:"services_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*MonitoringRequest) Descriptor deprecated

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

Deprecated: Use MonitoringRequest.ProtoReflect.Descriptor instead.

func (*MonitoringRequest) GetGroups

func (x *MonitoringRequest) GetGroups() []*proto1.InstancesGroup

func (*MonitoringRequest) GetServicesProvider

func (x *MonitoringRequest) GetServicesProvider() *proto.ServicesProvider

func (*MonitoringRequest) ProtoMessage

func (*MonitoringRequest) ProtoMessage()

func (*MonitoringRequest) ProtoReflect

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

func (*MonitoringRequest) Reset

func (x *MonitoringRequest) Reset()

func (*MonitoringRequest) String

func (x *MonitoringRequest) String() string

type MonitoringResponse

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

func (*MonitoringResponse) Descriptor deprecated

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

Deprecated: Use MonitoringResponse.ProtoReflect.Descriptor instead.

func (*MonitoringResponse) ProtoMessage

func (*MonitoringResponse) ProtoMessage()

func (*MonitoringResponse) ProtoReflect

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

func (*MonitoringResponse) Reset

func (x *MonitoringResponse) Reset()

func (*MonitoringResponse) String

func (x *MonitoringResponse) String() string

type PerformActionRequest

type PerformActionRequest struct {
	Request          *proto2.PerformActionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	Group            *proto1.InstancesGroup       `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	ServicesProvider *proto.ServicesProvider      `protobuf:"bytes,3,opt,name=services_provider,json=servicesProvider,proto3" json:"services_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*PerformActionRequest) Descriptor deprecated

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

Deprecated: Use PerformActionRequest.ProtoReflect.Descriptor instead.

func (*PerformActionRequest) GetGroup

func (*PerformActionRequest) GetRequest

func (*PerformActionRequest) GetServicesProvider

func (x *PerformActionRequest) GetServicesProvider() *proto.ServicesProvider

func (*PerformActionRequest) ProtoMessage

func (*PerformActionRequest) ProtoMessage()

func (*PerformActionRequest) ProtoReflect

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

func (*PerformActionRequest) Reset

func (x *PerformActionRequest) Reset()

func (*PerformActionRequest) String

func (x *PerformActionRequest) String() string

type TestServiceProviderConfigRequest

type TestServiceProviderConfigRequest struct {
	ServicesProvider *proto.ServicesProvider `protobuf:"bytes,1,opt,name=services_provider,json=servicesProvider,proto3" json:"services_provider,omitempty"`
	SyntaxOnly       bool                    `protobuf:"varint,2,opt,name=syntax_only,json=syntaxOnly,proto3" json:"syntax_only,omitempty"`
	// contains filtered or unexported fields
}

func (*TestServiceProviderConfigRequest) Descriptor deprecated

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

Deprecated: Use TestServiceProviderConfigRequest.ProtoReflect.Descriptor instead.

func (*TestServiceProviderConfigRequest) GetServicesProvider

func (x *TestServiceProviderConfigRequest) GetServicesProvider() *proto.ServicesProvider

func (*TestServiceProviderConfigRequest) GetSyntaxOnly

func (x *TestServiceProviderConfigRequest) GetSyntaxOnly() bool

func (*TestServiceProviderConfigRequest) ProtoMessage

func (*TestServiceProviderConfigRequest) ProtoMessage()

func (*TestServiceProviderConfigRequest) ProtoReflect

func (*TestServiceProviderConfigRequest) Reset

func (*TestServiceProviderConfigRequest) String

type UnimplementedDriverServiceServer

type UnimplementedDriverServiceServer struct {
}

UnimplementedDriverServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDriverServiceServer) Down

func (UnimplementedDriverServiceServer) GetType

func (UnimplementedDriverServiceServer) Invoke

func (UnimplementedDriverServiceServer) Monitoring

func (UnimplementedDriverServiceServer) TestServiceProviderConfig

func (UnimplementedDriverServiceServer) Up

type UnsafeDriverServiceServer

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

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

type UpRequest

type UpRequest struct {
	Group            *proto1.InstancesGroup  `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	ServicesProvider *proto.ServicesProvider `protobuf:"bytes,2,opt,name=services_provider,json=servicesProvider,proto3" json:"services_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*UpRequest) Descriptor deprecated

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

Deprecated: Use UpRequest.ProtoReflect.Descriptor instead.

func (*UpRequest) GetGroup

func (x *UpRequest) GetGroup() *proto1.InstancesGroup

func (*UpRequest) GetServicesProvider

func (x *UpRequest) GetServicesProvider() *proto.ServicesProvider

func (*UpRequest) ProtoMessage

func (*UpRequest) ProtoMessage()

func (*UpRequest) ProtoReflect

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

func (*UpRequest) Reset

func (x *UpRequest) Reset()

func (*UpRequest) String

func (x *UpRequest) String() string

type UpResponse

type UpResponse struct {
	Group *proto1.InstancesGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*UpResponse) Descriptor deprecated

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

Deprecated: Use UpResponse.ProtoReflect.Descriptor instead.

func (*UpResponse) GetGroup

func (x *UpResponse) GetGroup() *proto1.InstancesGroup

func (*UpResponse) ProtoMessage

func (*UpResponse) ProtoMessage()

func (*UpResponse) ProtoReflect

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

func (*UpResponse) Reset

func (x *UpResponse) Reset()

func (*UpResponse) String

func (x *UpResponse) String() string

Jump to

Keyboard shortcuts

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