Documentation ¶
Index ¶
- Variables
- func AccountWithAccessToken() (string, error)
- func Builder() *cobra.Command
- func LoginBuilder() *cobra.Command
- func LogoutBuilder() *cobra.Command
- func RegisterBuilder() *cobra.Command
- func WhoAmIBuilder() *cobra.Command
- type ConfigDeleter
- type LoginConfig
- type LoginOpts
- type RegisterOpts
- type Revoker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProjectIDNotFound = errors.New("project is inaccessible. You either don't have access to this project or the project doesn't exist") ErrOrgIDNotFound = errors.New("organization is inaccessible. You don't have access to this organization or the organization doesn't exist") )
View Source
var ErrUnauthenticated = errors.New("not logged in")
Functions ¶
func AccountWithAccessToken ¶
func LoginBuilder ¶
func LogoutBuilder ¶
func RegisterBuilder ¶
func WhoAmIBuilder ¶
Types ¶
type ConfigDeleter ¶
type ConfigDeleter interface {
Delete() error
}
type LoginConfig ¶
type LoginOpts ¶
type LoginOpts struct { cli.DefaultSetterOpts cli.RefresherOpts AccessToken string RefreshToken string IsGov bool NoBrowser bool SkipConfig bool // contains filtered or unexported fields }
func (*LoginOpts) LoginPreRun ¶
func (*LoginOpts) SyncWithOAuthAccessProfile ¶
func (opts *LoginOpts) SyncWithOAuthAccessProfile(c LoginConfig) func() error
SyncWithOAuthAccessProfile returns a function that is synchronizing the oauth settings from a login config profile with the provided command opts.
type RegisterOpts ¶
type RegisterOpts struct {
LoginOpts
}
func (*RegisterOpts) RegisterRun ¶
func (opts *RegisterOpts) RegisterRun(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.