Documentation ¶
Index ¶
- Variables
- func CloudAPIURL(endpoint string) string
- func CloudAccountLinkingURL() string
- func CloudAuthConfigFile() string
- func CloudConfigDir() string
- func CloudDashURL(endpoint string) string
- func CloudWebURL(endpoint string) string
- func Deploy(pkg string, domain string)
- func WriteAuthConfig(conf *AuthConfig) error
- type AuthConfig
- type AuthSession
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoCurrentSession = errors.New("no current session")
Functions ¶
func CloudAPIURL ¶
CloudAPIURL returns the URL to the cloud API.
func CloudAccountLinkingURL ¶
func CloudAccountLinkingURL() string
CloudDashURL returns the URL to the cloud web dashboard.
func CloudAuthConfigFile ¶
func CloudAuthConfigFile() string
CloudAuthConfigDir returns the path to the cloud auth config directory.
func CloudConfigDir ¶
func CloudConfigDir() string
CloudConfigDir returns the path to the cloud config directory.
func CloudDashURL ¶
CloudDashURL returns the URL to the cloud web dashboard.
func CloudWebURL ¶
CloudWebURL returns the URL to the cloud website.
func WriteAuthConfig ¶
func WriteAuthConfig(conf *AuthConfig) error
WriteAuthConfig writes the auth config file.
Types ¶
type AuthConfig ¶
type AuthConfig struct { Current string `yaml:"current"` Sessions []AuthSession `yaml:"sessions"` }
func ReactAuthConfig ¶
func ReactAuthConfig() (*AuthConfig, error)
ReactAuthConfig parses the auth config file.
type AuthSession ¶
func GetCurrent ¶
func GetCurrent() (*AuthSession, error)
Click to show internal directories.
Click to hide internal directories.