Documentation ¶
Index ¶
- Variables
- 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
- type RC
- type Target
- 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
- type TargetProps
- type TargetToken
- type Targets
- type UnknownTargetError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoTargetSpecified = errors.New("no target specified") ErrNoTargetFromURL = errors.New("no target matching url") )
Functions ¶
func DeleteAllTargets ¶
func DeleteAllTargets() error
func DeleteTarget ¶
func DeleteTarget(targetName TargetName) error
func LoadTargetFromURL ¶
func LoadTargetFromURL(url, team string, tracing bool) (Target, TargetName, error)
func LogoutTarget ¶
func LogoutTarget(targetName TargetName) error
func NewTarget ¶
func NewTarget( name TargetName, teamName string, url string, token *TargetToken, caCert string, caCertPool *x509.CertPool, insecure bool, client concourse.Client, ) *target
func SaveTarget ¶
func SaveTarget( targetName TargetName, api string, insecure bool, teamName string, token *TargetToken, caCert string, ) error
func UpdateTargetName ¶
func UpdateTargetName(targetName TargetName, newTargetName TargetName) error
func UpdateTargetProps ¶
func UpdateTargetProps(targetName TargetName, targetProps TargetProps) 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 Target ¶
type Target interface { Client() concourse.Client Team() concourse.Team FindTeam(string) (concourse.Team, error) CACert() string Validate() error ValidateWithWarningOnly() error TLSConfig() *tls.Config URL() string WorkerVersion() (string, error) IsWorkerVersionCompatible(string) (bool, error) Token() *TargetToken TokenAuthorization() (string, bool) Version() (string, error) }
func LoadTarget ¶
func LoadTarget(selectedTarget TargetName, tracing bool) (Target, error)
func NewAuthenticatedTarget ¶
func NewAuthenticatedTarget( name TargetName, url string, teamName string, insecure bool, token *TargetToken, caCert string, tracing bool, ) (Target, error)
func NewBasicAuthTarget ¶
type TargetName ¶
type TargetName string
func (*TargetName) Complete ¶
func (name *TargetName) Complete(match string) []flags.Completion
func (*TargetName) UnmarshalFlag ¶
func (name *TargetName) UnmarshalFlag(value string) error
type TargetProps ¶
type TargetProps struct { API string `json:"api"` TeamName string `json:"team"` Insecure bool `json:"insecure,omitempty"` Token *TargetToken `json:"token,omitempty"` CACert string `json:"ca_cert,omitempty"` }
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.