profiles

package
v0.0.0-...-5dbd68d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_FILE = "~/.aurl/profiles"

	CLIENT_ID                  = "client_id"
	CLIENT_SECRET              = "client_secret"
	AUTH_SERVER_AUTH_ENDPOINT  = "auth_server_auth_endpoint"
	AUTH_SERVER_TOKEN_ENDPOINT = "auth_server_token_endpoint"
	REDIRECT                   = "redirect"
	GRANT_TYPE                 = "grant_type"
	SCOPES                     = "scopes"
	USERNAME                   = "username"
	PASSWORD                   = "password"
	DEFAULT_CONTENT_TYPE       = "default_content_type"
	DEFAULT_USER_AGENT         = "default_user_agent"

	DEFAULT_CLIENT_ID     = "aurl"
	DEFAULT_CLIENT_SECRET = "aurl"
	DEFAULT_GRANT_TYPE    = "authorization_code"
	DEFAULT_SCOPES        = "root"
)

Variables

View Source
var (
	Name    = "aurl"
	Version = "dev"
)

Functions

This section is empty.

Types

type Profile

type Profile struct {
	Name                  string
	ClientId              string
	ClientSecret          string
	AuthorizationEndpoint string
	TokenEndpoint         string
	RedirectURI           string
	GrantType             string
	Scope                 string
	Username              string
	Password              string
	DefaultContentType    string
	UserAgent             string
}

func LoadProfile

func LoadProfile(profileName string) (Profile, error)

func (Profile) String

func (p Profile) String() string

Jump to

Keyboard shortcuts

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