package etcd
import "k8s.io/kubernetes/pkg/storage/etcd"
Index ¶
- Constants
- func NewEtcdStorage(client etcd.Client, codec runtime.Codec, prefix string) storage.Interface
- type APIObjectVersioner
- func (a APIObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error)
- func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64) error
- func (a APIObjectVersioner) UpdateObject(obj runtime.Object, expiration *time.Time, resourceVersion uint64) error
- type EtcdConfig
- type HighWaterMark
- type TransformFunc
Constants ¶
const ( EtcdCreate = "create" EtcdGet = "get" EtcdSet = "set" EtcdCAS = "compareAndSwap" EtcdDelete = "delete" EtcdExpire = "expire" )
Etcd watch event actions
Functions ¶
func NewEtcdStorage ¶
Creates a new storage interface from the client TODO: deprecate in favor of storage.Config abstraction over time
Types ¶
type APIObjectVersioner ¶
type APIObjectVersioner struct{}
APIObjectVersioner implements versioning and extracting etcd node information for objects that have an embedded ObjectMeta or ListMeta field.
func (APIObjectVersioner) ObjectResourceVersion ¶
func (a APIObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error)
ObjectResourceVersion implements Versioner
func (APIObjectVersioner) UpdateList ¶
func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64) error
UpdateList implements Versioner
func (APIObjectVersioner) UpdateObject ¶
func (a APIObjectVersioner) UpdateObject(obj runtime.Object, expiration *time.Time, resourceVersion uint64) error
UpdateObject implements Versioner
type EtcdConfig ¶
storage.Config object for etcd.
func (*EtcdConfig) GetType ¶
func (c *EtcdConfig) GetType() string
implements storage.Config
func (*EtcdConfig) NewStorage ¶
func (c *EtcdConfig) NewStorage() (storage.Interface, error)
implements storage.Config
type HighWaterMark ¶
type HighWaterMark int64
HighWaterMark is a thread-safe object for tracking the maximum value seen for some quantity.
func (*HighWaterMark) Update ¶
func (hwm *HighWaterMark) Update(current int64) bool
Update returns true if and only if 'current' is the highest value ever seen.
type TransformFunc ¶
TransformFunc attempts to convert an object to another object for use with a watcher.
Source Files ¶
api_object_versioner.go doc.go etcd_helper.go etcd_watcher.go
Directories ¶
Path | Synopsis |
---|---|
pkg/storage/etcd/etcdtest | |
pkg/storage/etcd/metrics | |
pkg/storage/etcd/testing | |
pkg/storage/etcd/util | Package util holds generic etcd-related utility functions that any user of ectd might want to use, without pulling in kubernetes-specific code. |
- Version
- v1.2.0-alpha.6
- Published
- Jan 13, 2016
- Platform
- darwin/amd64
- Imports
- 24 packages
- Last checked
- 1 minute ago –
Tools for package owners.