forgeconcourse

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 GetEntrypoint(method string) []string

func NewStreams

func NewStreams(drains *forge.Drains, input *concourse.Input) *forge.Streams

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL