manifest

package
v4.15.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteManifestDevice

func DeleteManifestDevice(ctx context.Context, etcdClient *etcd.Client, descriptor string) error

func DeleteMultipleManifestDevices

func DeleteMultipleManifestDevices(ctx context.Context, etcdClient *etcd.Client, descprefix string) (int64, error)

func GetDescriptorShortForm

func GetDescriptorShortForm(descriptor string) string

func GetLockTable

func GetLockTable(ctx context.Context, etcdClient *etcd.Client, prefix string) (map[string][]string, error)

func ObtainDeviceLock

func ObtainDeviceLock(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice, myid string, prefix string) (bool, error)

func SetEtcdKeyPrefix

func SetEtcdKeyPrefix(prefix string)

func UpsertManifestDevice

func UpsertManifestDevice(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice) error

func UpsertManifestDeviceAtomically

func UpsertManifestDeviceAtomically(ctx context.Context, etcdClient *etcd.Client, md *ManifestDevice) (bool, error)

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 RetrieveManifestDevice(ctx context.Context, etcdClient *etcd.Client, descriptor string) (md *ManifestDevice, err error)

func RetrieveMultipleManifestDevices

func RetrieveMultipleManifestDevices(ctx context.Context, etcdClient *etcd.Client, descprefix string) ([]*ManifestDevice, error)

func (*ManifestDevice) GetRetrievedRevision

func (md *ManifestDevice) GetRetrievedRevision() int64

func (*ManifestDevice) SetRetrievedRevision

func (md *ManifestDevice) SetRetrievedRevision(rev int64)

type ManifestDeviceStream

type ManifestDeviceStream struct {
	CanonicalName string            `codec:"-" yaml:"-"`
	Metadata      map[string]string `codec:"metadata,omitempty" yaml:"metadata"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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