containerized

package
v0.0.0-...-814ced4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

ErrNoPreviousRevision returned if the container has to previous revision

Functions

func AtomicImageUpdate

func AtomicImageUpdate(ctx context.Context, container containerd.Container, image containerd.Image, healthcheckFn func() error) error

AtomicImageUpdate will perform an update of the given container with the new image and verify success via the provided healthcheckFn. If the healthcheck fails, the container will be reverted to the prior image

func WithAllCapabilities

func WithAllCapabilities(_ context.Context, _ oci.Client, c *containers.Container, s *specs.Spec) error

WithAllCapabilities enables all capabilities required to run privileged containers

func WithNewSnapshot

func WithNewSnapshot(i containerd.Image) containerd.NewContainerOpts

WithNewSnapshot creates a new snapshot managed by containerized

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

This section is empty.

Jump to

Keyboard shortcuts

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