Documentation ¶
Index ¶
- func DeleteManifestDevice(ctx context.Context, etcdClient *etcd.Client, descriptor string) error
- func DeleteMultipleManifestDevices(ctx context.Context, etcdClient *etcd.Client, descprefix string) (int64, error)
- func GetDescriptorShortForm(descriptor string) string
- func GetLockTable(ctx context.Context, etcdClient *etcd.Client, prefix string) (map[string][]string, error)
- func ObtainDeviceLock(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice, myid string, ...) (bool, error)
- func SetEtcdKeyPrefix(prefix string)
- func UpsertManifestDevice(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice) error
- func UpsertManifestDeviceAtomically(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice) (bool, error)
- type ManifestDevice
- type ManifestDeviceStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteManifestDevice ¶
func GetDescriptorShortForm ¶
func GetLockTable ¶
func ObtainDeviceLock ¶
func SetEtcdKeyPrefix ¶
func SetEtcdKeyPrefix(prefix string)
func UpsertManifestDevice ¶
Types ¶
type ManifestDevice ¶
type ManifestDevice struct { Descriptor string `codec:"-" yaml:"-"` Metadata map[string]string `codec:"metadata,omitempty" yaml:"metadata"` Streams map[string]*ManifestDeviceStream `codec:"streams" yaml:"streams"` // contains filtered or unexported fields }
func RetrieveManifestDevice ¶
func (*ManifestDevice) GetRetrievedRevision ¶
func (md *ManifestDevice) GetRetrievedRevision() int64
func (*ManifestDevice) SetRetrievedRevision ¶
func (md *ManifestDevice) SetRetrievedRevision(rev int64)
type ManifestDeviceStream ¶
Click to show internal directories.
Click to hide internal directories.