cli

package
v0.0.0-...-653f6f9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 11 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 dont work

Functions

func Client

func Client(apiUlr, userID, password, otp 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 PrintFormattedJson

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

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 ValidateExistinGuestID

func ValidateExistinGuestID(args []string, indexPos int) int

func ValidateIDset

func ValidateIDset(args []string, indexPos int, text string) string

Types

This section is empty.

Directories

Path Synopsis
command
get
set

Jump to

Keyboard shortcuts

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