Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterServicesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServicesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServicesServiceClient) error
- func RegisterServicesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServicesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServicesServiceServer) error
- func RegisterServicesServiceServer(s grpc.ServiceRegistrar, srv ServicesServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetNamespace() string
- func (x *CreateRequest) GetService() *Service
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type DeleteRequest
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetError() string
- func (x *DeleteResponse) GetResult() bool
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- type DownRequest
- type DownResponse
- type GetRequest
- type GetStatesRequest
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetDepth() int32
- func (x *ListRequest) GetNamespace() string
- func (x *ListRequest) GetShowDeleted() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetAccess() *access.Access
- func (x *Service) GetContext() map[string]*structpb.Value
- func (x *Service) GetHash() string
- func (x *Service) GetInstancesGroups() []*proto.InstancesGroup
- func (x *Service) GetStatus() ServiceStatus
- func (x *Service) GetTitle() string
- func (x *Service) GetUuid() string
- func (x *Service) GetVersion() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type ServiceStatus
- func (ServiceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceStatus) Enum() *ServiceStatus
- func (ServiceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceStatus) Number() protoreflect.EnumNumber
- func (x ServiceStatus) String() string
- func (ServiceStatus) Type() protoreflect.EnumType
- type Services
- type ServicesServiceClient
- type ServicesServiceServer
- type ServicesService_StreamClient
- type ServicesService_StreamServer
- type StreamRequest
- type SuspendRequest
- type SuspendResponse
- type TestConfigError
- func (*TestConfigError) Descriptor() ([]byte, []int)deprecated
- func (x *TestConfigError) GetError() string
- func (x *TestConfigError) GetInstance() string
- func (x *TestConfigError) GetInstanceGroup() string
- func (*TestConfigError) ProtoMessage()
- func (x *TestConfigError) ProtoReflect() protoreflect.Message
- func (x *TestConfigError) Reset()
- func (x *TestConfigError) String() string
- type TestConfigResponse
- func (*TestConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestConfigResponse) GetErrors() []*TestConfigError
- func (x *TestConfigResponse) GetResult() bool
- func (*TestConfigResponse) ProtoMessage()
- func (x *TestConfigResponse) ProtoReflect() protoreflect.Message
- func (x *TestConfigResponse) Reset()
- func (x *TestConfigResponse) String() string
- type UnimplementedServicesServiceServer
- func (UnimplementedServicesServiceServer) Create(context.Context, *CreateRequest) (*Service, error)
- func (UnimplementedServicesServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedServicesServiceServer) Down(context.Context, *DownRequest) (*DownResponse, error)
- func (UnimplementedServicesServiceServer) Get(context.Context, *GetRequest) (*Service, error)
- func (UnimplementedServicesServiceServer) List(context.Context, *ListRequest) (*Services, error)
- func (UnimplementedServicesServiceServer) Stream(*StreamRequest, ServicesService_StreamServer) error
- func (UnimplementedServicesServiceServer) Suspend(context.Context, *SuspendRequest) (*SuspendResponse, error)
- func (UnimplementedServicesServiceServer) TestConfig(context.Context, *CreateRequest) (*TestConfigResponse, error)
- func (UnimplementedServicesServiceServer) Unsuspend(context.Context, *UnsuspendRequest) (*UnsuspendResponse, error)
- func (UnimplementedServicesServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
- func (UnimplementedServicesServiceServer) Update(context.Context, *Service) (*Service, error)
- type UnsafeServicesServiceServer
- type UnsuspendRequest
- type UnsuspendResponse
- type UpError
- type UpRequest
- type UpResponse
Constants ¶
This section is empty.
Variables ¶
var ( ServiceStatus_name = map[int32]string{ 0: "UNSPECIFIED", 1: "INIT", 2: "MODIFIED", 3: "UP", 4: "DOWN", 5: "DEL", 6: "PROC", 7: "SUS", } ServiceStatus_value = map[string]int32{ "UNSPECIFIED": 0, "INIT": 1, "MODIFIED": 2, "UP": 3, "DOWN": 4, "DEL": 5, "PROC": 6, "SUS": 7, } )
Enum value maps for ServiceStatus.
var File_pkg_services_proto_services_proto protoreflect.FileDescriptor
var ServicesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nocloud.services.ServicesService", HandlerType: (*ServicesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TestConfig", Handler: _ServicesService_TestConfig_Handler, }, { MethodName: "Create", Handler: _ServicesService_Create_Handler, }, { MethodName: "Update", Handler: _ServicesService_Update_Handler, }, { MethodName: "Delete", Handler: _ServicesService_Delete_Handler, }, { MethodName: "Get", Handler: _ServicesService_Get_Handler, }, { MethodName: "List", Handler: _ServicesService_List_Handler, }, { MethodName: "Up", Handler: _ServicesService_Up_Handler, }, { MethodName: "Down", Handler: _ServicesService_Down_Handler, }, { MethodName: "Suspend", Handler: _ServicesService_Suspend_Handler, }, { MethodName: "Unsuspend", Handler: _ServicesService_Unsuspend_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _ServicesService_Stream_Handler, ServerStreams: true, }, }, Metadata: "pkg/services/proto/services.proto", }
ServicesService_ServiceDesc is the grpc.ServiceDesc for ServicesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServicesServiceHandler ¶
func RegisterServicesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServicesServiceHandler registers the http handlers for service ServicesService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServicesServiceHandlerClient ¶
func RegisterServicesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServicesServiceClient) error
RegisterServicesServiceHandlerClient registers the http handlers for service ServicesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServicesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServicesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServicesServiceClient" to call the correct interceptors.
func RegisterServicesServiceHandlerFromEndpoint ¶
func RegisterServicesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServicesServiceHandlerFromEndpoint is same as RegisterServicesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServicesServiceHandlerServer ¶
func RegisterServicesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServicesServiceServer) error
RegisterServicesServiceHandlerServer registers the http handlers for service ServicesService to "mux". UnaryRPC :call ServicesServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServicesServiceHandlerFromEndpoint instead.
func RegisterServicesServiceServer ¶
func RegisterServicesServiceServer(s grpc.ServiceRegistrar, srv ServicesServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetNamespace ¶
func (x *CreateRequest) GetNamespace() string
func (*CreateRequest) GetService ¶
func (x *CreateRequest) GetService() *Service
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type DeleteRequest ¶
type DeleteRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetUuid ¶
func (x *DeleteRequest) GetUuid() string
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 { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetError ¶
func (x *DeleteResponse) GetError() string
func (*DeleteResponse) GetResult ¶
func (x *DeleteResponse) GetResult() bool
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 DownRequest ¶
type DownRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*DownRequest) Descriptor
deprecated
func (*DownRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownRequest.ProtoReflect.Descriptor instead.
func (*DownRequest) GetUuid ¶
func (x *DownRequest) GetUuid() string
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 {
// contains filtered or unexported fields
}
func (*DownResponse) Descriptor
deprecated
func (*DownResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownResponse.ProtoReflect.Descriptor instead.
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 GetRequest ¶
type GetRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetUuid ¶
func (x *GetRequest) GetUuid() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetStatesRequest ¶
type GetStatesRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Service UUID // contains filtered or unexported fields }
func (*GetStatesRequest) Descriptor
deprecated
func (*GetStatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatesRequest.ProtoReflect.Descriptor instead.
func (*GetStatesRequest) GetUuid ¶
func (x *GetStatesRequest) GetUuid() string
func (*GetStatesRequest) ProtoMessage ¶
func (*GetStatesRequest) ProtoMessage()
func (*GetStatesRequest) ProtoReflect ¶
func (x *GetStatesRequest) ProtoReflect() protoreflect.Message
func (*GetStatesRequest) Reset ¶
func (x *GetStatesRequest) Reset()
func (*GetStatesRequest) String ¶
func (x *GetStatesRequest) String() string
type ListRequest ¶
type ListRequest struct { ShowDeleted *string `protobuf:"bytes,1,opt,name=show_deleted,json=showDeleted,proto3,oneof" json:"show_deleted,omitempty"` Namespace *string `protobuf:"bytes,2,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"` Depth *int32 `protobuf:"varint,3,opt,name=depth,proto3,oneof" json:"depth,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetDepth ¶
func (x *ListRequest) GetDepth() int32
func (*ListRequest) GetNamespace ¶
func (x *ListRequest) GetNamespace() string
func (*ListRequest) GetShowDeleted ¶
func (x *ListRequest) GetShowDeleted() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type Service ¶
type Service struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Status ServiceStatus `protobuf:"varint,4,opt,name=status,proto3,enum=nocloud.services.ServiceStatus" json:"status,omitempty"` Context map[string]*structpb.Value `` /* 155-byte string literal not displayed */ InstancesGroups []*proto.InstancesGroup `protobuf:"bytes,6,rep,name=instances_groups,json=instancesGroups,proto3" json:"instances_groups,omitempty"` Hash string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` Access *access.Access `protobuf:"bytes,8,opt,name=access,proto3,oneof" json:"access,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetInstancesGroups ¶
func (x *Service) GetInstancesGroups() []*proto.InstancesGroup
func (*Service) GetStatus ¶
func (x *Service) GetStatus() ServiceStatus
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type ServiceStatus ¶
type ServiceStatus int32
const ( ServiceStatus_UNSPECIFIED ServiceStatus = 0 ServiceStatus_INIT ServiceStatus = 1 ServiceStatus_MODIFIED ServiceStatus = 2 ServiceStatus_UP ServiceStatus = 3 ServiceStatus_DOWN ServiceStatus = 4 ServiceStatus_DEL ServiceStatus = 5 ServiceStatus_PROC ServiceStatus = 6 ServiceStatus_SUS ServiceStatus = 7 )
func (ServiceStatus) Descriptor ¶
func (ServiceStatus) Descriptor() protoreflect.EnumDescriptor
func (ServiceStatus) Enum ¶
func (x ServiceStatus) Enum() *ServiceStatus
func (ServiceStatus) EnumDescriptor
deprecated
func (ServiceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceStatus.Descriptor instead.
func (ServiceStatus) Number ¶
func (x ServiceStatus) Number() protoreflect.EnumNumber
func (ServiceStatus) String ¶
func (x ServiceStatus) String() string
func (ServiceStatus) Type ¶
func (ServiceStatus) Type() protoreflect.EnumType
type Services ¶
type Services struct { Pool []*Service `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*Services) Descriptor
deprecated
func (*Services) ProtoMessage ¶
func (*Services) ProtoMessage()
func (*Services) ProtoReflect ¶
func (x *Services) ProtoReflect() protoreflect.Message
type ServicesServiceClient ¶
type ServicesServiceClient interface { TestConfig(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*TestConfigResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Service, error) Update(ctx context.Context, in *Service, opts ...grpc.CallOption) (*Service, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Service, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*Services, error) Up(ctx context.Context, in *UpRequest, opts ...grpc.CallOption) (*UpResponse, error) Down(ctx context.Context, in *DownRequest, opts ...grpc.CallOption) (*DownResponse, error) Suspend(ctx context.Context, in *SuspendRequest, opts ...grpc.CallOption) (*SuspendResponse, error) Unsuspend(ctx context.Context, in *UnsuspendRequest, opts ...grpc.CallOption) (*UnsuspendResponse, error) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (ServicesService_StreamClient, error) }
ServicesServiceClient is the client API for ServicesService 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 NewServicesServiceClient ¶
func NewServicesServiceClient(cc grpc.ClientConnInterface) ServicesServiceClient
type ServicesServiceServer ¶
type ServicesServiceServer interface { TestConfig(context.Context, *CreateRequest) (*TestConfigResponse, error) Create(context.Context, *CreateRequest) (*Service, error) Update(context.Context, *Service) (*Service, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Get(context.Context, *GetRequest) (*Service, error) List(context.Context, *ListRequest) (*Services, error) Up(context.Context, *UpRequest) (*UpResponse, error) Down(context.Context, *DownRequest) (*DownResponse, error) Suspend(context.Context, *SuspendRequest) (*SuspendResponse, error) Unsuspend(context.Context, *UnsuspendRequest) (*UnsuspendResponse, error) Stream(*StreamRequest, ServicesService_StreamServer) error // contains filtered or unexported methods }
ServicesServiceServer is the server API for ServicesService service. All implementations must embed UnimplementedServicesServiceServer for forward compatibility
type ServicesService_StreamClient ¶
type ServicesService_StreamClient interface { Recv() (*proto.ObjectState, error) grpc.ClientStream }
type ServicesService_StreamServer ¶
type ServicesService_StreamServer interface { Send(*proto.ObjectState) error grpc.ServerStream }
type StreamRequest ¶
type StreamRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*StreamRequest) Descriptor
deprecated
func (*StreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.
func (*StreamRequest) GetUuid ¶
func (x *StreamRequest) GetUuid() string
func (*StreamRequest) ProtoMessage ¶
func (*StreamRequest) ProtoMessage()
func (*StreamRequest) ProtoReflect ¶
func (x *StreamRequest) ProtoReflect() protoreflect.Message
func (*StreamRequest) Reset ¶
func (x *StreamRequest) Reset()
func (*StreamRequest) String ¶
func (x *StreamRequest) String() string
type SuspendRequest ¶
type SuspendRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*SuspendRequest) Descriptor
deprecated
func (*SuspendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SuspendRequest.ProtoReflect.Descriptor instead.
func (*SuspendRequest) GetUuid ¶
func (x *SuspendRequest) GetUuid() string
func (*SuspendRequest) ProtoMessage ¶
func (*SuspendRequest) ProtoMessage()
func (*SuspendRequest) ProtoReflect ¶
func (x *SuspendRequest) ProtoReflect() protoreflect.Message
func (*SuspendRequest) Reset ¶
func (x *SuspendRequest) Reset()
func (*SuspendRequest) String ¶
func (x *SuspendRequest) String() string
type SuspendResponse ¶
type SuspendResponse struct {
// contains filtered or unexported fields
}
func (*SuspendResponse) Descriptor
deprecated
func (*SuspendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SuspendResponse.ProtoReflect.Descriptor instead.
func (*SuspendResponse) ProtoMessage ¶
func (*SuspendResponse) ProtoMessage()
func (*SuspendResponse) ProtoReflect ¶
func (x *SuspendResponse) ProtoReflect() protoreflect.Message
func (*SuspendResponse) Reset ¶
func (x *SuspendResponse) Reset()
func (*SuspendResponse) String ¶
func (x *SuspendResponse) String() string
type TestConfigError ¶
type TestConfigError struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` InstanceGroup string `protobuf:"bytes,2,opt,name=instance_group,json=instanceGroup,proto3" json:"instance_group,omitempty"` Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
func (*TestConfigError) Descriptor
deprecated
func (*TestConfigError) Descriptor() ([]byte, []int)
Deprecated: Use TestConfigError.ProtoReflect.Descriptor instead.
func (*TestConfigError) GetError ¶
func (x *TestConfigError) GetError() string
func (*TestConfigError) GetInstance ¶
func (x *TestConfigError) GetInstance() string
func (*TestConfigError) GetInstanceGroup ¶
func (x *TestConfigError) GetInstanceGroup() string
func (*TestConfigError) ProtoMessage ¶
func (*TestConfigError) ProtoMessage()
func (*TestConfigError) ProtoReflect ¶
func (x *TestConfigError) ProtoReflect() protoreflect.Message
func (*TestConfigError) Reset ¶
func (x *TestConfigError) Reset()
func (*TestConfigError) String ¶
func (x *TestConfigError) String() string
type TestConfigResponse ¶
type TestConfigResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Errors []*TestConfigError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*TestConfigResponse) Descriptor
deprecated
func (*TestConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestConfigResponse.ProtoReflect.Descriptor instead.
func (*TestConfigResponse) GetErrors ¶
func (x *TestConfigResponse) GetErrors() []*TestConfigError
func (*TestConfigResponse) GetResult ¶
func (x *TestConfigResponse) GetResult() bool
func (*TestConfigResponse) ProtoMessage ¶
func (*TestConfigResponse) ProtoMessage()
func (*TestConfigResponse) ProtoReflect ¶
func (x *TestConfigResponse) ProtoReflect() protoreflect.Message
func (*TestConfigResponse) Reset ¶
func (x *TestConfigResponse) Reset()
func (*TestConfigResponse) String ¶
func (x *TestConfigResponse) String() string
type UnimplementedServicesServiceServer ¶
type UnimplementedServicesServiceServer struct { }
UnimplementedServicesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServicesServiceServer) Create ¶
func (UnimplementedServicesServiceServer) Create(context.Context, *CreateRequest) (*Service, error)
func (UnimplementedServicesServiceServer) Delete ¶
func (UnimplementedServicesServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedServicesServiceServer) Down ¶
func (UnimplementedServicesServiceServer) Down(context.Context, *DownRequest) (*DownResponse, error)
func (UnimplementedServicesServiceServer) Get ¶
func (UnimplementedServicesServiceServer) Get(context.Context, *GetRequest) (*Service, error)
func (UnimplementedServicesServiceServer) List ¶
func (UnimplementedServicesServiceServer) List(context.Context, *ListRequest) (*Services, error)
func (UnimplementedServicesServiceServer) Stream ¶
func (UnimplementedServicesServiceServer) Stream(*StreamRequest, ServicesService_StreamServer) error
func (UnimplementedServicesServiceServer) Suspend ¶
func (UnimplementedServicesServiceServer) Suspend(context.Context, *SuspendRequest) (*SuspendResponse, error)
func (UnimplementedServicesServiceServer) TestConfig ¶
func (UnimplementedServicesServiceServer) TestConfig(context.Context, *CreateRequest) (*TestConfigResponse, error)
func (UnimplementedServicesServiceServer) Unsuspend ¶
func (UnimplementedServicesServiceServer) Unsuspend(context.Context, *UnsuspendRequest) (*UnsuspendResponse, error)
func (UnimplementedServicesServiceServer) Up ¶
func (UnimplementedServicesServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
type UnsafeServicesServiceServer ¶
type UnsafeServicesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServicesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServicesServiceServer will result in compilation errors.
type UnsuspendRequest ¶
type UnsuspendRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*UnsuspendRequest) Descriptor
deprecated
func (*UnsuspendRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnsuspendRequest.ProtoReflect.Descriptor instead.
func (*UnsuspendRequest) GetUuid ¶
func (x *UnsuspendRequest) GetUuid() string
func (*UnsuspendRequest) ProtoMessage ¶
func (*UnsuspendRequest) ProtoMessage()
func (*UnsuspendRequest) ProtoReflect ¶
func (x *UnsuspendRequest) ProtoReflect() protoreflect.Message
func (*UnsuspendRequest) Reset ¶
func (x *UnsuspendRequest) Reset()
func (*UnsuspendRequest) String ¶
func (x *UnsuspendRequest) String() string
type UnsuspendResponse ¶
type UnsuspendResponse struct {
// contains filtered or unexported fields
}
func (*UnsuspendResponse) Descriptor
deprecated
func (*UnsuspendResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnsuspendResponse.ProtoReflect.Descriptor instead.
func (*UnsuspendResponse) ProtoMessage ¶
func (*UnsuspendResponse) ProtoMessage()
func (*UnsuspendResponse) ProtoReflect ¶
func (x *UnsuspendResponse) ProtoReflect() protoreflect.Message
func (*UnsuspendResponse) Reset ¶
func (x *UnsuspendResponse) Reset()
func (*UnsuspendResponse) String ¶
func (x *UnsuspendResponse) String() string
type UpError ¶
type UpError struct { Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpError) Descriptor
deprecated
func (*UpError) ProtoMessage ¶
func (*UpError) ProtoMessage()
func (*UpError) ProtoReflect ¶
func (x *UpError) ProtoReflect() protoreflect.Message
type UpRequest ¶
type UpRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*UpRequest) Descriptor
deprecated
func (*UpRequest) ProtoMessage ¶
func (*UpRequest) ProtoMessage()
func (*UpRequest) ProtoReflect ¶
func (x *UpRequest) ProtoReflect() protoreflect.Message
type UpResponse ¶
type UpResponse struct { Errors []*UpError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*UpResponse) Descriptor
deprecated
func (*UpResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpResponse.ProtoReflect.Descriptor instead.
func (*UpResponse) GetErrors ¶
func (x *UpResponse) GetErrors() []*UpError
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