flux

package
v0.0.0-...-d615174 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreviousLabel    = "boss.io/revision.previous"
	ImageLabel       = "boss.io/revision.image"
	ContainerIDLabel = "boss.io/revision.container"
)

Variables

View Source
var ErrNoPreviousRevision = errors.New("no previous revision")

Functions

func WithNewSnapshot

func WithNewSnapshot(i containerd.Image) containerd.NewContainerOpts

WithNewSnapshot creates a new snapshot managed by flux

func WithRevisionCleanup

func WithRevisionCleanup(ctx context.Context, client *containerd.Client, c containers.Container) error

WithRevisionCleanup cleans up all revisions for a container

func WithRollback

func WithRollback(ctx context.Context, client *containerd.Client, c *containers.Container) error

WithRollback rolls back to the previous container's revision

func WithUpgrade

WithUpgrade upgrades an existing container's image to a new one

Types

type Revision

type Revision struct {
	Timestamp time.Time
	Key       string
	// contains filtered or unexported fields
}

func (*Revision) Mounts

func (r *Revision) Mounts() []mount.Mount

Jump to

Keyboard shortcuts

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