Documentation
¶
Index ¶
Constants ¶
View Source
const TaikunAccessKey = "TAIKUN_ACCESS_KEY"
View Source
const TaikunApiHostEnvVar = "TAIKUN_API_HOST"
View Source
const TaikunAuthMode = "TAIKUN_AUTH_MODE"
View Source
const TaikunEmailEnvVar = "TAIKUN_EMAIL"
Enviroment variables which can be read from the command line evn.
View Source
const TaikunPasswordEnvVar = "TAIKUN_PASSWORD"
View Source
const TaikunSecretKey = "TAIKUN_SECRET_KEY"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // Set by the program Client *taikuncore.APIClient ShowbackClient *taikunshowback.APIClient CustomTransport *customTransport // contains filtered or unexported fields }
Client is a struct representing an authenticated connection to simultaneously both Taikun Web API and Showback client
func NewClient ¶
func NewClient() *Client
NewClient returns a client authenticated based on your environment variables defined above. It is intended to be called by other modules or packages.
func NewClientFromCredentials ¶
func NewClientFromCredentials(email string, password string, accessKey string, secretKey string, authMode string, apiHost string) *Client
NewClientFromCredentials is a helper function not intended to be used by the user. It returns a client based on the authMode and provided credentials
func NewClientFromToken ¶
NewClientFromToken is a helper function not intended to be used by the user. It returns a client based on the token provided.
Click to show internal directories.
Click to hide internal directories.