Documentation ¶
Index ¶
- type Client
- func (client *Client) Activated() *Client
- func (client *Client) DeactivateHost(name string, until ...time.Time) error
- func (client *Client) MarkSchedulable(name string, schedulable bool) error
- func (client *Client) Register(host *model.Host) error
- func (client *Client) Schedulable() *Client
- func (client *Client) WithPagination(page, pageSize int) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base_clients.ResourceClient[model.Host] }
Client is the client for the host model. It is used to query the database for hosts, and extends model.ResourceClient.
func (*Client) DeactivateHost ¶
func (*Client) MarkSchedulable ¶
func (*Client) Schedulable ¶
Schedulable adds a filter to only return hosts that are schedulable
func (*Client) WithPagination ¶
WithPagination sets the pagination for the client.
Click to show internal directories.
Click to hide internal directories.