container

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStore

type ContainerStore struct {
	disk.Vmdk
	// contains filtered or unexported fields
}

ContainerStore stores container storage information

func NewContainerStore

func NewContainerStore(op trace.Operation, s *session.Session, imageResolver storage.Resolver) (*ContainerStore, error)

NewContainerStore creates and returns a new container store

func (*ContainerStore) Export

func (c *ContainerStore) Export(op trace.Operation, id, ancestor string, spec *archive.FilterSpec, data bool) (io.ReadCloser, error)

func (*ContainerStore) Import

func (c *ContainerStore) Import(op trace.Operation, id string, spec *archive.FilterSpec, tarstream io.ReadCloser) error

func (*ContainerStore) NewDataSink

func (c *ContainerStore) NewDataSink(op trace.Operation, id string) (storage.DataSink, error)

NewDataSink creates and returns an DataSink associated with container storage

func (*ContainerStore) NewDataSource

func (c *ContainerStore) NewDataSource(op trace.Operation, id string) (storage.DataSource, error)

NewDataSource creates and returns an DataSource associated with container storage

func (*ContainerStore) Owners

func (c *ContainerStore) Owners(op trace.Operation, url *url.URL, filter func(vm *mo.VirtualMachine) bool) ([]*vm.VirtualMachine, error)

Owners returns a list of VMs that are using the resource specified by `url`

func (*ContainerStore) URL

func (c *ContainerStore) URL(op trace.Operation, id string) (*url.URL, error)

URL converts the id of a resource to a URL

type ContainerStorer

type ContainerStorer interface {
	storage.Resolver
	storage.Importer
	storage.Exporter
}

ContainerStorer defines the interface contract expected to allow import and export against containers

Jump to

Keyboard shortcuts

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