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 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 ( DefaultRootPath = containerfs.WorkingDir + "/resource" DefaultMapping = &Mapping{ RootPath: DefaultRootPath, } )
View Source
var DefaultTag = "latest"
Functions ¶
func GetEntrypoint ¶
func NewStreams ¶
NewStreams creates a Streams with the JSON encoding of input on stdin.
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 Mapping ¶
type Mapping struct {
RootPath string
}
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.