Documentation ¶
Index ¶
- type APIToken
- type Client
- func (c *Client) Delete(url *url.URL) ([]byte, error)
- func (c *Client) DeleteItem(item ItemDeleter, basePath, id string, digest string, extraParams ...URLParam) error
- func (c *Client) Get(url *url.URL) ([]byte, error)
- func (c Client) GetAll(g Getter, basePath string) ([]byte, error)
- func (c Client) GetItem(g ItemGetter, basePath, id string) ([]byte, error)
- func (c *Client) Post(url *url.URL) ([]byte, error)
- func (c Client) PostItem(p Poster, basePath string) ([]byte, error)
- func (c *Client) Put(url *url.URL) ([]byte, error)
- func (c Client) PutItem(p ItemPutter, basePath, id string) ([]byte, error)
- type Getter
- type ItemDeleter
- type ItemGetter
- type ItemPutter
- type Poster
- type Ticket
- type URLParam
- type UserPass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { APIurl url.URL APIToken *APIToken // UserPass *UserPass Ticket *Ticket TLSInsecure bool HTTPClient *http.Client }
func NewAPITokenClient ¶
func NewTicketClient ¶
func (*Client) DeleteItem ¶
type ItemDeleter ¶
type ItemDeleter interface {
Delete() error
}
type ItemGetter ¶
type ItemPutter ¶
type URLParam ¶
type URLParam struct { Key string Value types.PVEAPIType }
Click to show internal directories.
Click to hide internal directories.