Versions in this module Expand all Collapse all v6 v6.4.2 Aug 17, 2020 Changes in this version + var ErrNoTargetFromURL = errors.New("no target matching url") + var ErrNoTargetSpecified = errors.New("no target specified") + func DeleteAllTargets() error + func DeleteTarget(targetName TargetName) error + func LoadTargetFromURL(url, team string, tracing bool) (Target, TargetName, error) + func LogoutTarget(targetName TargetName) error + func NewTarget(name TargetName, teamName string, url string, token *TargetToken, ...) *target + func SaveTarget(targetName TargetName, api string, insecure bool, teamName string, ...) error + func UpdateTargetName(targetName TargetName, newTargetName TargetName) error + func UpdateTargetProps(targetName TargetName, targetProps TargetProps) error + type ErrVersionMismatch struct + func NewErrVersionMismatch(flyVersion string, atcVersion string, targetName TargetName) ErrVersionMismatch + func (e ErrVersionMismatch) Error() string + type RC struct + Targets Targets + type Target interface + CACert func() string + Client func() concourse.Client + FindTeam func(string) (concourse.Team, error) + IsWorkerVersionCompatible func(string) (bool, error) + TLSConfig func() *tls.Config + Team func() concourse.Team + Token func() *TargetToken + TokenAuthorization func() (string, bool) + URL func() string + Validate func() error + ValidateWithWarningOnly func() error + Version func() (string, error) + WorkerVersion func() (string, error) + func LoadTarget(selectedTarget TargetName, tracing bool) (Target, error) + func LoadUnauthenticatedTarget(selectedTarget TargetName, teamName string, insecure bool, caCert string, ...) (Target, error) + func NewAuthenticatedTarget(name TargetName, url string, teamName string, insecure bool, ...) (Target, error) + func NewBasicAuthTarget(name TargetName, url string, teamName string, insecure bool, username string, ...) (Target, error) + func NewUnauthenticatedTarget(name TargetName, url string, teamName string, insecure bool, caCert string, ...) (Target, error) + type TargetName string + func (name *TargetName) Complete(match string) []flags.Completion + func (name *TargetName) UnmarshalFlag(value string) error + type TargetProps struct + API string + CACert string + Insecure bool + TeamName string + Token *TargetToken + type TargetToken struct + Type string + Value string + type Targets map[TargetName]TargetProps + func LoadTargets() (Targets, error) + type UnknownTargetError struct + TargetName TargetName + func (err UnknownTargetError) Error() string