manager

package
v0.10.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokenNotFound = fmt.Errorf("token not found")
	ErrForbidden     = fmt.Errorf("forbidden")
)

Functions

func DefaultProject

func DefaultProject(ctx context.Context, address, token string) (string, error)

func IsManager

func IsManager(cfg *config.CLIConfig, address string) (bool, error)

func Login

func Login(ctx context.Context, cfg *config.CLIConfig, password, address string) (user string, pass string, err error)

func ProjectURL

func ProjectURL(ctx context.Context, serverAddress, accountName, token string) (url string, err error)

func Projects

func Projects(ctx context.Context, address, token string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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