cloud

package
v1.11.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCurrentSession = errors.New("no current session")

Functions

func CloudAPIURL

func CloudAPIURL(endpoint string) string

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

func CloudDashURL(endpoint string) string

CloudDashURL returns the URL to the cloud web dashboard.

func CloudWebURL

func CloudWebURL(endpoint string) string

CloudWebURL returns the URL to the cloud website.

func Deploy

func Deploy(pkg string, domain string)

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

type AuthSession struct {
	AccountID string `yaml:"id"`
	Token     string `yaml:"token"`
}

func GetCurrent

func GetCurrent() (*AuthSession, error)

func SignIn

func SignIn(ctx context.Context) (*AuthSession, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL