Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoOwner = errs.New("Could not find organization")
Functions ¶
func Get ¶
func Get(desiredOrg string, auth *authentication.Auth, cfg configurer) (string, error)
Get returns the name of an organization/owner in order of precedence: - Returns the normalized form of the given org name. - Returns the name of the most recently used org. - Returns the name of the first org you are a member of.
Types ¶
type ErrOwnerNotFound ¶
type ErrOwnerNotFound struct {
DesiredOwner string
}
func (ErrOwnerNotFound) Error ¶
func (e ErrOwnerNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.