Documentation ¶
Index ¶
- Constants
- Variables
- func GetEntrypoint(method string) []string
- func NewStreams(drains *forge.Drains, input *concourse.Input) *forge.Streams
- func PullImageForResourceType(ctx context.Context, containerRuntime forge.ContainerRuntime, ...) (forge.Image, error)
- func ResourceToConfig(resource *concourse.Resource, resourceType *concourse.ResourceType, ...) *forge.ContainerConfig
- func ResourceTypeToImageReference(resourceType *concourse.ResourceType) string
- type Config
- type Mapping
Constants ¶
View Source
const ( MethodGet = concourse.MethodGet MethodPut = concourse.MethodPut MethodCheck = concourse.MethodCheck )
View Source
const ( EntrypointGet = "/opt/resource/in" EntrypointPut = "/opt/resource/out" EntrypointCheck = "/opt/resource/check" )
Variables ¶
View Source
var DefaultMapping = &Mapping{ RootPath: DefaultRootPath, }
View Source
var DefaultRootPath = containerfs.WorkingDir
View Source
var DefaultTag = "latest"
Functions ¶
func GetEntrypoint ¶
func PullImageForResourceType ¶
func PullImageForResourceType(ctx context.Context, containerRuntime forge.ContainerRuntime, resourceType *concourse.ResourceType) (forge.Image, error)
func ResourceToConfig ¶
func ResourceToConfig(resource *concourse.Resource, resourceType *concourse.ResourceType, method string) *forge.ContainerConfig
func ResourceTypeToImageReference ¶
func ResourceTypeToImageReference(resourceType *concourse.ResourceType) string
Types ¶
type Config ¶
type Config struct { ResourceTypes []*concourse.ResourceType `yaml:"resource_types,omitempty"` Resources []*concourse.Resource `yaml:"resources,omitempty"` }
type Mapping ¶
type Mapping struct {
RootPath string `json:"root_path,omitempty"`
}
func (*Mapping) ResourceToConfig ¶
func (m *Mapping) ResourceToConfig(resource *concourse.Resource, resourceType *concourse.ResourceType, method string) *forge.ContainerConfig
Click to show internal directories.
Click to hide internal directories.