ibmppcsession

package
v0.0.0-...-32f6bd3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type IBMPPCLogger

type IBMPPCLogger struct{}

func (IBMPPCLogger) Debugf

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

func (IBMPPCLogger) Printf

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

type IBMPPCOptions

type IBMPPCOptions 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.ppc-aas.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
}

SPOptions

type IBMPPCSession

type IBMPPCSession struct {
	CRNFormat string
	Power     *client.PowerPrivateCloudAsaServiceAPI
	Options   *IBMPPCOptions
}

IBMPPCSession ...

func NewIBMPPCSession

func NewIBMPPCSession(o *IBMPPCOptions) (*IBMPPCSession, error)

Create a IBMPPCSession

func (*IBMPPCSession) AuthInfo

func (s *IBMPPCSession) AuthInfo(cloudInstanceID string) runtime.ClientAuthInfoWriter

authInfo ...

Jump to

Keyboard shortcuts

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