netbackup

package
v0.0.0-...-8900df5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package netbackup provides functions for calling netbackup APIs and get there response back in structured formata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(jwt string, url string) (jsonData map[string]interface{}, code int, err error)

Get Raw function to call any GET APIs of NetBackup

func GetBaseURLString

func GetBaseURLString(server string) string

GetBaseURLString This returns the base URL for netbackup

func ImagesList

func ImagesList(jwt string, server string)

ImagesList API Returns list of catalog images

func JobList

func JobList(jwt string, server string)

JobList API Returns list of backup jobs

func Login

func Login(username string, password string, domain string, domainType string, server string) string

Login function

func MappingList

func MappingList(jwt string, server string)

MappingList Returns list of mappings for the server in JSON format

func Ping

func Ping(server string) string

Ping function call the netbackup ping API. This can be used to check the connectivity to Master server web services

func Post

func Post(jwt string, url string, reqValue []byte) (jsonData map[string]interface{}, code int, err error)

Post Raw function to call any POST APIs of NetBackup

Types

type NetBackup

type NetBackup struct {
	// contains filtered or unexported fields
}

NetBackup structure to directly call raw APIs or some predefined APIs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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