containers

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID          string
	Labels      map[string]string
	Image       string
	Runtime     RuntimeInfo
	Spec        *types.Any
	RootFS      string
	Snapshotter string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

Container represents the set of data pinned by a container. Unless otherwise noted, the resources here are considered in use by the container.

The resources specified in this object are used to create tasks from the container.

type RuntimeInfo

type RuntimeInfo struct {
	Name    string
	Options *types.Any
}

type Store

type Store interface {
	Get(ctx context.Context, id string) (Container, error)

	// List returns containers that match one or more of the provided filters.
	List(ctx context.Context, filters ...string) ([]Container, error)

	Create(ctx context.Context, container Container) (Container, error)

	// Update the container with the provided container object. ID must be set.
	//
	// If one or more fieldpaths are provided, only the field corresponding to
	// the fieldpaths will be mutated.
	Update(ctx context.Context, container Container, fieldpaths ...string) (Container, error)

	Delete(ctx context.Context, id string) error
}

Jump to

Keyboard shortcuts

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