Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { ID int `json:"id"` Team string `json:"team_name"` Name string `json:"name"` Status string `json:"status"` Job string `json:"job_name"` APIURL string `json:"api_url"` Pipeline string `json:"pipeline_name"` InstanceVars map[string]any `json:"pipeline_instance_vars,omitempty"` StartTime int `json:"start_time"` EndTime int `json:"end_time"` }
A Build is a build's data from the undocumented Concourse API.
type BuildMetadata ¶
type BuildMetadata struct { Host string ID string TeamName string PipelineName string InstanceVars string JobName string BuildName string URL string }
BuildMetadata is the current build's metadata exposed via the environment. https://concourse-ci.org/implementing-resources.html#resource-metadata
func NewBuildMetadata ¶
func NewBuildMetadata(atcurl string) BuildMetadata
NewBuildMetadata returns a populated BuildMetadata. The default external URL can be overridden by the URL.
type CheckResponse ¶
type CheckResponse []Version
CheckResponse is the output for the check operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client is a Concourse API connection.
type InResponse ¶
InResponse is the output for the in operation.
type Info ¶
type Info struct { ATCVersion string `json:"version"` WorkerVersion string `json:"worker_version"` }
Info is version information from the Concourse API.
type Metadata ¶
Metadata are a key-value pair that must be included for in the in and out operation responses.
type OutParams ¶
type OutParams struct { AlertType string `json:"alert_type"` Channel string `json:"channel"` ChannelFile string `json:"channel_file"` Color string `json:"color"` Message string `json:"message"` MessageFile string `json:"message_file"` Text string `json:"text"` TextFile string `json:"text_file"` Disable bool `json:"disable"` }
OutParams are the parameters that can be configured for the out operation.
type OutRequest ¶
OutRequest is in the input for the out operation.
type OutResponse ¶
OutResponse is the output for the out operation.
type Source ¶
type Source struct { URL string `json:"url"` Username string `json:"username"` Password string `json:"password"` ConcourseURL string `json:"concourse_url"` Channel string `json:"channel"` Disable bool `json:"disable"` }
A Source is the resource's source configuration.