Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(dwPayload *dockerworker.DockerWorkerPayload) (gwPayload *genericworker.GenericWorkerPayload, err error)
Convert transforms a Docker Worker task payload into an equivalent Generic Worker Multiuser POSIX task payload. The resulting Generic Worker payload is a BASH script which uses Podman to contain the Docker Worker payload. Since scopes fall outside of the payload in a task definition, scopes need to be converted separately (see d2g.Scopes function).
Types ¶
type DockerImageArtifact ¶
type DockerImageArtifact dockerworker.DockerImageArtifact
func (*DockerImageArtifact) FileMounts ¶
func (dia *DockerImageArtifact) FileMounts() ([]genericworker.FileMount, error)
func (*DockerImageArtifact) PrepareCommands ¶
func (dia *DockerImageArtifact) PrepareCommands() []string
func (*DockerImageArtifact) String ¶
func (dia *DockerImageArtifact) String() (string, error)
type DockerImageName ¶
type DockerImageName string
func (*DockerImageName) FileMounts ¶
func (din *DockerImageName) FileMounts() ([]genericworker.FileMount, error)
func (*DockerImageName) PrepareCommands ¶
func (din *DockerImageName) PrepareCommands() []string
func (*DockerImageName) String ¶
func (din *DockerImageName) String() (string, error)
type IndexedDockerImage ¶
type IndexedDockerImage dockerworker.IndexedDockerImage
func (*IndexedDockerImage) FileMounts ¶
func (idi *IndexedDockerImage) FileMounts() ([]genericworker.FileMount, error)
func (*IndexedDockerImage) PrepareCommands ¶
func (idi *IndexedDockerImage) PrepareCommands() []string
func (*IndexedDockerImage) String ¶
func (idi *IndexedDockerImage) String() (string, error)
type NamedDockerImage ¶
type NamedDockerImage dockerworker.NamedDockerImage
func (*NamedDockerImage) FileMounts ¶
func (ndi *NamedDockerImage) FileMounts() ([]genericworker.FileMount, error)
func (*NamedDockerImage) PrepareCommands ¶
func (ndi *NamedDockerImage) PrepareCommands() []string
func (*NamedDockerImage) String ¶
func (ndi *NamedDockerImage) String() (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.