concourse

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet   = "get"
	MethodPut   = "put"
	MethodCheck = "check"
)

Variables

This section is empty.

Functions

func WithResourceTypes

func WithResourceTypes(ctx context.Context, resourceTypes ...*ResourceType) context.Context

func WithResources

func WithResources(ctx context.Context, resources ...*Resource) context.Context

Types

type Input

type Input struct {
	Params  map[string]string `json:"params,omitempty"`
	Source  map[string]string `json:"source,omitempty"`
	Version map[string]string `json:"version,omitempty"`
}

type Output

type Output struct {
	Version  map[string]string `json:"version,omitempty"`
	Metadata []*OutputMetadata `json:"metadata,omitempty"`
}

type OutputMetadata

type OutputMetadata struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

type Resource

type Resource struct {
	Name   string            `json:"name,omitempty"`
	Type   string            `json:"type,omitempty"`
	Source map[string]string `json:"source,omitempty"`
}

func ResourcesFrom

func ResourcesFrom(ctx context.Context) (resources []*Resource, ok bool)

type ResourceType

type ResourceType struct {
	Name       string  `json:"name,omitempty"`
	Source     *Source `json:"source,omitempty"`
	Privileged bool    `json:"privileged,omitempty"`
}

func ResourceTypesFrom

func ResourceTypesFrom(ctx context.Context) (resourceTypes []*ResourceType, ok bool)

type Source

type Source struct {
	Repository string `json:"repository,omitempty"`
	Tag        string `pjson:"tag,omitempty"`
}

Jump to

Keyboard shortcuts

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