Documentation
¶
Index ¶
- Variables
- func RegisterKubesServiceServer(s grpc.ServiceRegistrar, srv KubesServiceServer)
- type DeleteDeploymentRequest
- func (*DeleteDeploymentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeploymentRequest) GetDomainName() string
- func (x *DeleteDeploymentRequest) GetName() string
- func (*DeleteDeploymentRequest) ProtoMessage()
- func (x *DeleteDeploymentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeploymentRequest) Reset()
- func (x *DeleteDeploymentRequest) String() string
- type DeleteDeploymentResponse
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)deprecated
- func (x *Deployment) GetId() string
- func (x *Deployment) GetImage() string
- func (x *Deployment) GetName() string
- func (x *Deployment) GetNamespace() string
- func (x *Deployment) GetReplicas() int32
- func (x *Deployment) GetStatus() string
- func (*Deployment) ProtoMessage()
- func (x *Deployment) ProtoReflect() protoreflect.Message
- func (x *Deployment) Reset()
- func (x *Deployment) String() string
- type KubesServiceClient
- type KubesServiceServer
- type ListDeploymentsRequest
- func (*ListDeploymentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeploymentsRequest) GetNamespace() string
- func (*ListDeploymentsRequest) ProtoMessage()
- func (x *ListDeploymentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListDeploymentsRequest) Reset()
- func (x *ListDeploymentsRequest) String() string
- type ListDeploymentsResponse
- func (*ListDeploymentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeploymentsResponse) GetDeployments() []*Deployment
- func (*ListDeploymentsResponse) ProtoMessage()
- func (x *ListDeploymentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListDeploymentsResponse) Reset()
- func (x *ListDeploymentsResponse) String() string
- type NewDeploymentRequest
- func (*NewDeploymentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewDeploymentRequest) GetDomainName() string
- func (x *NewDeploymentRequest) GetName() string
- func (*NewDeploymentRequest) ProtoMessage()
- func (x *NewDeploymentRequest) ProtoReflect() protoreflect.Message
- func (x *NewDeploymentRequest) Reset()
- func (x *NewDeploymentRequest) String() string
- type NewDeploymentResponse
- func (*NewDeploymentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewDeploymentResponse) GetDeployment() *Deployment
- func (*NewDeploymentResponse) ProtoMessage()
- func (x *NewDeploymentResponse) ProtoReflect() protoreflect.Message
- func (x *NewDeploymentResponse) Reset()
- func (x *NewDeploymentResponse) String() string
- type UnimplementedKubesServiceServer
- func (UnimplementedKubesServiceServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*DeleteDeploymentResponse, error)
- func (UnimplementedKubesServiceServer) ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error)
- func (UnimplementedKubesServiceServer) NewDeployment(context.Context, *NewDeploymentRequest) (*NewDeploymentResponse, error)
- type UnsafeKubesServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_kubes_kubes_proto protoreflect.FileDescriptor
var KubesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kubes.KubesService", HandlerType: (*KubesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDeployments", Handler: _KubesService_ListDeployments_Handler, }, { MethodName: "NewDeployment", Handler: _KubesService_NewDeployment_Handler, }, { MethodName: "DeleteDeployment", Handler: _KubesService_DeleteDeployment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kubes/kubes.proto", }
KubesService_ServiceDesc is the grpc.ServiceDesc for KubesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKubesServiceServer ¶
func RegisterKubesServiceServer(s grpc.ServiceRegistrar, srv KubesServiceServer)
Types ¶
type DeleteDeploymentRequest ¶
type DeleteDeploymentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` // contains filtered or unexported fields }
func (*DeleteDeploymentRequest) Descriptor
deprecated
func (*DeleteDeploymentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeploymentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeploymentRequest) GetDomainName ¶
func (x *DeleteDeploymentRequest) GetDomainName() string
func (*DeleteDeploymentRequest) GetName ¶
func (x *DeleteDeploymentRequest) GetName() string
func (*DeleteDeploymentRequest) ProtoMessage ¶
func (*DeleteDeploymentRequest) ProtoMessage()
func (*DeleteDeploymentRequest) ProtoReflect ¶
func (x *DeleteDeploymentRequest) ProtoReflect() protoreflect.Message
func (*DeleteDeploymentRequest) Reset ¶
func (x *DeleteDeploymentRequest) Reset()
func (*DeleteDeploymentRequest) String ¶
func (x *DeleteDeploymentRequest) String() string
type DeleteDeploymentResponse ¶
type DeleteDeploymentResponse struct {
// contains filtered or unexported fields
}
func (*DeleteDeploymentResponse) Descriptor
deprecated
func (*DeleteDeploymentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeploymentResponse.ProtoReflect.Descriptor instead.
func (*DeleteDeploymentResponse) ProtoMessage ¶
func (*DeleteDeploymentResponse) ProtoMessage()
func (*DeleteDeploymentResponse) ProtoReflect ¶
func (x *DeleteDeploymentResponse) ProtoReflect() protoreflect.Message
func (*DeleteDeploymentResponse) Reset ¶
func (x *DeleteDeploymentResponse) Reset()
func (*DeleteDeploymentResponse) String ¶
func (x *DeleteDeploymentResponse) String() string
type Deployment ¶
type Deployment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` Replicas int32 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Deployment) Descriptor
deprecated
func (*Deployment) Descriptor() ([]byte, []int)
Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) GetId ¶
func (x *Deployment) GetId() string
func (*Deployment) GetImage ¶
func (x *Deployment) GetImage() string
func (*Deployment) GetName ¶
func (x *Deployment) GetName() string
func (*Deployment) GetNamespace ¶
func (x *Deployment) GetNamespace() string
func (*Deployment) GetReplicas ¶
func (x *Deployment) GetReplicas() int32
func (*Deployment) GetStatus ¶
func (x *Deployment) GetStatus() string
func (*Deployment) ProtoMessage ¶
func (*Deployment) ProtoMessage()
func (*Deployment) ProtoReflect ¶
func (x *Deployment) ProtoReflect() protoreflect.Message
func (*Deployment) Reset ¶
func (x *Deployment) Reset()
func (*Deployment) String ¶
func (x *Deployment) String() string
type KubesServiceClient ¶
type KubesServiceClient interface { ListDeployments(ctx context.Context, in *ListDeploymentsRequest, opts ...grpc.CallOption) (*ListDeploymentsResponse, error) NewDeployment(ctx context.Context, in *NewDeploymentRequest, opts ...grpc.CallOption) (*NewDeploymentResponse, error) DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*DeleteDeploymentResponse, error) }
KubesServiceClient is the client API for KubesService 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 NewKubesServiceClient ¶
func NewKubesServiceClient(cc grpc.ClientConnInterface) KubesServiceClient
type KubesServiceServer ¶
type KubesServiceServer interface { ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error) NewDeployment(context.Context, *NewDeploymentRequest) (*NewDeploymentResponse, error) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*DeleteDeploymentResponse, error) }
KubesServiceServer is the server API for KubesService service. All implementations should embed UnimplementedKubesServiceServer for forward compatibility
type ListDeploymentsRequest ¶
type ListDeploymentsRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ListDeploymentsRequest) Descriptor
deprecated
func (*ListDeploymentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDeploymentsRequest.ProtoReflect.Descriptor instead.
func (*ListDeploymentsRequest) GetNamespace ¶
func (x *ListDeploymentsRequest) GetNamespace() string
func (*ListDeploymentsRequest) ProtoMessage ¶
func (*ListDeploymentsRequest) ProtoMessage()
func (*ListDeploymentsRequest) ProtoReflect ¶
func (x *ListDeploymentsRequest) ProtoReflect() protoreflect.Message
func (*ListDeploymentsRequest) Reset ¶
func (x *ListDeploymentsRequest) Reset()
func (*ListDeploymentsRequest) String ¶
func (x *ListDeploymentsRequest) String() string
type ListDeploymentsResponse ¶
type ListDeploymentsResponse struct { Deployments []*Deployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"` // contains filtered or unexported fields }
func (*ListDeploymentsResponse) Descriptor
deprecated
func (*ListDeploymentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDeploymentsResponse.ProtoReflect.Descriptor instead.
func (*ListDeploymentsResponse) GetDeployments ¶
func (x *ListDeploymentsResponse) GetDeployments() []*Deployment
func (*ListDeploymentsResponse) ProtoMessage ¶
func (*ListDeploymentsResponse) ProtoMessage()
func (*ListDeploymentsResponse) ProtoReflect ¶
func (x *ListDeploymentsResponse) ProtoReflect() protoreflect.Message
func (*ListDeploymentsResponse) Reset ¶
func (x *ListDeploymentsResponse) Reset()
func (*ListDeploymentsResponse) String ¶
func (x *ListDeploymentsResponse) String() string
type NewDeploymentRequest ¶
type NewDeploymentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` // contains filtered or unexported fields }
func (*NewDeploymentRequest) Descriptor
deprecated
func (*NewDeploymentRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewDeploymentRequest.ProtoReflect.Descriptor instead.
func (*NewDeploymentRequest) GetDomainName ¶
func (x *NewDeploymentRequest) GetDomainName() string
func (*NewDeploymentRequest) GetName ¶
func (x *NewDeploymentRequest) GetName() string
func (*NewDeploymentRequest) ProtoMessage ¶
func (*NewDeploymentRequest) ProtoMessage()
func (*NewDeploymentRequest) ProtoReflect ¶
func (x *NewDeploymentRequest) ProtoReflect() protoreflect.Message
func (*NewDeploymentRequest) Reset ¶
func (x *NewDeploymentRequest) Reset()
func (*NewDeploymentRequest) String ¶
func (x *NewDeploymentRequest) String() string
type NewDeploymentResponse ¶
type NewDeploymentResponse struct { Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` // contains filtered or unexported fields }
func (*NewDeploymentResponse) Descriptor
deprecated
func (*NewDeploymentResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewDeploymentResponse.ProtoReflect.Descriptor instead.
func (*NewDeploymentResponse) GetDeployment ¶
func (x *NewDeploymentResponse) GetDeployment() *Deployment
func (*NewDeploymentResponse) ProtoMessage ¶
func (*NewDeploymentResponse) ProtoMessage()
func (*NewDeploymentResponse) ProtoReflect ¶
func (x *NewDeploymentResponse) ProtoReflect() protoreflect.Message
func (*NewDeploymentResponse) Reset ¶
func (x *NewDeploymentResponse) Reset()
func (*NewDeploymentResponse) String ¶
func (x *NewDeploymentResponse) String() string
type UnimplementedKubesServiceServer ¶
type UnimplementedKubesServiceServer struct { }
UnimplementedKubesServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedKubesServiceServer) DeleteDeployment ¶
func (UnimplementedKubesServiceServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*DeleteDeploymentResponse, error)
func (UnimplementedKubesServiceServer) ListDeployments ¶
func (UnimplementedKubesServiceServer) ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error)
func (UnimplementedKubesServiceServer) NewDeployment ¶
func (UnimplementedKubesServiceServer) NewDeployment(context.Context, *NewDeploymentRequest) (*NewDeploymentResponse, error)
type UnsafeKubesServiceServer ¶
type UnsafeKubesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKubesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KubesServiceServer will result in compilation errors.