Documentation ¶
Index ¶
- func Add(client newclient.Client, worker *machines.Worker) (*machines.Worker, error)
- func DeleteByID(client newclient.Client, spaceID string, ID string) error
- func Get(client newclient.Client, spaceID string, workersQuery machines.WorkersQuery) (*resources.Resources[*machines.Worker], error)
- func GetAll(client newclient.Client, spaceID string) ([]*machines.Worker, error)
- func GetByID(client newclient.Client, spaceID string, ID string) (*machines.Worker, error)
- func Update(client newclient.Client, worker *machines.Worker) (*machines.Worker, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByID ¶
DeleteByID deletes the worker based on the ID provided.
func Get ¶
func Get(client newclient.Client, spaceID string, workersQuery machines.WorkersQuery) (*resources.Resources[*machines.Worker], error)
Get returns a collection of workers based on the criteria defined by its input query parameter. If an error occurs, an empty collection is returned along with the associated error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.