Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
// User-configurable fields.
Image string `json:"image" yaml:"image"`
SSH *ssh.Config `json:"ssh" yaml:"ssh"`
CACertificate types.Certificate `json:"caCertificate" yaml:"caCertificate"`
Members map[string]Member `json:"members" yaml:"members"`
// Serializable fields.
State container.ContainersState `json:"state" yaml:"state"`
}
Cluster represents etcd cluster configuration and state from the user.
type Member ¶
type Member struct {
Name string `json:"name" yaml:"name"`
Image string `json:"image" yaml:"image"`
Host host.Host `json:"host" yaml:"host"`
CACertificate types.Certificate `json:"caCertificate" yaml:"caCertificate"`
PeerCertificate types.Certificate `json:"peerCertificate" yaml:"peerCertificate"`
PeerKey types.PrivateKey `json:"peerKey" yaml:"peerKey"`
PeerAddress string `json:"peerAddress" yaml:"peerAddress"`
InitialCluster string `json:"initialCluster" yaml:"initialCluster"`
PeerCertAllowedCN string `json:"peerCertAllowedCN" yaml:"peerCertAllowedCN"`
ServerCertificate types.Certificate `json:"serverCertificate" yaml:"serverCertificate"`
ServerKey types.PrivateKey `json:"serverKey" yaml:"serverKey"`
ServerAddress string `json:"serverAddress" yaml:"serverAddress"`
}
Member represents single etcd member
Click to show internal directories.
Click to hide internal directories.