apis

package
v1.10.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAdvertiseClientURLs

func DefaultAdvertiseClientURLs(cfg *EtcdAdmConfig) error

func DefaultAdvertisePeerURLs

func DefaultAdvertisePeerURLs(cfg *EtcdAdmConfig) error

func DefaultClientURLs

func DefaultClientURLs(cfg *EtcdAdmConfig) error

func DefaultListenClientURLs

func DefaultListenClientURLs(cfg *EtcdAdmConfig) error

func DefaultListenPeerURLs

func DefaultListenPeerURLs(cfg *EtcdAdmConfig) error

func DefaultLoopbackClientURL

func DefaultLoopbackClientURL(cfg *EtcdAdmConfig)

func DefaultPeerCertSANs

func DefaultPeerCertSANs(cfg *EtcdAdmConfig)

func DefaultPeerURLs

func DefaultPeerURLs(cfg *EtcdAdmConfig) error

func DefaultServerCertSANs

func DefaultServerCertSANs(cfg *EtcdAdmConfig)

func InitialClusterInit

func InitialClusterInit(cfg *EtcdAdmConfig) string

func SetDownloadDynamicDefaults

func SetDownloadDynamicDefaults(cfg *EtcdAdmConfig) error

SetDownloadDynamicDefaults checks and sets configuration values used by the download verb

func SetInfoDynamicDefaults

func SetInfoDynamicDefaults(cfg *EtcdAdmConfig) error

SetInfoDynamicDefaults checks and sets configuration values used by the info verb

func SetInitDynamicDefaults

func SetInitDynamicDefaults(cfg *EtcdAdmConfig) error

SetInitDynamicDefaults checks and sets configuration values used by the init verb

func SetJoinDynamicDefaults

func SetJoinDynamicDefaults(cfg *EtcdAdmConfig) error

SetJoinDynamicDefaults checks and sets configuration values used by the join verb

func SetResetDynamicDefaults

func SetResetDynamicDefaults(cfg *EtcdAdmConfig) error

SetResetDynamicDefaults checks and sets configuration values used by the reset verb

Types

type EndpointStatus

type EndpointStatus struct {
	EtcdMember
}

type EtcdAdmConfig

type EtcdAdmConfig struct {
	Version         string
	ReleaseURL      string
	InstallBaseDir  string
	CertificatesDir string

	DataDir    string
	InstallDir string
	CacheDir   string

	UnitFile        string
	EnvironmentFile string
	EtcdExecutable  string

	EtcdctlEnvFile string

	AdvertisePeerURLs   URLList
	ListenPeerURLs      URLList
	AdvertiseClientURLs URLList
	ListenClientURLs    URLList

	LoopbackClientURL url.URL

	// ServerCertSANs sets extra Subject Alternative Names for the etcd server signing cert.
	ServerCertSANs []string
	// PeerCertSANs sets extra Subject Alternative Names for the etcd peer signing cert.
	PeerCertSANs []string

	Name                           string
	InitialCluster                 string
	InitialClusterTokenDeclaration string
	InitialClusterState            string

	// GOMAXPROCS sets the max num of etcd processes will use
	GOMAXPROCS int
}

EtcdAdmConfig holds etcdadm configuration

type EtcdMember

type EtcdMember struct {
	// ID is the member ID for this member.
	ID uint64 `json:"ID,omitempty"`
	// name is the human-readable name of the member. If the member is not started, the name will be an empty string.
	Name string `json:"name,omitempty"`
	// peerURLs is the list of URLs the member exposes to the cluster for communication.
	PeerURLs []string `json:"peerURLs,omitempty"`
	// clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
	ClientURLs []string `json:"clientURLs,omitempty"`
}

type URLList

type URLList []url.URL

func (URLList) String

func (l URLList) String() string

Jump to

Keyboard shortcuts

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