Documentation ¶
Index ¶
- type AuthenticationMethod
- type Executor
- type PVEExecutor
- func (exc *PVEExecutor) EndAtomicBlock()
- func (exc *PVEExecutor) Request(method, path string, form url.Values) ([]byte, error)
- func (exc *PVEExecutor) SetAuthenticationTicket(ticket string, method AuthenticationMethod)
- func (exc *PVEExecutor) SetCSRFToken(token string)
- func (exc *PVEExecutor) StartAtomicBlock()
- type Values
- func (v Values) AddBool(k string, b bool)
- func (v Values) AddInt(k string, i int)
- func (v Values) AddObject(k string, o types.Marshaler) error
- func (v Values) AddString(k string, s string)
- func (v Values) AddTime(k string, t time.Time)
- func (v Values) AddUint(k string, u uint)
- func (v Values) ConditionalAddBool(k string, b bool, cond bool)
- func (v Values) ConditionalAddInt(k string, i int, cond bool)
- func (v Values) ConditionalAddObject(k string, t types.Marshaler, cond bool)
- func (v Values) ConditionalAddString(k string, s string, cond bool)
- func (v Values) ConditionalAddTime(k string, t time.Time, cond bool)
- func (v Values) ConditionalAddUint(k string, u uint, cond bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationMethod ¶
type AuthenticationMethod int
const ( AuthenticationMethodCookie AuthenticationMethod = iota AuthenticationMethodHeader )
type PVEExecutor ¶
type PVEExecutor struct {
// contains filtered or unexported fields
}
func NewPVEExecutor ¶
func NewPVEExecutor(base *url.URL, client *http.Client) *PVEExecutor
func (*PVEExecutor) EndAtomicBlock ¶
func (exc *PVEExecutor) EndAtomicBlock()
func (*PVEExecutor) SetAuthenticationTicket ¶
func (exc *PVEExecutor) SetAuthenticationTicket( ticket string, method AuthenticationMethod, )
func (*PVEExecutor) SetCSRFToken ¶
func (exc *PVEExecutor) SetCSRFToken(token string)
func (*PVEExecutor) StartAtomicBlock ¶
func (exc *PVEExecutor) StartAtomicBlock()
type Values ¶
func (Values) ConditionalAddObject ¶
func (Values) ConditionalAddString ¶
func (Values) ConditionalAddTime ¶
Click to show internal directories.
Click to hide internal directories.