Documentation ¶
Overview ¶
Package login is for the get command
Index ¶
- func CheckAndInstallGateway(t *terminal.Terminal, store LoginStore) error
- func CreateDownloadPathAndInstallScript(localOS string, homeDirectory string) (jetBrainsDirectory string, installScript string, err error)
- func CreateNewUser(loginStore LoginStore, idToken string) (bool, 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
- func OnboardUserWithEditors(t *terminal.Terminal, loginStore LoginStore, ide string) (string, error)
- func OnboardUserWithSSHKeys(t *terminal.Terminal, user *entity.User, _ LoginStore, firstLoop bool) error
- func RunTasksForUser(t *terminal.Terminal) error
- 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 CheckAndInstallGateway(t *terminal.Terminal, store LoginStore) error
func CreateDownloadPathAndInstallScript ¶ added in v0.4.0
func CreateNewUser ¶ added in v0.4.0
func CreateNewUser(loginStore LoginStore, idToken string) (bool, error)
returns if the user is indeed new
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
func OnboardUserWithEditors ¶ added in v0.6.43
func OnboardUserWithSSHKeys ¶ added in v0.6.43
func RunTasksForUser ¶ added in v0.6.50
Types ¶
type Auth ¶ added in v0.4.0
type Auth interface {
Login() (*auth.LoginTokens, error)
}
type LoginOptions ¶
type LoginOptions struct { Auth Auth LoginStore LoginStore }
func (LoginOptions) HandleLoginAdmin ¶ added in v0.6.58
func (o LoginOptions) HandleLoginAdmin() error
type LoginStore ¶ added in v0.3.0
type LoginStore interface { vpn.ServiceMeshStore GetCurrentUser() (*entity.User, error) CreateUser(idToken string) (*entity.User, error) GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error) GetActiveOrganizationOrNil() (*entity.Organization, error) CreateOrganization(req store.CreateOrganizationRequest) (*entity.Organization, error) GetServerSockFile() string GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error) UpdateUser(userID string, updatedUser *entity.UpdateUser) (*entity.User, error) }
Click to show internal directories.
Click to hide internal directories.