container

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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