Documentation
¶
Index ¶
- Constants
- func CloseEtcdClient() error
- func Del(resource EtcdResource, key string) error
- func Get(resource EtcdResource, key string) (bytes []byte, err error)
- func InitEtcdClient(cfg *config.Config) error
- func Put(resource EtcdResource, key string, value *string) error
- type DelKey
- type EtcdResource
- type PutKeyValue
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 InitEtcdClient ¶
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
}
Click to show internal directories.
Click to hide internal directories.