ibmpisession

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 13 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BearerTokenAndCRN

func BearerTokenAndCRN(session *IBMPISession, crn string) runtime.ClientAuthInfoWriter

func NewAuth

func NewAuth(sess *IBMPISession, PowerInstanceId string) runtime.ClientAuthInfoWriter

Types

type IBMPISession

type IBMPISession struct {
	IAMToken    string
	IMSToken    string
	Power       *client.PowerIaas
	Timeout     time.Duration
	UserAccount string
	Region      string
	Zone        string
}

Session ...

func New

func New(iamtoken, region string, debug bool, timeout time.Duration, useraccount string, zone string) (*IBMPISession, error)

New ...

The method takes in the following params iamtoken : this is the token that is passed from the client region : Obtained from the terraform template. Every template /resource will be required to have this information timeout: useraccount:

Jump to

Keyboard shortcuts

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