Documentation ¶
Index ¶
- Constants
- func CloseEtcdClient() error
- func Del(resource Resource, key string) error
- func GetValue(resource Resource, key string) ([]byte, error)
- func InitEtcdClient(addr string) error
- func Put(resource Resource, key string, value *string) error
- func ResourcePrefix(prefix Resource, name string) string
- type DelKey
- type PutKeyValue
- type ReplicaSet
- type Resource
- type Value
Constants ¶
View Source
const (
// CommonPrefix is the common prefix for all keys.
CommonPrefix = "/gpu-docker-api/apis/v1"
)
Variables ¶
This section is empty.
Functions ¶
func CloseEtcdClient ¶
func CloseEtcdClient() error
func InitEtcdClient ¶
func ResourcePrefix ¶ added in v0.0.3
Types ¶
type PutKeyValue ¶
type ReplicaSet ¶ added in v0.0.3
type ReplicaSet = []*combine
func GetRevisionRange ¶ added in v0.0.3
func GetRevisionRange(resource Resource, key string) (ReplicaSet, error)
Click to show internal directories.
Click to hide internal directories.