Documentation
¶
Overview ¶
Package etcd allows to create and manage etcd clusters.
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,omitempty"`
SSH *ssh.Config `json:"ssh,omitempty"`
CACertificate types.Certificate `json:"caCertificate,omitempty"`
Members map[string]Member `json:"members,omitempty"`
// Serializable fields.
State container.ContainersState `json:"state,omitempty"`
}
Cluster represents etcd cluster configuration and state from the user.
type Member ¶
type Member struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
Host host.Host `json:"host,omitempty"`
CACertificate types.Certificate `json:"caCertificate,omitempty"`
PeerCertificate types.Certificate `json:"peerCertificate,omitempty"`
PeerKey types.PrivateKey `json:"peerKey,omitempty"`
PeerAddress string `json:"peerAddress,omitempty"`
InitialCluster string `json:"initialCluster,omitempty"`
PeerCertAllowedCN string `json:"peerCertAllowedCN,omitempty"`
ServerCertificate types.Certificate `json:"serverCertificate,omitempty"`
ServerKey types.PrivateKey `json:"serverKey,omitempty"`
ServerAddress string `json:"serverAddress,omitempty"`
NewCluster bool `json:"newCluster,omitempty"`
}
Member represents single etcd member
Click to show internal directories.
Click to hide internal directories.