Documentation
¶
Index ¶
- Variables
- func ConvertPayload(dwPayload *dockerworker.DockerWorkerPayload, config map[string]interface{}) (gwPayload *genericworker.GenericWorkerPayload, err error)
- func ConvertScopes(dwScopes []string, dwPayload *dockerworker.DockerWorkerPayload, ...) (gwScopes []string, err error)
- func ConvertTaskDefinition(dwTaskDef json.RawMessage, config map[string]interface{}, ...) (json.RawMessage, error)
- type DockerImageArtifact
- type DockerImageName
- type Image
- type IndexedDockerImage
- type NamedDockerImage
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxArtifactCopyDuration int64 = 900
Functions ¶
func ConvertPayload ¶
func ConvertPayload(dwPayload *dockerworker.DockerWorkerPayload, config map[string]interface{}) (gwPayload *genericworker.GenericWorkerPayload, err error)
ConvertPayload 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 Docker (by default) 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.ConvertScopes function).
func ConvertScopes ¶
func ConvertScopes(dwScopes []string, dwPayload *dockerworker.DockerWorkerPayload, taskQueueID, containerEngine string, scopeExpander scopes.ScopeExpander) (gwScopes []string, err error)
ConvertScopes takes a slice of Docker Worker task scopes and returns a slice of equivalent Generic Worker scopes. These scopes should be used together with a converted Docker Worker task payload (see d2g.Convert function) to run Docker Worker tasks under Generic Worker.
func ConvertTaskDefinition ¶
func ConvertTaskDefinition(dwTaskDef json.RawMessage, config map[string]interface{}, scopeExpander scopes.ScopeExpander) (json.RawMessage, error)
Types ¶
type DockerImageArtifact ¶
type DockerImageArtifact dockerworker.DockerImageArtifact
func (*DockerImageArtifact) FileMounts ¶
func (dia *DockerImageArtifact) FileMounts(tool string) ([]genericworker.FileMount, error)
func (*DockerImageArtifact) LoadCommands ¶
func (dia *DockerImageArtifact) LoadCommands(tool string) []string
type DockerImageName ¶
type DockerImageName string
func (*DockerImageName) FileMounts ¶
func (din *DockerImageName) FileMounts(tool string) ([]genericworker.FileMount, error)
func (*DockerImageName) LoadCommands ¶
func (din *DockerImageName) LoadCommands(tool string) []string
type IndexedDockerImage ¶
type IndexedDockerImage dockerworker.IndexedDockerImage
func (*IndexedDockerImage) FileMounts ¶
func (idi *IndexedDockerImage) FileMounts(tool string) ([]genericworker.FileMount, error)
func (*IndexedDockerImage) LoadCommands ¶
func (idi *IndexedDockerImage) LoadCommands(tool string) []string
type NamedDockerImage ¶
type NamedDockerImage dockerworker.NamedDockerImage
func (*NamedDockerImage) FileMounts ¶
func (ndi *NamedDockerImage) FileMounts(tool string) ([]genericworker.FileMount, error)
func (*NamedDockerImage) LoadCommands ¶
func (ndi *NamedDockerImage) LoadCommands(tool string) []string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.