proxmox

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 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