Documentation ¶
Index ¶
- Variables
- func NewWorker(gardenAddr string, baggageclaimAddr string) *worker
- type BaseResourceType
- type CheckRequest
- type CheckResponse
- type ContainerProcess
- type ErrScriptFailed
- type InRequest
- type InResponse
- type NamedArtifacts
- type OutRequest
- type OutResponse
- type Resource
- type ResourceCheck
- type ResourceGet
- type ResourcePut
- type RootFSable
- type Task
- type TaskResponse
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("script aborted")
Functions ¶
Types ¶
type BaseResourceType ¶
func (BaseResourceType) RootFSPathFor ¶
type CheckRequest ¶
type CheckResponse ¶
type ContainerProcess ¶
type ErrScriptFailed ¶
type ErrScriptFailed struct { Path string Args []string ExitStatus int Stderr string Stdout string }
func (ErrScriptFailed) Error ¶
func (err ErrScriptFailed) Error() string
type InResponse ¶
type InResponse struct { Version atc.Version `json:"version"` Metadata []atc.MetadataField `json:"metadata,omitempty"` }
type NamedArtifacts ¶
type NamedArtifacts map[string]baggageclaim.Volume
type OutRequest ¶
type OutResponse ¶
type OutResponse struct { Version atc.Version `json:"version"` Metadata []atc.MetadataField `json:"metadata,omitempty"` }
type Resource ¶
type Resource struct { ResourceType RootFSable Source atc.Source }
func NewBaseResource ¶
func NewBaseResource(resourceType BaseResourceType, source atc.Source) Resource
type ResourceCheck ¶
func (ResourceCheck) Check ¶
func (r ResourceCheck) Check(logger lager.Logger, worker Worker) (CheckResponse, error)
type ResourceGet ¶
func (ResourceGet) Get ¶
func (r ResourceGet) Get(logger lager.Logger, worker Worker) (baggageclaim.Volume, error)
func (ResourceGet) RootFSPathFor ¶
type ResourcePut ¶
func (ResourcePut) Put ¶
func (r ResourcePut) Put(logger lager.Logger, worker Worker, artifacts NamedArtifacts) (OutResponse, error)
type RootFSable ¶
type Task ¶
type Task struct { RootFSGenerator RootFSable Path string Args []string Env []string Dir string User string Privileged bool }
func (*Task) Run ¶
func (t *Task) Run(logger lager.Logger, worker Worker, inputs NamedArtifacts, outputs NamedArtifacts) error
type TaskResponse ¶
type TaskResponse struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.