client

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("authentication timed out — please try again")

Functions

func FetchRuntimes added in v1.3.0

func FetchRuntimes() (map[string]string, error)

func Login

func Login() error

func Logout

func Logout(refreshToken string, apiURL string) error

Types

type AuthResponse

type AuthResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	UserId       string `json:"id"`
	Login        string `json:"login"`
}

func RefreshToken

func RefreshToken(refreshToken string, apiURL string) (*AuthResponse, error)

Jump to

Keyboard shortcuts

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