Documentation
¶
Index ¶
- Constants
- Variables
- func InstanceLabels(instance *instancev1alpha1.Instance) map[string]string
- func StateToTransport(state status.WorkloadState) workloadv1alpha2.WorkloadState
- func StatusToTransport(st status.Status) *workloadv1alpha2.WorkloadStatus
- func SystemWorkloadLabels(name string) map[string]string
- type PortAllocator
- type Server
- type Service
- type Workload
Constants ¶
View Source
const ( LabelWorkloadID = "explorer.chunks.cloud/workload-id" LabelWorkloadName = "explorer.chunks.cloud/workload-name" LabelWorkloadType = "explorer.chunks.cloud/workload-type" LabelChunkID = "explorer.chunks.cloud/chunk-id" LabelChunkName = "explorer.chunks.cloud/chunk-name" LabelFlavorVersionID = "explorer.chunks.cloud/flavor-version-id" LabelWorkloadPort = "explorer.chunks.cloud/workload-port" )
Variables ¶
View Source
var ErrMaxPortTriesReached = errors.New("maximum number of retries reached")
Functions ¶
func InstanceLabels ¶
func InstanceLabels(instance *instancev1alpha1.Instance) map[string]string
func StateToTransport ¶
func StateToTransport(state status.WorkloadState) workloadv1alpha2.WorkloadState
func StatusToTransport ¶
func StatusToTransport(st status.Status) *workloadv1alpha2.WorkloadStatus
func SystemWorkloadLabels ¶
SystemWorkloadLabels returns the labels used by system workloads
Types ¶
type PortAllocator ¶
type PortAllocator struct {
// contains filtered or unexported fields
}
func NewPortAllocator ¶
func NewPortAllocator(portMin, portMax uint16) *PortAllocator
func (*PortAllocator) Allocate ¶
func (a *PortAllocator) Allocate() (uint16, error)
func (*PortAllocator) Free ¶
func (a *PortAllocator) Free(port uint16)
type Server ¶
type Server struct {
workloadv1alpha2.UnimplementedWorkloadServiceServer
// contains filtered or unexported fields
}
func (*Server) WorkloadStatus ¶
func (s *Server) WorkloadStatus( _ context.Context, req *workloadv1alpha2.WorkloadStatusRequest, ) (*workloadv1alpha2.WorkloadStatusResponse, error)
Click to show internal directories.
Click to hide internal directories.