forgeconcourse

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 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

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

Jump to

Keyboard shortcuts

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