Documentation ¶
Index ¶
Constants ¶
View Source
const ( SCHEME_HTTPS = "https" SCHEME_HTTP = "http" )
Variables ¶
This section is empty.
Functions ¶
func SDKFailWithAPIError ¶ added in v1.4.1
SDKFailWithAPIError returns a custom error message if a HTTP error response 500 or greater is found
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 IBMPIOptions ¶ added in v1.1.0
type IBMPIOptions struct { // The authenticator implementation to be used by the // service instance to authenticate outbound requests // Required Authenticator core.Authenticator // Enable/Disable http transport debugging log Debug bool // Region of the Power Cloud Service Instance // For generating the default endpoint // Deprecated: Region is deprecated, the URL is auto generated based on Zone when not provided. Region string // Power Virtual Server host or URL endpoint // This will be used instead of generating the default host // eg: dal.power-iaas.cloud.ibm.com URL string // Account id of the Power Cloud Service Instance // It will be part of the CRN string // Required UserAccount string // Zone of the Power Cloud Service Instance // It will be part of the CRN string // Required Zone string }
PIOptions
type IBMPISession ¶
type IBMPISession struct { CRNFormat string Power *client.PowerIaasAPI Options *IBMPIOptions }
IBMPISession ...
func NewIBMPISession ¶ added in v1.1.0
func NewIBMPISession(o *IBMPIOptions) (*IBMPISession, error)
Create a IBMPISession
func (*IBMPISession) AuthInfo ¶ added in v1.1.0
func (s *IBMPISession) AuthInfo(cloudInstanceID string) runtime.ClientAuthInfoWriter
authInfo ...
func (*IBMPISession) IsOnPrem ¶ added in v1.3.1
func (s *IBMPISession) IsOnPrem() bool
IsOnPrem returns true if the operation is being done on premise (at a satellite region)
Click to show internal directories.
Click to hide internal directories.