api

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Auth is the authorization context used by the ali client

Client is the api client

View Source
var CurrentEnvironment = "production"

CurrentEnvironment is the environment to use

View Source
var CurrentProject = "default"

CurrentProject is the project to use

View Source
var CurrentServer string

CurrentServer is the url of the api to use

View Source
var CurrentToken string

CurrentToken is the api token

View Source
var Debug bool

Debug turns on debugging of http requests

View Source
var HTTPClient *http.Client

HTTPClient is an underlying http client with logging transport

View Source
var UserAgent string

UserAgent is the current user agent for this version of the command

Functions

func Initialize

func Initialize(userAgent string)

Initialize sets up api for use with a given user agent string

func SetServer

func SetServer(newServer string)

SetServer sets the server url to use

func SetToken

func SetToken(newToken string)

SetToken sets the authorization token

Types

This section is empty.

Jump to

Keyboard shortcuts

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