Versions in this module Expand all Collapse all v1 v1.2.0 Oct 26, 2023 v1.1.0 Sep 3, 2022 Changes in this version + const SSHKeyURL + const ServerURL + const StorageboxURL + var UserAgent = fmt.Sprintf("hetzner_export/%s", version.String) + type Client struct + SSHKey SSHKeyClient + Server ServerClient + Storagebox StorageboxClient + func NewClient(options ...ClientOption) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(ctx context.Context, method, path string, body io.Reader) (*http.Request, error) + type ClientOption func(*Client) + func WithHTTPClient(value *http.Client) ClientOption + func WithHTTPDumper(value Dumper) ClientOption + func WithPassword(value string) ClientOption + func WithUsername(value string) ClientOption + type Dumper interface + DumpRequest func(*http.Request) + DumpResponse func(*http.Response) + func DiscardDumper() Dumper + func StandardDumper(body bool) Dumper + type Response struct + type SSHKey struct + Fingerprint string + Name string + Size string + Type string + type SSHKeyClient struct + func (c *SSHKeyClient) All(ctx context.Context) ([]*SSHKey, error) + type Server struct + Cancelled float64 + Datacenter string + Flatrate float64 + Name string + Number string + Paid float64 + Status float64 + Traffic float64 + Type string + type ServerClient struct + func (c *ServerClient) All(ctx context.Context) ([]*Server, error) + type Storagebox struct + Cancelled float64 + Data float64 + External float64 + Location string + Locked float64 + Login string + Name string + Number string + Paid float64 + Quota float64 + SSH float64 + Samba float64 + Snapshots float64 + Type string + Usage float64 + Webdav float64 + ZFS float64 + type StorageboxClient struct + func (c *StorageboxClient) All(ctx context.Context) ([]*Storagebox, error) + func (c *StorageboxClient) Get(ctx context.Context, number string) (*Storagebox, error)