Documentation ¶
Index ¶
- Variables
- func CommandTargetClient(selectedTarget TargetName, commandInsecure *bool) (concourse.Client, error)
- func LoadTargets() (*targetDetailsYAML, error)
- func NewUnauthenticatedClient(atcURL string, insecure bool) concourse.Client
- func SaveTarget(targetName TargetName, api string, insecure bool, token *TargetToken) error
- func TargetClient(selectedTarget TargetName) (concourse.Client, error)
- func ValidateClient(client concourse.Client, targetName TargetName, allowVersionMismatch bool) error
- type ErrVersionMismatch
- type TargetName
- type TargetProps
- type TargetToken
- type UnknownTargetError
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 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 UnknownTargetError ¶
type UnknownTargetError struct {
TargetName TargetName
}
func (UnknownTargetError) Error ¶
func (err UnknownTargetError) Error() string
Click to show internal directories.
Click to hide internal directories.