auth

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: BSD-4-Clause, MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigVersionV2  = "2.0"
	ConfigVersionV21 = "2.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigData

type ConfigData struct {
	AuthDataVersion   string          `json:"auth_data_version"`
	LastUpdate        time.Time       `json:"last_update"`
	AuthConfigPerHost json.RawMessage `json:"auth_config_data"`
}

func NewConfigData

func NewConfigData() *ConfigData

type ConfigPerHostV2

type ConfigPerHostV2 map[string]CredentialsData

type CredentialsData

type CredentialsData struct {
	Tokens *UserToken     `json:"tokens"`
	User   *scalingo.User `json:"user"`
}

type UserToken

type UserToken struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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