command

package
v5.0.0-...-470bbe4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_instman_command_command_proto protoreflect.FileDescriptor
View Source
var InstanceManagementService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v2ray.core.app.instman.command.InstanceManagementService",
	HandlerType: (*InstanceManagementServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListInstance",
			Handler:    _InstanceManagementService_ListInstance_Handler,
		},
		{
			MethodName: "AddInstance",
			Handler:    _InstanceManagementService_AddInstance_Handler,
		},
		{
			MethodName: "StartInstance",
			Handler:    _InstanceManagementService_StartInstance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "app/instman/command/command.proto",
}

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

Functions

func RegisterInstanceManagementServiceServer

func RegisterInstanceManagementServiceServer(s grpc.ServiceRegistrar, srv InstanceManagementServiceServer)

Types

type AddInstanceReq

type AddInstanceReq struct {
	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ConfigType       string `protobuf:"bytes,2,opt,name=configType,proto3" json:"configType,omitempty"`
	ConfigContentB64 string `protobuf:"bytes,3,opt,name=configContentB64,proto3" json:"configContentB64,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInstanceReq) Descriptor deprecated

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

Deprecated: Use AddInstanceReq.ProtoReflect.Descriptor instead.

func (*AddInstanceReq) GetConfigContentB64

func (x *AddInstanceReq) GetConfigContentB64() string

func (*AddInstanceReq) GetConfigType

func (x *AddInstanceReq) GetConfigType() string

func (*AddInstanceReq) GetName

func (x *AddInstanceReq) GetName() string

func (*AddInstanceReq) ProtoMessage

func (*AddInstanceReq) ProtoMessage()

func (*AddInstanceReq) ProtoReflect

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

func (*AddInstanceReq) Reset

func (x *AddInstanceReq) Reset()

func (*AddInstanceReq) String

func (x *AddInstanceReq) String() string

type AddInstanceResp

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

func (*AddInstanceResp) Descriptor deprecated

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

Deprecated: Use AddInstanceResp.ProtoReflect.Descriptor instead.

func (*AddInstanceResp) ProtoMessage

func (*AddInstanceResp) ProtoMessage()

func (*AddInstanceResp) ProtoReflect

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

func (*AddInstanceResp) Reset

func (x *AddInstanceResp) Reset()

func (*AddInstanceResp) String

func (x *AddInstanceResp) String() string

type Config

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

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

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 InstanceManagementServiceClient

type InstanceManagementServiceClient interface {
	ListInstance(ctx context.Context, in *ListInstanceReq, opts ...grpc.CallOption) (*ListInstanceResp, error)
	AddInstance(ctx context.Context, in *AddInstanceReq, opts ...grpc.CallOption) (*AddInstanceResp, error)
	StartInstance(ctx context.Context, in *StartInstanceReq, opts ...grpc.CallOption) (*StartInstanceResp, error)
}

InstanceManagementServiceClient is the client API for InstanceManagementService 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 InstanceManagementServiceServer

type InstanceManagementServiceServer interface {
	ListInstance(context.Context, *ListInstanceReq) (*ListInstanceResp, error)
	AddInstance(context.Context, *AddInstanceReq) (*AddInstanceResp, error)
	StartInstance(context.Context, *StartInstanceReq) (*StartInstanceResp, error)
	// contains filtered or unexported methods
}

InstanceManagementServiceServer is the server API for InstanceManagementService service. All implementations must embed UnimplementedInstanceManagementServiceServer for forward compatibility

type ListInstanceReq

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

func (*ListInstanceReq) Descriptor deprecated

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

Deprecated: Use ListInstanceReq.ProtoReflect.Descriptor instead.

func (*ListInstanceReq) ProtoMessage

func (*ListInstanceReq) ProtoMessage()

func (*ListInstanceReq) ProtoReflect

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

func (*ListInstanceReq) Reset

func (x *ListInstanceReq) Reset()

func (*ListInstanceReq) String

func (x *ListInstanceReq) String() string

type ListInstanceResp

type ListInstanceResp struct {
	Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInstanceResp) Descriptor deprecated

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

Deprecated: Use ListInstanceResp.ProtoReflect.Descriptor instead.

func (*ListInstanceResp) GetName

func (x *ListInstanceResp) GetName() []string

func (*ListInstanceResp) ProtoMessage

func (*ListInstanceResp) ProtoMessage()

func (*ListInstanceResp) ProtoReflect

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

func (*ListInstanceResp) Reset

func (x *ListInstanceResp) Reset()

func (*ListInstanceResp) String

func (x *ListInstanceResp) String() string

type StartInstanceReq

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

func (*StartInstanceReq) Descriptor deprecated

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

Deprecated: Use StartInstanceReq.ProtoReflect.Descriptor instead.

func (*StartInstanceReq) GetName

func (x *StartInstanceReq) GetName() string

func (*StartInstanceReq) ProtoMessage

func (*StartInstanceReq) ProtoMessage()

func (*StartInstanceReq) ProtoReflect

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

func (*StartInstanceReq) Reset

func (x *StartInstanceReq) Reset()

func (*StartInstanceReq) String

func (x *StartInstanceReq) String() string

type StartInstanceResp

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

func (*StartInstanceResp) Descriptor deprecated

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

Deprecated: Use StartInstanceResp.ProtoReflect.Descriptor instead.

func (*StartInstanceResp) ProtoMessage

func (*StartInstanceResp) ProtoMessage()

func (*StartInstanceResp) ProtoReflect

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

func (*StartInstanceResp) Reset

func (x *StartInstanceResp) Reset()

func (*StartInstanceResp) String

func (x *StartInstanceResp) String() string

type UnimplementedInstanceManagementServiceServer

type UnimplementedInstanceManagementServiceServer struct {
}

UnimplementedInstanceManagementServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedInstanceManagementServiceServer) AddInstance

func (UnimplementedInstanceManagementServiceServer) ListInstance

func (UnimplementedInstanceManagementServiceServer) StartInstance

type UnsafeInstanceManagementServiceServer

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

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

Jump to

Keyboard shortcuts

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