cloudavenue

package module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	V1 v1.V1
}

func New

func New(opts *ClientOpts) (*Client, error)

New creates a new instance of the Client struct. It initializes the CloudAvenue and Netbackup options if they are nil. It then initializes the CloudAvenue client and retrieves a new refresh token. It fetches the console information for the organization. If the S3 service is enabled, it initializes the S3 client. If the Netbackup service is enabled, it initializes the Netbackup client. Finally, it returns a pointer to the Client struct and nil error if successful. Otherwise, it returns nil and the error encountered.

func (*Client) Config added in v0.8.0

func (c *Client) Config() ClientConfig

type ClientConfig added in v0.8.0

type ClientConfig struct{}

func (ClientConfig) GetOrganization added in v0.8.0

func (cc ClientConfig) GetOrganization() (string, error)

func (ClientConfig) GetURL added in v0.8.0

func (cc ClientConfig) GetURL() (string, error)

func (ClientConfig) GetUsername added in v0.8.0

func (cc ClientConfig) GetUsername() (string, error)

type ClientOpts

type ClientOpts struct {
	CloudAvenue *clientcloudavenue.Opts
	Netbackup   *clientnetbackup.Opts
}

Opts - Is a struct that contains the options for the SDK

Jump to

Keyboard shortcuts

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