Documentation ¶
Index ¶
- func InitializeProxmox()
- type ACLRequest
- type APIToken
- type APITokenRequest
- type APITokenResponse
- type PBSStatus
- type PBSStatusResponse
- type ProxmoxSession
- func (proxmoxSess *ProxmoxSession) CreateAPIToken() (*APIToken, error)
- func (proxmoxSess *ProxmoxSession) GetJobTask(ctx context.Context, readyChan chan struct{}, job *types.Job, ...) (*Task, error)
- func (proxmoxSess *ProxmoxSession) GetPBSStatus() (*PBSStatus, error)
- func (proxmoxSess *ProxmoxSession) GetTaskByUPID(upid string) (*Task, error)
- func (proxmoxSess *ProxmoxSession) GetTaskEndTime(task *Task) (int64, error)
- func (proxmoxSess *ProxmoxSession) ProxmoxHTTPRequest(method, url string, body io.Reader, respBody any) error
- type Task
- type TaskResponse
- type Token
- type TokenRequest
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeProxmox ¶
func InitializeProxmox()
Types ¶
type ACLRequest ¶
type APITokenRequest ¶
type APITokenRequest struct {
Comment string `json:"comment"`
}
type APITokenResponse ¶
type APITokenResponse struct {
Data APIToken `json:"data"`
}
type PBSStatus ¶
type PBSStatus struct { BootInfo map[string]interface{} `json:"boot-info"` CPU float64 `json:"cpu"` CPUInfo map[string]interface{} `json:"cpuinfo"` CurrentKernel map[string]interface{} `json:"current-kernel"` Info map[string]string `json:"info"` KVersion string `json:"kversion"` LoadAvg []float32 `json:"loadavg"` Memory map[string]int64 `json:"memory"` Root map[string]int64 `json:"root"` Swap map[string]int64 `json:"swap"` Uptime int64 `json:"uptime"` Wait float32 `json:"wait"` }
type PBSStatusResponse ¶
type PBSStatusResponse struct {
Data PBSStatus `json:"data"`
}
type ProxmoxSession ¶
var Session *ProxmoxSession
func (*ProxmoxSession) CreateAPIToken ¶
func (proxmoxSess *ProxmoxSession) CreateAPIToken() (*APIToken, error)
func (*ProxmoxSession) GetJobTask ¶
func (*ProxmoxSession) GetPBSStatus ¶
func (proxmoxSess *ProxmoxSession) GetPBSStatus() (*PBSStatus, error)
func (*ProxmoxSession) GetTaskByUPID ¶
func (proxmoxSess *ProxmoxSession) GetTaskByUPID(upid string) (*Task, error)
func (*ProxmoxSession) GetTaskEndTime ¶
func (proxmoxSess *ProxmoxSession) GetTaskEndTime(task *Task) (int64, error)
func (*ProxmoxSession) ProxmoxHTTPRequest ¶
type Task ¶
type Task struct { WID string `json:"id"` Node string `json:"node"` PID int `json:"pid"` PStart int `json:"pstart"` StartTime int64 `json:"starttime"` EndTime int64 `json:"endtime"` UPID string `json:"upid"` User string `json:"user"` WorkerType string `json:"worker_type"` Status string `json:"status"` ExitStatus string `json:"exitstatus"` }
type TaskResponse ¶
type TokenRequest ¶
type TokenResponse ¶
type TokenResponse struct {
Data Token `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.