proxmox

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

func Float64

func Float64(f float64) *float64

func Int

func Int(i int) *int

func PVEBool added in v0.0.15

func PVEBool(b bool) *util.PVEBool

func String

func String(s string) *string

Types

type Client

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

func NewClient

func NewClient(baseAddr string) *Client

func (*Client) Do

func (c *Client) Do(ctx context.Context, route string, method string, response interface{}, request interface{}) error

func (*Client) SetCookie

func (c *Client) SetCookie(cookie string)

func (*Client) SetCsrf added in v0.0.9

func (c *Client) SetCsrf(csrf string)

type ClientOption

type ClientOption func(*Client)

type Response

type Response struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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