Documentation ¶
Index ¶
- Constants
- Variables
- func WithNewSnapshot(i containerd.Image) containerd.NewContainerOpts
- func WithRevisionCleanup(ctx context.Context, client *containerd.Client, c containers.Container) error
- func WithRollback(ctx context.Context, client *containerd.Client, c *containers.Container) error
- func WithUpgrade(i containerd.Image) containerd.UpdateContainerOpts
- type Revision
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 ¶
func WithUpgrade(i containerd.Image) containerd.UpdateContainerOpts
WithUpgrade upgrades an existing container's image to a new one
Types ¶
Click to show internal directories.
Click to hide internal directories.