Documentation ¶
Index ¶
- Variables
- func Client(apiUrl, userID, password, otp string, http_headers string) (c *proxmox.Client, err error)
- func Execute() (err error)
- func LogFatalError(err error)
- func LogFatalListing(text string, err error)
- func NewClient() (c *proxmox.Client)
- func NewConfig() (configSource []byte)
- func OptionalIDset(args []string, indexPos uint) (out string)
- func PrintFormattedJson(out io.Writer, input interface{})
- func PrintGuestStatus(out io.Writer, id int, text string)
- func PrintItemCreated(out io.Writer, id, text string)
- func PrintItemDeleted(out io.Writer, id, text string)
- func PrintItemSet(out io.Writer, id, text string)
- func PrintItemUpdated(out io.Writer, id, text string)
- func PrintRawJson(out io.Writer, input interface{})
- func RequiredIDset(args []string, indexPos uint, text string) string
- func ValidateExistingGuestID(args []string, indexPos uint) int
- func ValidateIntIDset(args []string, text string) int
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 LogFatalError ¶
func LogFatalError(err error)
func LogFatalListing ¶
func OptionalIDset ¶
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 PrintItemCreated ¶
func PrintItemDeleted ¶
func PrintItemSet ¶
func PrintItemUpdated ¶
func PrintRawJson ¶
func RequiredIDset ¶
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 ValidateIntIDset ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.