clientnetbackup

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts Opts) (err 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,default=https://backup1.cloudavenue.orange-business.com/NetBackupSelfServiceNetBackupPanels/Api"`
	Username string `env:"USERNAME"`
	Password string `env:"PASSWORD"`
	Debug    bool   `env:"DEBUG,default=false"`
}

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

Jump to

Keyboard shortcuts

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