Versions in this module Expand all Collapse all v0 v0.3.0 Jul 22, 2026 v0.2.4 Feb 3, 2026 v0.2.3 Dec 10, 2025 v0.2.2 May 12, 2025 Changes in this version type InstanceData + AccountEUUID string + Image InstanceImageData + type InstanceImageData struct + ID string + Label string v0.2.1 Oct 24, 2024 v0.2.0 Jan 22, 2024 Changes in this version type ClientOption + func ClientWithDebug() ClientOption + func ClientWithLogger(logger Logger) ClientOption + type Logger = resty.Logger v0.1.0 Dec 14, 2023 Changes in this version + const APIHost + const APIProto + const APIVersion + const DefaultWatcherInterval + var DefaultUserAgent string + var Version = "dev" + type APIError struct + Errors []APIErrorReason + func (e APIError) Error() string + type APIErrorReason struct + Field string + Reason string + func (r APIErrorReason) Error() string + type Client struct + func NewClient(ctx context.Context, opts ...ClientOption) (*Client, error) + func (c *Client) GenerateToken(ctx context.Context, opts ...TokenOption) (string, error) + func (c *Client) GetInstance(ctx context.Context) (*InstanceData, error) + func (c *Client) GetNetwork(ctx context.Context) (*NetworkData, error) + func (c *Client) GetSSHKeys(ctx context.Context) (*SSHKeysData, error) + func (c *Client) GetUserData(ctx context.Context) (string, error) + func (c *Client) NewInstanceWatcher(opts ...WatcherOption) *InstanceWatcher + func (c *Client) NewNetworkWatcher(opts ...WatcherOption) *NetworkWatcher + func (c *Client) R(ctx context.Context) *resty.Request + func (c *Client) RefreshToken(ctx context.Context, opts ...TokenOption) (*Client, error) + func (c *Client) SetBaseURL(baseURL string) *Client + func (c *Client) SetVersion(version string) *Client + func (c *Client) UseToken(token string) *Client + type ClientOption func(options *clientCreateConfig) + func ClientWithBaseURL(baseURL string) ClientOption + func ClientWithHTTPClient(client *http.Client) ClientOption + func ClientWithManagedToken(opts ...TokenOption) ClientOption + func ClientWithToken(token string) ClientOption + func ClientWithUAPrefix(uaPrefix string) ClientOption + func ClientWithVersion(version string) ClientOption + func ClientWithoutManagedToken() ClientOption + type Error struct + Code int + Message string + Response *http.Response + func (g Error) Error() string + type IPv4Data struct + Private []netip.Prefix + Public []netip.Prefix + Shared []netip.Prefix + type IPv6Data struct + LinkLocal netip.Prefix + Ranges []netip.Prefix + SLAAC netip.Prefix + SharedRanges []netip.Prefix + type InstanceBackupsData struct + Enabled bool + Status *string + type InstanceData struct + Backups InstanceBackupsData + HostUUID string + ID int + Label string + Region string + Specs InstanceSpecsData + Tags []string + Type string + type InstanceSpecsData struct + Disk int + GPUs int + Memory int + Transfer int + VCPUs int + type InstanceWatcher struct + Errors chan error + Updates chan *InstanceData + func (watcher *InstanceWatcher) Close() + func (watcher *InstanceWatcher) Start(ctx context.Context) + type InterfaceData struct + IPAMAddress netip.Prefix + Label string + Purpose string + type NetworkData struct + IPv4 IPv4Data + IPv6 IPv6Data + Interfaces []InterfaceData + type NetworkWatcher struct + Errors chan error + Updates chan *NetworkData + func (watcher *NetworkWatcher) Close() + func (watcher *NetworkWatcher) Start(ctx context.Context) + type SSHKeysData struct + Users SSHKeysUserData + type SSHKeysUserData struct + Root []string + type TokenOption func(opts *tokenCreateOpts) + func TokenWithExpiry(seconds int) TokenOption + type WatcherOption func(options *watcherConfig) + func WatcherWithInterval(duration time.Duration) WatcherOption