Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterName ¶
type ClusterName string
Cluster name is where the DaemonSet lives on
func (ClusterName) String ¶
func (cn ClusterName) String() string
type DaemonSet ¶
type DaemonSet struct { // UUID for this DaemonSet ID ID // When disabled, this DaemonSet will not make any scheduling changes Disabled bool // The pod manifest that should be scheduled on nodes Manifest manifest.Manifest // Minimum health for nodes when scheduling MinHealth int // DaemonSet's environment name Name ClusterName // Defines the set of nodes on which the manifest can be scheduled NodeSelector labels.Selector // PodID to deploy PodID types.PodID Timeout time.Duration }
DaemonSet holds the runtime state of a Daemon Set as saved in Consul.
func (DaemonSet) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for serializing the DS to JSON format. Lets json interface know how to marshal a DaemonSet Can be called using json.Marshal
func (*DaemonSet) ToRaw ¶
func (ds *DaemonSet) ToRaw() (RawDaemonSet, error)
Converts a pod cluster to a type that will marshal cleanly to JSON.
func (*DaemonSet) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for deserializing the JSON representation of an DS. Lets json interface know how to unmarshal a DaemonSet Can be called using json.Unmarshal
type RawDaemonSet ¶
type RawDaemonSet struct { ID ID `json:"id"` Disabled bool `json:"disabled"` Manifest string `json:"manifest"` MinHealth int `json:"min_health"` Name ClusterName `json:"cluster_name"` NodeSelector string `json:"node_selector"` PodID types.PodID `json:"pod_id"` Timeout time.Duration `json:"timeout"` }
RawDaemonSet defines the JSON format used to store data into Consul
Click to show internal directories.
Click to hide internal directories.