image

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT Imports: 11 Imported by: 3

Documentation

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

func (*APISelector) Select

func (as *APISelector) Select(params *Params) (string, error)

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

func (*EnvSelector) Select

func (es *EnvSelector) Select(params *Params) (string, error)

type Params

type Params struct {
	Infra    string
	Language string
	OsxImage string
	Dist     string
	Group    string
	OS       string

	JobID uint64
	Repo  string
}

type Selector

type Selector interface {
	Select(*Params) (string, error)
}

Selector is the interface for selecting an image!

Jump to

Keyboard shortcuts

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