etcd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommonPrefix = "/apis/v1"
)

Variables

This section is empty.

Functions

func CloseEtcdClient

func CloseEtcdClient() error

func Del

func Del(resource EtcdResource, key string) error

func Get

func Get(resource EtcdResource, key string) (bytes []byte, err error)

func InitEtcdClient

func InitEtcdClient(cfg *config.Config) error

func Put

func Put(resource EtcdResource, key string, value *string) error

Types

type DelKey

type DelKey struct {
	Resource EtcdResource
	Key      string
}

type EtcdResource

type EtcdResource string
const (
	Containers EtcdResource = "containers"
	Volumes    EtcdResource = "volumes"
	Versions   EtcdResource = "versions"
	Gpus       EtcdResource = "gpus"
	Ports      EtcdResource = "ports"
)

type PutKeyValue

type PutKeyValue struct {
	Key      string
	Value    *string
	Resource EtcdResource
}

Jump to

Keyboard shortcuts

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