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
Click to show internal directories.
Click to hide internal directories.