forgeconcourse

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 10 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"
)
View Source
var File_pkg_forgeconcourse_mapping_proto protoreflect.FileDescriptor

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"`
}

func (*Config) GetResourceTypes

func (c *Config) GetResourceTypes() []*concourse.ResourceType

func (*Config) GetResources

func (c *Config) GetResources() []*concourse.Resource

type Mapping

type Mapping struct {
	RootPath string `protobuf:"bytes,1,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Mapping) Descriptor deprecated

func (*Mapping) Descriptor() ([]byte, []int)

Deprecated: Use Mapping.ProtoReflect.Descriptor instead.

func (*Mapping) GetRootPath

func (x *Mapping) GetRootPath() string

func (*Mapping) ProtoMessage

func (*Mapping) ProtoMessage()

func (*Mapping) ProtoReflect

func (x *Mapping) ProtoReflect() protoreflect.Message

func (*Mapping) Reset

func (x *Mapping) Reset()

func (*Mapping) ResourceToConfig

func (m *Mapping) ResourceToConfig(resource *concourse.Resource, resourceType *concourse.ResourceType, method string) *forge.ContainerConfig

func (*Mapping) String

func (x *Mapping) String() string

Jump to

Keyboard shortcuts

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