token

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	User  *api.UserAccount `json:"user"`
	Token string           `json:"token"`
	Cloud Cloud            `json:"cloud"`
	GIT   GIT              `json:"git"`
}

type Cloud

type Cloud struct {
	URL        string `json:"url"`
	LocationID string `json:"location_id"`
	ServiceID  string `json:"service_id"`
	ProjectID  string `json:"project_id"`
}

type GIT

type GIT struct {
	GITUrl   string `json:"git_url"`
	GITToken string `json:"git_token"`
}

type Token

type Token interface {
	AddUser(ua *api.UserAccount) error
	AddGit(url string, tok string) (bool, error)
	AddToken(tok string) error
	Get() (*Client, error)
}

func New

func New(url string, home string) Token

Jump to

Keyboard shortcuts

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