rc

package
v0.0.0-...-5ba0dd3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTargetSpecified = errors.New("no target specified")

Functions

func CommandTargetClient

func CommandTargetClient(selectedTarget TargetName, commandInsecure *bool) (concourse.Client, error)

func LoadTargets

func LoadTargets() (*targetDetailsYAML, error)

func NewUnauthenticatedClient

func NewUnauthenticatedClient(atcURL string, insecure bool) concourse.Client

func SaveTarget

func SaveTarget(targetName TargetName, api string, insecure bool, token *TargetToken) error

func TargetClient

func TargetClient(selectedTarget TargetName) (concourse.Client, error)

func ValidateClient

func ValidateClient(client concourse.Client, targetName TargetName, allowVersionMismatch bool) error

Types

type ErrVersionMismatch

type ErrVersionMismatch struct {
	// contains filtered or unexported fields
}

func NewErrVersionMismatch

func NewErrVersionMismatch(flyVersion string, atcVersion string, targetName TargetName) ErrVersionMismatch

func (ErrVersionMismatch) Error

func (e ErrVersionMismatch) Error() string

type TargetName

type TargetName string

func (*TargetName) UnmarshalFlag

func (name *TargetName) UnmarshalFlag(value string) error

type TargetProps

type TargetProps struct {
	API      string       `yaml:"api"`
	Insecure bool         `yaml:"insecure,omitempty"`
	Token    *TargetToken `yaml:"token,omitempty"`
}

func NewTarget

func NewTarget(api string, insecure bool, token *TargetToken) TargetProps

func SelectTarget

func SelectTarget(selectedTarget TargetName) (TargetProps, error)

type TargetToken

type TargetToken struct {
	Type  string `yaml:"type"`
	Value string `yaml:"value"`
}

type UnknownTargetError

type UnknownTargetError struct {
	TargetName TargetName
}

func (UnknownTargetError) Error

func (err UnknownTargetError) Error() string

Jump to

Keyboard shortcuts

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