clientnetbackup

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Opts, organizationName string) error

Init - Initializes the netbackup client

Types

type Client

type Client struct {
	*resty.Client
}

func New

func New() (*Client, error)

new creates a new netbackup client.

type Opts

type Opts struct {
	Endpoint string `env:"ENDPOINT,overwrite"` // Deprecated - use URL instead
	URL      string `env:"URL,overwrite"`
	Username string `env:"USERNAME,overwrite"`
	Password string `env:"PASSWORD,overwrite"`
	Debug    bool   `env:"DEBUG,overwrite"`
	// contains filtered or unexported fields
}

Opts - Is a struct that contains the options for the netbackup client

func (*Opts) Validate added in v0.8.0

func (o *Opts) Validate() error

Jump to

Keyboard shortcuts

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