Documentation ¶
Index ¶
- Variables
- func RegisterComposeServer(s *grpc.Server, srv ComposeServer)
- type ComposeClient
- type ComposeDownRequest
- func (*ComposeDownRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeDownRequest) GetFiles() []string
- func (x *ComposeDownRequest) GetProjectName() string
- func (x *ComposeDownRequest) GetWorkDir() string
- func (*ComposeDownRequest) ProtoMessage()
- func (x *ComposeDownRequest) ProtoReflect() protoreflect.Message
- func (x *ComposeDownRequest) Reset()
- func (x *ComposeDownRequest) String() string
- type ComposeDownResponse
- func (*ComposeDownResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeDownResponse) GetProjectName() string
- func (*ComposeDownResponse) ProtoMessage()
- func (x *ComposeDownResponse) ProtoReflect() protoreflect.Message
- func (x *ComposeDownResponse) Reset()
- func (x *ComposeDownResponse) String() string
- type ComposeServer
- type ComposeServicesRequest
- func (*ComposeServicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeServicesRequest) GetFiles() []string
- func (x *ComposeServicesRequest) GetProjectName() string
- func (x *ComposeServicesRequest) GetWorkDir() string
- func (*ComposeServicesRequest) ProtoMessage()
- func (x *ComposeServicesRequest) ProtoReflect() protoreflect.Message
- func (x *ComposeServicesRequest) Reset()
- func (x *ComposeServicesRequest) String() string
- type ComposeServicesResponse
- func (*ComposeServicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeServicesResponse) GetServices() []*Service
- func (*ComposeServicesResponse) ProtoMessage()
- func (x *ComposeServicesResponse) ProtoReflect() protoreflect.Message
- func (x *ComposeServicesResponse) Reset()
- func (x *ComposeServicesResponse) String() string
- type ComposeStacksRequest
- func (*ComposeStacksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeStacksRequest) GetProjectName() string
- func (*ComposeStacksRequest) ProtoMessage()
- func (x *ComposeStacksRequest) ProtoReflect() protoreflect.Message
- func (x *ComposeStacksRequest) Reset()
- func (x *ComposeStacksRequest) String() string
- type ComposeStacksResponse
- func (*ComposeStacksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeStacksResponse) GetStacks() []*Stack
- func (*ComposeStacksResponse) ProtoMessage()
- func (x *ComposeStacksResponse) ProtoReflect() protoreflect.Message
- func (x *ComposeStacksResponse) Reset()
- func (x *ComposeStacksResponse) String() string
- type ComposeUpRequest
- func (*ComposeUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeUpRequest) GetFiles() []string
- func (x *ComposeUpRequest) GetProjectName() string
- func (x *ComposeUpRequest) GetWorkDir() string
- func (*ComposeUpRequest) ProtoMessage()
- func (x *ComposeUpRequest) ProtoReflect() protoreflect.Message
- func (x *ComposeUpRequest) Reset()
- func (x *ComposeUpRequest) String() string
- type ComposeUpResponse
- func (*ComposeUpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ComposeUpResponse) GetProjectName() string
- func (*ComposeUpResponse) ProtoMessage()
- func (x *ComposeUpResponse) ProtoReflect() protoreflect.Message
- func (x *ComposeUpResponse) Reset()
- func (x *ComposeUpResponse) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetDesired() uint32
- func (x *Service) GetId() string
- func (x *Service) GetName() string
- func (x *Service) GetPorts() []string
- func (x *Service) GetReplicas() uint32
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type Stack
- func (*Stack) Descriptor() ([]byte, []int)deprecated
- func (x *Stack) GetId() string
- func (x *Stack) GetName() string
- func (x *Stack) GetReason() string
- func (x *Stack) GetStatus() string
- func (*Stack) ProtoMessage()
- func (x *Stack) ProtoReflect() protoreflect.Message
- func (x *Stack) Reset()
- func (x *Stack) String() string
- type UnimplementedComposeServer
- func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
- func (*UnimplementedComposeServer) Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error)
- func (*UnimplementedComposeServer) Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error)
- func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_cli_server_protos_compose_v1_compose_proto protoreflect.FileDescriptor
Functions ¶
func RegisterComposeServer ¶
func RegisterComposeServer(s *grpc.Server, srv ComposeServer)
Types ¶
type ComposeClient ¶
type ComposeClient interface { Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error) Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error) Stacks(ctx context.Context, in *ComposeStacksRequest, opts ...grpc.CallOption) (*ComposeStacksResponse, error) Services(ctx context.Context, in *ComposeServicesRequest, opts ...grpc.CallOption) (*ComposeServicesResponse, error) }
ComposeClient is the client API for Compose service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewComposeClient ¶
func NewComposeClient(cc grpc.ClientConnInterface) ComposeClient
type ComposeDownRequest ¶
type ComposeDownRequest struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"` Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*ComposeDownRequest) Descriptor
deprecated
func (*ComposeDownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ComposeDownRequest.ProtoReflect.Descriptor instead.
func (*ComposeDownRequest) GetFiles ¶
func (x *ComposeDownRequest) GetFiles() []string
func (*ComposeDownRequest) GetProjectName ¶
func (x *ComposeDownRequest) GetProjectName() string
func (*ComposeDownRequest) GetWorkDir ¶
func (x *ComposeDownRequest) GetWorkDir() string
func (*ComposeDownRequest) ProtoMessage ¶
func (*ComposeDownRequest) ProtoMessage()
func (*ComposeDownRequest) ProtoReflect ¶
func (x *ComposeDownRequest) ProtoReflect() protoreflect.Message
func (*ComposeDownRequest) Reset ¶
func (x *ComposeDownRequest) Reset()
func (*ComposeDownRequest) String ¶
func (x *ComposeDownRequest) String() string
type ComposeDownResponse ¶
type ComposeDownResponse struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` // contains filtered or unexported fields }
func (*ComposeDownResponse) Descriptor
deprecated
func (*ComposeDownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ComposeDownResponse.ProtoReflect.Descriptor instead.
func (*ComposeDownResponse) GetProjectName ¶
func (x *ComposeDownResponse) GetProjectName() string
func (*ComposeDownResponse) ProtoMessage ¶
func (*ComposeDownResponse) ProtoMessage()
func (*ComposeDownResponse) ProtoReflect ¶
func (x *ComposeDownResponse) ProtoReflect() protoreflect.Message
func (*ComposeDownResponse) Reset ¶
func (x *ComposeDownResponse) Reset()
func (*ComposeDownResponse) String ¶
func (x *ComposeDownResponse) String() string
type ComposeServer ¶
type ComposeServer interface { Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error) Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error) Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error) }
ComposeServer is the server API for Compose service.
type ComposeServicesRequest ¶
type ComposeServicesRequest struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"` Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*ComposeServicesRequest) Descriptor
deprecated
func (*ComposeServicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ComposeServicesRequest.ProtoReflect.Descriptor instead.
func (*ComposeServicesRequest) GetFiles ¶
func (x *ComposeServicesRequest) GetFiles() []string
func (*ComposeServicesRequest) GetProjectName ¶
func (x *ComposeServicesRequest) GetProjectName() string
func (*ComposeServicesRequest) GetWorkDir ¶
func (x *ComposeServicesRequest) GetWorkDir() string
func (*ComposeServicesRequest) ProtoMessage ¶
func (*ComposeServicesRequest) ProtoMessage()
func (*ComposeServicesRequest) ProtoReflect ¶
func (x *ComposeServicesRequest) ProtoReflect() protoreflect.Message
func (*ComposeServicesRequest) Reset ¶
func (x *ComposeServicesRequest) Reset()
func (*ComposeServicesRequest) String ¶
func (x *ComposeServicesRequest) String() string
type ComposeServicesResponse ¶
type ComposeServicesResponse struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*ComposeServicesResponse) Descriptor
deprecated
func (*ComposeServicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ComposeServicesResponse.ProtoReflect.Descriptor instead.
func (*ComposeServicesResponse) GetServices ¶
func (x *ComposeServicesResponse) GetServices() []*Service
func (*ComposeServicesResponse) ProtoMessage ¶
func (*ComposeServicesResponse) ProtoMessage()
func (*ComposeServicesResponse) ProtoReflect ¶
func (x *ComposeServicesResponse) ProtoReflect() protoreflect.Message
func (*ComposeServicesResponse) Reset ¶
func (x *ComposeServicesResponse) Reset()
func (*ComposeServicesResponse) String ¶
func (x *ComposeServicesResponse) String() string
type ComposeStacksRequest ¶
type ComposeStacksRequest struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` // contains filtered or unexported fields }
func (*ComposeStacksRequest) Descriptor
deprecated
func (*ComposeStacksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ComposeStacksRequest.ProtoReflect.Descriptor instead.
func (*ComposeStacksRequest) GetProjectName ¶
func (x *ComposeStacksRequest) GetProjectName() string
func (*ComposeStacksRequest) ProtoMessage ¶
func (*ComposeStacksRequest) ProtoMessage()
func (*ComposeStacksRequest) ProtoReflect ¶
func (x *ComposeStacksRequest) ProtoReflect() protoreflect.Message
func (*ComposeStacksRequest) Reset ¶
func (x *ComposeStacksRequest) Reset()
func (*ComposeStacksRequest) String ¶
func (x *ComposeStacksRequest) String() string
type ComposeStacksResponse ¶
type ComposeStacksResponse struct { Stacks []*Stack `protobuf:"bytes,1,rep,name=stacks,proto3" json:"stacks,omitempty"` // contains filtered or unexported fields }
func (*ComposeStacksResponse) Descriptor
deprecated
func (*ComposeStacksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ComposeStacksResponse.ProtoReflect.Descriptor instead.
func (*ComposeStacksResponse) GetStacks ¶
func (x *ComposeStacksResponse) GetStacks() []*Stack
func (*ComposeStacksResponse) ProtoMessage ¶
func (*ComposeStacksResponse) ProtoMessage()
func (*ComposeStacksResponse) ProtoReflect ¶
func (x *ComposeStacksResponse) ProtoReflect() protoreflect.Message
func (*ComposeStacksResponse) Reset ¶
func (x *ComposeStacksResponse) Reset()
func (*ComposeStacksResponse) String ¶
func (x *ComposeStacksResponse) String() string
type ComposeUpRequest ¶
type ComposeUpRequest struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"` Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*ComposeUpRequest) Descriptor
deprecated
func (*ComposeUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use ComposeUpRequest.ProtoReflect.Descriptor instead.
func (*ComposeUpRequest) GetFiles ¶
func (x *ComposeUpRequest) GetFiles() []string
func (*ComposeUpRequest) GetProjectName ¶
func (x *ComposeUpRequest) GetProjectName() string
func (*ComposeUpRequest) GetWorkDir ¶
func (x *ComposeUpRequest) GetWorkDir() string
func (*ComposeUpRequest) ProtoMessage ¶
func (*ComposeUpRequest) ProtoMessage()
func (*ComposeUpRequest) ProtoReflect ¶
func (x *ComposeUpRequest) ProtoReflect() protoreflect.Message
func (*ComposeUpRequest) Reset ¶
func (x *ComposeUpRequest) Reset()
func (*ComposeUpRequest) String ¶
func (x *ComposeUpRequest) String() string
type ComposeUpResponse ¶
type ComposeUpResponse struct { ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"` // contains filtered or unexported fields }
func (*ComposeUpResponse) Descriptor
deprecated
func (*ComposeUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use ComposeUpResponse.ProtoReflect.Descriptor instead.
func (*ComposeUpResponse) GetProjectName ¶
func (x *ComposeUpResponse) GetProjectName() string
func (*ComposeUpResponse) ProtoMessage ¶
func (*ComposeUpResponse) ProtoMessage()
func (*ComposeUpResponse) ProtoReflect ¶
func (x *ComposeUpResponse) ProtoReflect() protoreflect.Message
func (*ComposeUpResponse) Reset ¶
func (x *ComposeUpResponse) Reset()
func (*ComposeUpResponse) String ¶
func (x *ComposeUpResponse) String() string
type Service ¶
type Service struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Replicas uint32 `protobuf:"varint,3,opt,name=replicas,proto3" json:"replicas,omitempty"` Desired uint32 `protobuf:"varint,4,opt,name=desired,proto3" json:"desired,omitempty"` Ports []string `protobuf:"bytes,5,rep,name=Ports,proto3" json:"Ports,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetDesired ¶
func (*Service) GetReplicas ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type Stack ¶
type Stack struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*Stack) Descriptor
deprecated
func (*Stack) ProtoMessage ¶
func (*Stack) ProtoMessage()
func (*Stack) ProtoReflect ¶
func (x *Stack) ProtoReflect() protoreflect.Message
type UnimplementedComposeServer ¶
type UnimplementedComposeServer struct { }
UnimplementedComposeServer can be embedded to have forward compatible implementations.
func (*UnimplementedComposeServer) Down ¶
func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
func (*UnimplementedComposeServer) Services ¶
func (*UnimplementedComposeServer) Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error)
func (*UnimplementedComposeServer) Stacks ¶
func (*UnimplementedComposeServer) Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error)
func (*UnimplementedComposeServer) Up ¶
func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)