Documentation ¶
Index ¶
- Variables
- func AtomicImageUpdate(ctx context.Context, container containerd.Container, image containerd.Image, ...) error
- func WithAllCapabilities(_ context.Context, _ oci.Client, c *containers.Container, s *specs.Spec) error
- func WithNewSnapshot(i containerd.Image) containerd.NewContainerOpts
- func WithRollback(ctx context.Context, client *containerd.Client, c *containers.Container) error
- func WithUpgrade(i containerd.Image) containerd.UpdateContainerOpts
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 ¶
func WithUpgrade(i containerd.Image) containerd.UpdateContainerOpts
WithUpgrade upgrades an existing container's image to a new one
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.