clusters

package
v0.0.0-...-5fda629 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVersion          = "v1"
	DefaultShortDescription = "logging information"
	DefaultDescription      = "logging detail information of the strategy"
	DefaultName             = "hello-world-cluster"
	DefaultKind             = strategies.KindController
	DefaultImage            = "simple-test"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ClusterVersion          string `json:"version"`
	ClusterShortDescription string `json:"short description"`
	ClusterDescription      string `json:"detail description"`
	ClusterName             string `json:"name"`
	ClusterMasterKind       string `json:"kind"`
	ClusterMasterImage      string `json:"image"`

	ClusterMasterGuid          string            `json:"guid"`
	ClusterMasterContainerId   string            `json:"containerId"`
	ClusterMasterContainerName string            `json:"containerName"`
	ClusterMasterContainerEnvs map[string]string `json:"envs"`

	ClusterMasterContainerArgs map[string]string `json:"args"`
	ClusterMasterContainerRes  map[string]string `json:"res"`

	ClusterSlaves map[string]int `json:"slaves"`
	//ClusterDevices map[string]string `json:"devices"`
	//ClusterServices map[string]string `json:"services"`
	ClusterResources map[string]string `json:"resources"`
}

func NewCluster

func NewCluster(s *strategies.Strategy) *Cluster

func NewDefaultCluster

func NewDefaultCluster() *Cluster

func (*Cluster) DeepCopy

func (r *Cluster) DeepCopy() *Cluster

type ClusterRes

type ClusterRes struct {
	ClusterMasterContainerRes map[string]string `json:"res"`
}

func NewDefaultClusterRes

func NewDefaultClusterRes() *ClusterRes

func (*ClusterRes) DeepCopy

func (r *ClusterRes) DeepCopy() *ClusterRes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL