ibmpisession

package
v1.0.85 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 15 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, cloudInstanceID string) runtime.ClientAuthInfoWriter

NewAuth ...

Types

type IBMPISession

type IBMPISession struct {
	IAMToken      string
	IMSToken      string
	Power         *client.PowerIaas
	UserAccount   string
	Region        string
	Zone          string
	Authenticator core.Authenticator
}

IBMPISession ...

func New

func New(iamtoken, region string, debug bool, useraccount string, zone string) (*IBMPISession, error)

New ... - deprecated: New function can be used, but is slated to become `obsolete`, Instead try using NewSession function.

func NewSession added in v1.0.84

func NewSession(options *PIOptions) (*IBMPISession, error)

Create a IBMPISession

type PIOptions added in v1.0.84

type PIOptions struct {
	// Enable/Disable http transport debugging log
	Debug bool

	// Account id of the Power Cloud Service Instance
	// Required
	UserAccount string

	// Region of the Power Cloud Service Instance
	// Required
	Region string

	// Zone of the Power Cloud Service Instance; Use Region if not set
	Zone string

	// The authenticator used to configure the appropriate type of authentication
	// Required
	Authenticator core.Authenticator
}

PIOptions

Jump to

Keyboard shortcuts

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