Documentation ¶
Overview ¶
Package robotclient contains the interface to speak to Hetzner robot API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ValidateCredentials() error RebootBMServer(int, infrav1.RebootType) (*models.ResetPost, error) ListBMServers() ([]models.Server, error) SetBMServerName(int, string) (*models.Server, error) GetBMServer(int) (*models.Server, error) ListSSHKeys() ([]models.Key, error) SetSSHKey(name, publickey string) (*models.Key, error) SetBootRescue(id int, fingerprint string) (*models.Rescue, error) GetBootRescue(id int) (*models.Rescue, error) DeleteBootRescue(id int) (*models.Rescue, error) GetReboot(int) (*models.Reset, error) }
Client collects all methods used by the controller in the robot API.
type Credentials ¶
Credentials holds the information for authenticating with the Hetzner Robot API.
type Factory ¶
type Factory interface {
NewClient(Credentials) Client
}
Factory is the interface for creating new Client objects.
Click to show internal directories.
Click to hide internal directories.