Documentation ¶
Index ¶
- Constants
- type HerculesClient
- func (a *HerculesClient) DiskWipe(ctx context.Context, rr RoutineRequest) error
- func (a *HerculesClient) Download(ctx context.Context) error
- func (a *HerculesClient) GetHostDiskInfo(ctx context.Context) (*disk.UsageStat, error)
- func (a *HerculesClient) GetHostMemInfo(ctx context.Context) (*mem.VirtualMemoryStat, error)
- func (a *HerculesClient) Kill(ctx context.Context, rr RoutineRequest) error
- func (a *HerculesClient) Resume(ctx context.Context, rr RoutineRequest) error
- func (a *HerculesClient) Suspend(ctx context.Context, rr RoutineRequest) error
- type RoutineRequest
- type RoutineResp
Constants ¶
View Source
const ZeusEndpoint = "https://api.zeus.fyi"
View Source
const ZeusLocalEndpoint = "http://localhost:9003"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HerculesClient ¶
type HerculesClient struct {
zeus_client.ZeusClient
}
func NewDefaultHerculesClient ¶
func NewDefaultHerculesClient(bearer string) HerculesClient
func NewHerculesClient ¶
func NewHerculesClient(baseURL, bearer string) HerculesClient
func NewLocalHerculesClient ¶
func NewLocalHerculesClient(bearer string) HerculesClient
func (*HerculesClient) DiskWipe ¶
func (a *HerculesClient) DiskWipe(ctx context.Context, rr RoutineRequest) error
func (*HerculesClient) GetHostDiskInfo ¶
func (*HerculesClient) GetHostMemInfo ¶
func (a *HerculesClient) GetHostMemInfo(ctx context.Context) (*mem.VirtualMemoryStat, error)
func (*HerculesClient) Kill ¶
func (a *HerculesClient) Kill(ctx context.Context, rr RoutineRequest) error
func (*HerculesClient) Resume ¶
func (a *HerculesClient) Resume(ctx context.Context, rr RoutineRequest) error
func (*HerculesClient) Suspend ¶
func (a *HerculesClient) Suspend(ctx context.Context, rr RoutineRequest) error
type RoutineRequest ¶
type RoutineRequest struct {
ClientName string `json:"clientName"`
}
type RoutineResp ¶
type RoutineResp struct {
Status string `json:"status"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.