ibmpisession

package
v1.0.88 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 19 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

BearerTokenAndCRN ...

func NewAuth

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

NewAuth ...

Types

type IBMPILogger added in v1.0.86

type IBMPILogger struct{}

func (IBMPILogger) Debugf added in v1.0.86

func (IBMPILogger) Debugf(format string, args ...interface{})

func (IBMPILogger) Printf added in v1.0.86

func (IBMPILogger) Printf(format string, args ...interface{})

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