cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "proxmox-api-go",
	Short: "Application to configure Proxmox from the Api",
}

Global else the nested folders don't work

Functions

func Client

func Client(apiUrl, userID, password, otp string, http_headers string) (c *proxmox.Client, err error)

func Execute

func Execute() (err error)

func LogFatalError

func LogFatalError(err error)

func LogFatalListing

func LogFatalListing(text string, err error)

func NewClient

func NewClient() (c *proxmox.Client)

func NewConfig

func NewConfig() (configSource []byte)

func OptionalIDset

func OptionalIDset(args []string, indexPos uint) (out string)

Should be used for Optional IDs. returns if the indexed arg if it is set. It returns an empty string when the indexed arg is not set.

func PrintFormattedJson

func PrintFormattedJson(out io.Writer, input interface{})

func PrintGuestStatus

func PrintGuestStatus(out io.Writer, id int, text string)

func PrintItemCreated

func PrintItemCreated(out io.Writer, id, text string)

func PrintItemDeleted

func PrintItemDeleted(out io.Writer, id, text string)

func PrintItemSet

func PrintItemSet(out io.Writer, id, text string)

func PrintItemUpdated

func PrintItemUpdated(out io.Writer, id, text string)

func PrintRawJson

func PrintRawJson(out io.Writer, input interface{})

func RequiredIDset

func RequiredIDset(args []string, indexPos uint, text string) string

Should be used for Required IDs. returns if the indexed arg if it is set. It throws and error when the indexed arg is not set.

func ValidateExistingGuestID

func ValidateExistingGuestID(args []string, indexPos uint) int

func ValidateIntIDset

func ValidateIntIDset(args []string, text string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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