apis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAdvertiseClientURLs

func DefaultAdvertiseClientURLs(cfg *EtcdAdmConfig) error

func DefaultClientURLs

func DefaultClientURLs(cfg *EtcdAdmConfig) error

func DefaultInitialAdvertisePeerURLs added in v0.0.3

func DefaultInitialAdvertisePeerURLs(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 SetDefaults

func SetDefaults(cfg *EtcdAdmConfig)

SetDefaults sets configuration values defined at build time

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
	CertificatesDir string

	DownloadConnectTimeout time.Duration

	PeerCertFile      string
	PeerKeyFile       string
	PeerTrustedCAFile string

	CertFile      string
	KeyFile       string
	TrustedCAFile string

	EtcdctlCertFile string
	EtcdctlKeyFile  string

	DataDir    string
	InstallDir string
	CacheDir   string

	UnitFile            string
	EnvironmentFile     string
	EtcdExecutable      string
	EtcdctlExecutable   string
	EtcdctlEnvFile      string
	EtcdctlShellWrapper string

	InitialAdvertisePeerURLs 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
	InitialClusterToken string
	InitialClusterState string

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

	Snapshot      string
	SkipHashCheck bool
}

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

func (URLList) StringSlice

func (l URLList) StringSlice() []string

Jump to

Keyboard shortcuts

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