ibmpisession

package
v1.8.0-beta18 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 33

Documentation

Index

Constants

View Source
const (
	SCHEME_HTTPS = "https"
	SCHEME_HTTP  = "http"
)

Variables

This section is empty.

Functions

func CreateResourceControllerV2 added in v1.5.4

func CreateResourceControllerV2(url string, authenticator core.Authenticator) (service *rc.ResourceControllerV2, err error)

CreateResourceControllerV2 returns a resourceControllerV2

func SDKFailWithAPIError added in v1.4.1

func SDKFailWithAPIError(err error, origErr error) error

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)

Jump to

Keyboard shortcuts

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