Documentation ¶
Overview ¶
Package image contains logic for image selection logic.
Worker supports two ways of selecting the image to use for a compute instance: An APISelector that talks to job-board (https://github.com/travis-ci/job-board) and an ENVSelector that gets the data from environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISelector ¶
type APISelector struct {
// contains filtered or unexported fields
}
func NewAPISelector ¶
func NewAPISelector(u *url.URL) *APISelector
type EnvSelector ¶
type EnvSelector struct {
// contains filtered or unexported fields
}
EnvSelector implements Selector for environment-based mappings
func NewEnvSelector ¶
func NewEnvSelector(c *config.ProviderConfig) (*EnvSelector, error)
NewEnvSelector builds a new EnvSelector from the given *config.ProviderConfig
Click to show internal directories.
Click to hide internal directories.