Documentation ¶
Overview ¶
Package runtime contains runtime implementations that can execute workflow actions. They are responsible for extracting workflow failure reason and messages from the the action file system at the following locations:
/tinkerbell/failure-reason /tinkerbell/failure-message
Index ¶
Constants ¶
View Source
const ( // ReasonMountPath is the path used by Actions to write their failure reasons. ReasonMountPath = "/tinkerbell/failure-reason" // MessageMountPath is the path used by Actions to write their failure message. MessageMountPath = "/tinkerbell/failure-message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
Docker is a docker runtime that satisfies agent.ContainerRuntime.
func NewDocker ¶
func NewDocker(opts ...DockerOption) (*Docker, error)
NewDocker creates a new Docker instance.
type DockerOption ¶
type DockerOption func(*Docker)
DockerOption defines optional configuration for a Docker instance.
func WithClient ¶
func WithClient(clnt *client.Client) DockerOption
WithClient returns an option to configure a Docker client on a Docker instance.
func WithLogger ¶
func WithLogger(log logr.Logger) DockerOption
WithLogger returns an option to configure the logger on a Docker instance.
Click to show internal directories.
Click to hide internal directories.