Documentation ¶
Index ¶
- Variables
- func GenerateResourceHash(source atc.Source, resourceType string) string
- func ResourcesDir(suffix string) string
- type ArtifactDestination
- type ArtifactSource
- type Cache
- type CacheIdentifier
- type ContainerImage
- type EmptyMetadata
- type ErrResourceScriptFailed
- type IOConfig
- type Metadata
- type Resource
- type ResourceCacheIdentifier
- func (identifier ResourceCacheIdentifier) CreateOn(logger lager.Logger, vm baggageclaim.Client) (baggageclaim.Volume, error)
- func (identifier ResourceCacheIdentifier) FindOn(logger lager.Logger, vm baggageclaim.Client) (baggageclaim.Volume, bool, error)
- func (identifier ResourceCacheIdentifier) VolumeIdentifier() db.VolumeIdentifier
- type ResourceType
- type Session
- type Tracker
- type TrackerDB
- type TrackerFactory
- type TrackerMetadata
- type VersionedSource
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("script aborted")
Functions ¶
func GenerateResourceHash ¶
func ResourcesDir ¶
Types ¶
type ArtifactSource ¶
type ArtifactSource interface { StreamTo(ArtifactDestination) error // VolumeOn returns a Volume object that contains the artifact from the // ArtifactSource which is on a particular Worker. If a volume cannot be found // or a volume manager cannot be found on the worker then it will return // false. VolumeOn(worker.Worker) (baggageclaim.Volume, bool, error) }
type CacheIdentifier ¶
type CacheIdentifier interface { FindOn(lager.Logger, baggageclaim.Client) (baggageclaim.Volume, bool, error) CreateOn(lager.Logger, baggageclaim.Client) (baggageclaim.Volume, error) VolumeIdentifier() db.VolumeIdentifier }
type ContainerImage ¶
type ContainerImage string
type EmptyMetadata ¶
type EmptyMetadata struct{}
func (EmptyMetadata) Env ¶
func (m EmptyMetadata) Env() []string
type ErrResourceScriptFailed ¶
func (ErrResourceScriptFailed) Error ¶
func (err ErrResourceScriptFailed) Error() string
type Resource ¶
type Resource interface { Get(IOConfig, atc.Source, atc.Params, atc.Version) VersionedSource Put(IOConfig, atc.Source, atc.Params, ArtifactSource) VersionedSource Check(atc.Source, atc.Version) ([]atc.Version, error) Release(*time.Duration) CacheVolume() (baggageclaim.Volume, bool) }
func NewResource ¶
type ResourceCacheIdentifier ¶
type ResourceCacheIdentifier struct { Type ResourceType Version atc.Version Source atc.Source Params atc.Params }
func (ResourceCacheIdentifier) CreateOn ¶
func (identifier ResourceCacheIdentifier) CreateOn(logger lager.Logger, vm baggageclaim.Client) (baggageclaim.Volume, error)
func (ResourceCacheIdentifier) FindOn ¶
func (identifier ResourceCacheIdentifier) FindOn(logger lager.Logger, vm baggageclaim.Client) (baggageclaim.Volume, bool, error)
func (ResourceCacheIdentifier) VolumeIdentifier ¶
func (identifier ResourceCacheIdentifier) VolumeIdentifier() db.VolumeIdentifier
type ResourceType ¶
type ResourceType string
type Tracker ¶
type Tracker interface { Init(lager.Logger, Metadata, Session, ResourceType, atc.Tags, atc.ResourceTypes, worker.ImageFetchingDelegate) (Resource, error) InitWithCache(lager.Logger, Metadata, Session, ResourceType, atc.Tags, CacheIdentifier, atc.ResourceTypes, worker.ImageFetchingDelegate) (Resource, Cache, error) InitWithSources(lager.Logger, Metadata, Session, ResourceType, atc.Tags, map[string]ArtifactSource, atc.ResourceTypes, worker.ImageFetchingDelegate) (Resource, []string, error) }
type TrackerFactory ¶
type TrackerFactory struct {
DB TrackerDB
}
func (TrackerFactory) TrackerFor ¶
func (factory TrackerFactory) TrackerFor(client worker.Client) Tracker
type TrackerMetadata ¶
func (TrackerMetadata) Env ¶
func (m TrackerMetadata) Env() []string
type VersionedSource ¶
type VolumeMount ¶
type VolumeMount struct { Volume baggageclaim.Volume MountPath string }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.