ibmpisession

package
v1.0.76 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BearerTokenAndCRN

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

BearerTokenAndCRN ...

func NewAuth

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

NewAuth ...

Types

type IBMPISession

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

IBMPISession ...

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