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