Documentation ¶
Overview ¶
Package login is for the get command
Index ¶
- func CheckAndInstallGateway(t *terminal.Terminal) (err error)
- func CreateDownloadPathAndInstallScript(localOS string) (jetBrainsDirectory string, installScript string, err error)
- func CreateNewUser(loginStore LoginStore, idToken string, t *terminal.Terminal) error
- func InstallGateway(installScript string, t *terminal.Terminal)
- func IsGatewayInstalled(jetBrainsBaseDirectory string) bool
- func IsToolboxInstalled(jetBrainsBaseDirectory string) (toolboxInstalled bool, gatewayInToolboxInstalled bool)
- func NewCmdLogin(t *terminal.Terminal, loginStore LoginStore, auth Auth) *cobra.Command
- type Auth
- type LoginOptions
- type LoginStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndInstallGateway ¶ added in v0.4.0
func CreateDownloadPathAndInstallScript ¶ added in v0.4.0
func CreateNewUser ¶ added in v0.4.0
func CreateNewUser(loginStore LoginStore, idToken string, t *terminal.Terminal) error
func InstallGateway ¶ added in v0.4.0
func IsGatewayInstalled ¶ added in v0.4.0
func IsToolboxInstalled ¶ added in v0.4.0
func NewCmdLogin ¶
loginStore must be a no prompt store
Types ¶
type Auth ¶ added in v0.4.0
type Auth interface {
Login() (*auth.LoginTokens, error)
}
type LoginOptions ¶
type LoginOptions struct {
// contains filtered or unexported fields
}
type LoginStore ¶ added in v0.3.0
type LoginStore interface { GetCurrentUser() (*entity.User, error) CreateUser(idToken string) (*entity.User, error) GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error) CreateOrganization(req store.CreateOrganizationRequest) (*entity.Organization, error) }
Click to show internal directories.
Click to hide internal directories.