Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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
Click to show internal directories.
Click to hide internal directories.