Documentation ¶
Index ¶
- type Client
- func (c *Client) GetZone(name string) *configModels.Zone
- func (c *Client) ListAllHosts() ([]model.Host, error)
- func (c *Client) ListCapacities(n int) ([]body.TimestampedSystemCapacities, error)
- func (c *Client) ListHosts() ([]model.Host, error)
- func (c *Client) ListStats(n int) ([]body.TimestampedSystemStats, error)
- func (c *Client) ListStatus(n int) ([]body.TimestampedSystemStatus, error)
- func (c *Client) ListWorkerStatus(opts ...opts.ListWorkerStatusOpts) ([]model.WorkerStatus, error)
- func (c *Client) ListZones(opts ...opts.ListOpts) ([]configModels.Zone, error)
- func (c *Client) RegisterNode(params *body.HostRegisterParams) error
- func (c *Client) ZoneHasCapability(zoneName, capability string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // V2 is a reference to the parent client. V2 clients.V2 // Cache is used to cache the resources fetched inside the service. Cache *core.Cache }
func (*Client) GetZone ¶
func (c *Client) GetZone(name string) *configModels.Zone
GetZone gets a zone by name and type
func (*Client) ListAllHosts ¶
ListAllHosts gets a list of all hosts
func (*Client) ListCapacities ¶
func (c *Client) ListCapacities(n int) ([]body.TimestampedSystemCapacities, error)
ListCapacities fetches the system capacities from the database.
func (*Client) ListStats ¶
func (c *Client) ListStats(n int) ([]body.TimestampedSystemStats, error)
ListStats fetches the system stats from the database.
func (*Client) ListStatus ¶
func (c *Client) ListStatus(n int) ([]body.TimestampedSystemStatus, error)
ListStatus fetches the system status from the database.
func (*Client) ListWorkerStatus ¶
func (c *Client) ListWorkerStatus(opts ...opts.ListWorkerStatusOpts) ([]model.WorkerStatus, error)
ListWorkerStatus returns the status of all workers
func (*Client) RegisterNode ¶
func (c *Client) RegisterNode(params *body.HostRegisterParams) error
func (*Client) ZoneHasCapability ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.