restart

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package restart is the container restart-policy vocabulary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy string

Policy is an Engine / Compose restart policy name.

const (
	No            Policy = "no"
	OnFailure     Policy = "on-failure"
	Always        Policy = "always"
	UnlessStopped Policy = "unless-stopped"
)

func All

func All() []Policy

All returns every known restart policy.

Jump to

Keyboard shortcuts

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