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
WithResourceTypes embeds the given resource types into the given 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"`
}
Input is the struct which has the JSON encoding which gets passed on stdin to a Resource.
type Output ¶
type Output struct {
Version map[string]string `json:"version,omitempty"`
Metadata []struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
} `json:"metadata,omitempty"`
}
Output is the struct which has the JSON encoding which a Resource outputs on stdout.
type Resource ¶
type Resource struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Source map[string]string `json:"source,omitempty"`
}
Resource is the struct which has the YAML encoding of a resource as it would appear in the `resource` array of a Concourse pipeline configuration file.
type ResourceType ¶
type ResourceType struct {
Name string `json:"name,omitempty"`
Privileged bool `json:"privileged,omitempty"`
Source *struct {
Repository string `json:"repository,omitempty"`
Tag string `json:"tag,omitempty"`
} `json:"source,omitempty"`
}
ResourceType is the struct which has the YAML encoding of a resource type as it would appear in the `resource_types` array of a Concourse pipeline configuration file.
func ResourceTypesFrom ¶
func ResourceTypesFrom(ctx context.Context) (resourceTypes []ResourceType, ok bool)
ResourceTypesFrom returns whatever resource types have been embedded in given context.
Click to show internal directories.
Click to hide internal directories.