agent

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointStatus

func EndpointStatus(gcfg GlobalConfig, ep string) (*clientv3.StatusResponse, error)

func Endpoints

func Endpoints(gcfg GlobalConfig) ([]string, error)

func MemberList

func MemberList(gcfg GlobalConfig, eps []string, options ...clientv3.OpOption) (*clientv3.MemberListResponse, error)

func Metrics

func Metrics(gcfg GlobalConfig, ep string) ([]string, error)

func Read

func Read(gcfg GlobalConfig, eps []string, key string, options ...clientv3.OpOption) (*clientv3.GetResponse, error)

Types

type GlobalConfig

type GlobalConfig struct {
	Endpoints           []string `json:"endpoints,omitempty"`
	UseClusterEndpoints bool     `json:"useClusterEndpoints,omitempty"`

	DialTimeout      time.Duration `json:"dial-timeout,omitempty"`
	CommandTimeout   time.Duration `json:"command-timeout,omitempty"`
	KeepAliveTime    time.Duration `json:"keep-alive-time,omitempty"`
	KeepAliveTimeout time.Duration `json:"keep-alive-timeout,omitempty"`

	Insecure           bool `json:"insecure,omitempty"`
	InsecureDiscovery  bool `json:"insecure-discovery,omitempty"`
	InsecureSkipVerify bool `json:"insecure-skip-verify,omitempty"`

	CertFile string `json:"cert-file,omitempty"`
	KeyFile  string `json:"key-file,omitempty"`
	CaFile   string `json:"ca-file,omitempty"`

	DNSDomain  string `json:"dns-domain,omitempty"`
	DNSService string `json:"dns-service,omitempty"`

	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`

	DbQuotaBytes int `json:"db-quota-bytes,omitempty"`

	PrintVersion bool `json:"print-version,omitempty"`
}

Jump to

Keyboard shortcuts

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