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.ClientConnInterface) 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 GetProvisionsRequest
- func (*GetProvisionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProvisionsRequest) GetUuid() string
- func (*GetProvisionsRequest) ProtoMessage()
- func (x *GetProvisionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetProvisionsRequest) Reset()
- func (x *GetProvisionsRequest) String() string
- type GetProvisionsResponse
- func (*GetProvisionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProvisionsResponse) GetProvisions() map[string]string
- func (*GetProvisionsResponse) ProtoMessage()
- func (x *GetProvisionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetProvisionsResponse) Reset()
- func (x *GetProvisionsResponse) String() string
- 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 ListResponse
- type PerformActionRequest
- func (*PerformActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PerformActionRequest) GetAction() string
- func (x *PerformActionRequest) GetData() map[string]*structpb.Value
- func (x *PerformActionRequest) GetGroup() string
- func (x *PerformActionRequest) GetInstance() string
- func (x *PerformActionRequest) GetService() string
- func (*PerformActionRequest) ProtoMessage()
- func (x *PerformActionRequest) ProtoReflect() protoreflect.Message
- func (x *PerformActionRequest) Reset()
- func (x *PerformActionRequest) String() string
- type PerformActionResponse
- func (*PerformActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PerformActionResponse) GetMeta() map[string]*structpb.Value
- func (x *PerformActionResponse) GetResult() bool
- func (*PerformActionResponse) ProtoMessage()
- func (x *PerformActionResponse) ProtoReflect() protoreflect.Message
- func (x *PerformActionResponse) Reset()
- func (x *PerformActionResponse) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetContext() map[string]*structpb.Value
- func (x *Service) GetHash() string
- func (x *Service) GetInstancesGroups() map[string]*proto.InstancesGroup
- func (x *Service) GetProvisions() map[string]string
- func (x *Service) GetStatus() string
- 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 ServicesServiceClient
- type ServicesServiceServer
- 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) GetProvisions(context.Context, *GetProvisionsRequest) (*GetProvisionsResponse, error)
- func (UnimplementedServicesServiceServer) GetStates(context.Context, *GetStatesRequest) (*proto.GetInstancesStatesResponse, error)
- func (UnimplementedServicesServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedServicesServiceServer) PerformServiceAction(context.Context, *PerformActionRequest) (*PerformActionResponse, error)
- func (UnimplementedServicesServiceServer) TestConfig(context.Context, *CreateRequest) (*TestConfigResponse, error)
- func (UnimplementedServicesServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
- func (UnimplementedServicesServiceServer) Update(context.Context, *UpdateRequest) (*Service, error)
- type UnsafeServicesServiceServer
- type UpError
- type UpRequest
- func (*UpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpRequest) GetDeployPolicies() map[string]string
- func (x *UpRequest) GetUuid() string
- func (*UpRequest) ProtoMessage()
- func (x *UpRequest) ProtoReflect() protoreflect.Message
- func (x *UpRequest) Reset()
- func (x *UpRequest) String() string
- type UpResponse
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetNamespace() string
- func (x *UpdateRequest) GetService() *Service
- func (x *UpdateRequest) GetUuid() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
Constants ¶
This section is empty.
Variables ¶
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: "GetStates", Handler: _ServicesService_GetStates_Handler, }, { MethodName: "GetProvisions", Handler: _ServicesService_GetProvisions_Handler, }, { MethodName: "Up", Handler: _ServicesService_Up_Handler, }, { MethodName: "Down", Handler: _ServicesService_Down_Handler, }, { MethodName: "PerformServiceAction", Handler: _ServicesService_PerformServiceAction_Handler, }, }, Streams: []grpc.StreamDesc{}, 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.ClientConnInterface) 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 GetProvisionsRequest ¶
type GetProvisionsRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetProvisionsRequest) Descriptor
deprecated
func (*GetProvisionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProvisionsRequest.ProtoReflect.Descriptor instead.
func (*GetProvisionsRequest) GetUuid ¶
func (x *GetProvisionsRequest) GetUuid() string
func (*GetProvisionsRequest) ProtoMessage ¶
func (*GetProvisionsRequest) ProtoMessage()
func (*GetProvisionsRequest) ProtoReflect ¶
func (x *GetProvisionsRequest) ProtoReflect() protoreflect.Message
func (*GetProvisionsRequest) Reset ¶
func (x *GetProvisionsRequest) Reset()
func (*GetProvisionsRequest) String ¶
func (x *GetProvisionsRequest) String() string
type GetProvisionsResponse ¶
type GetProvisionsResponse struct { Provisions map[string]string `` // Map of InstancesGroups to ServicesProviders they are deployed /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetProvisionsResponse) Descriptor
deprecated
func (*GetProvisionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProvisionsResponse.ProtoReflect.Descriptor instead.
func (*GetProvisionsResponse) GetProvisions ¶
func (x *GetProvisionsResponse) GetProvisions() map[string]string
func (*GetProvisionsResponse) ProtoMessage ¶
func (*GetProvisionsResponse) ProtoMessage()
func (*GetProvisionsResponse) ProtoReflect ¶
func (x *GetProvisionsResponse) ProtoReflect() protoreflect.Message
func (*GetProvisionsResponse) Reset ¶
func (x *GetProvisionsResponse) Reset()
func (*GetProvisionsResponse) String ¶
func (x *GetProvisionsResponse) 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 ListResponse ¶
type ListResponse struct { Pool []*Service `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetPool ¶
func (x *ListResponse) GetPool() []*Service
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type PerformActionRequest ¶
type PerformActionRequest struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` Data map[string]*structpb.Value `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PerformActionRequest) Descriptor
deprecated
func (*PerformActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PerformActionRequest.ProtoReflect.Descriptor instead.
func (*PerformActionRequest) GetAction ¶
func (x *PerformActionRequest) GetAction() string
func (*PerformActionRequest) GetData ¶
func (x *PerformActionRequest) GetData() map[string]*structpb.Value
func (*PerformActionRequest) GetGroup ¶
func (x *PerformActionRequest) GetGroup() string
func (*PerformActionRequest) GetInstance ¶
func (x *PerformActionRequest) GetInstance() string
func (*PerformActionRequest) GetService ¶
func (x *PerformActionRequest) GetService() string
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 PerformActionResponse ¶
type PerformActionResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Meta map[string]*structpb.Value `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PerformActionResponse) Descriptor
deprecated
func (*PerformActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use PerformActionResponse.ProtoReflect.Descriptor instead.
func (*PerformActionResponse) GetMeta ¶
func (x *PerformActionResponse) GetMeta() map[string]*structpb.Value
func (*PerformActionResponse) GetResult ¶
func (x *PerformActionResponse) GetResult() bool
func (*PerformActionResponse) ProtoMessage ¶
func (*PerformActionResponse) ProtoMessage()
func (*PerformActionResponse) ProtoReflect ¶
func (x *PerformActionResponse) ProtoReflect() protoreflect.Message
func (*PerformActionResponse) Reset ¶
func (x *PerformActionResponse) Reset()
func (*PerformActionResponse) String ¶
func (x *PerformActionResponse) 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 string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` Context map[string]*structpb.Value `` /* 155-byte string literal not displayed */ InstancesGroups map[string]*proto.InstancesGroup `` /* 194-byte string literal not displayed */ Hash string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` Provisions map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetInstancesGroups ¶
func (x *Service) GetInstancesGroups() map[string]*proto.InstancesGroup
func (*Service) GetProvisions ¶
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) 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 *UpdateRequest, 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) (*ListResponse, error) GetStates(ctx context.Context, in *GetStatesRequest, opts ...grpc.CallOption) (*proto.GetInstancesStatesResponse, error) GetProvisions(ctx context.Context, in *GetProvisionsRequest, opts ...grpc.CallOption) (*GetProvisionsResponse, error) Up(ctx context.Context, in *UpRequest, opts ...grpc.CallOption) (*UpResponse, error) Down(ctx context.Context, in *DownRequest, opts ...grpc.CallOption) (*DownResponse, error) PerformServiceAction(ctx context.Context, in *PerformActionRequest, opts ...grpc.CallOption) (*PerformActionResponse, 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, *UpdateRequest) (*Service, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Get(context.Context, *GetRequest) (*Service, error) List(context.Context, *ListRequest) (*ListResponse, error) GetStates(context.Context, *GetStatesRequest) (*proto.GetInstancesStatesResponse, error) GetProvisions(context.Context, *GetProvisionsRequest) (*GetProvisionsResponse, error) Up(context.Context, *UpRequest) (*UpResponse, error) Down(context.Context, *DownRequest) (*DownResponse, error) PerformServiceAction(context.Context, *PerformActionRequest) (*PerformActionResponse, error) // contains filtered or unexported methods }
ServicesServiceServer is the server API for ServicesService service. All implementations must embed UnimplementedServicesServiceServer for forward compatibility
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) GetProvisions ¶
func (UnimplementedServicesServiceServer) GetProvisions(context.Context, *GetProvisionsRequest) (*GetProvisionsResponse, error)
func (UnimplementedServicesServiceServer) GetStates ¶
func (UnimplementedServicesServiceServer) GetStates(context.Context, *GetStatesRequest) (*proto.GetInstancesStatesResponse, error)
func (UnimplementedServicesServiceServer) List ¶
func (UnimplementedServicesServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedServicesServiceServer) PerformServiceAction ¶
func (UnimplementedServicesServiceServer) PerformServiceAction(context.Context, *PerformActionRequest) (*PerformActionResponse, error)
func (UnimplementedServicesServiceServer) TestConfig ¶
func (UnimplementedServicesServiceServer) TestConfig(context.Context, *CreateRequest) (*TestConfigResponse, error)
func (UnimplementedServicesServiceServer) Up ¶
func (UnimplementedServicesServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
func (UnimplementedServicesServiceServer) Update ¶
func (UnimplementedServicesServiceServer) Update(context.Context, *UpdateRequest) (*Service, 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 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"` DeployPolicies map[string]string `` // Map of InstanceGroup UUID to ServiceProvider /* 191-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpRequest) Descriptor
deprecated
func (*UpRequest) GetDeployPolicies ¶
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
type UpdateRequest ¶
type UpdateRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Service *Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetNamespace ¶
func (x *UpdateRequest) GetNamespace() string
func (*UpdateRequest) GetService ¶
func (x *UpdateRequest) GetService() *Service
func (*UpdateRequest) GetUuid ¶
func (x *UpdateRequest) GetUuid() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string