Versions in this module Expand all Collapse all v0 v0.66.3 Oct 31, 2024 Changes in this version + type Client struct + VMID int + func (c *Client) CloneContainer(ctx context.Context, d *CloneRequestBody) error + func (c *Client) CreateContainer(ctx context.Context, d *CreateRequestBody) error + func (c *Client) CreateContainerAsync(ctx context.Context, d *CreateRequestBody) (*string, error) + func (c *Client) DeleteContainer(ctx context.Context) error + func (c *Client) ExpandPath(path string) string + func (c *Client) Firewall() firewall.API + func (c *Client) GetContainer(ctx context.Context) (*GetResponseData, error) + func (c *Client) GetContainerStatus(ctx context.Context) (*GetStatusResponseData, error) + func (c *Client) RebootContainer(ctx context.Context, d *RebootRequestBody) error + func (c *Client) ShutdownContainer(ctx context.Context, d *ShutdownRequestBody) error + func (c *Client) StartContainer(ctx context.Context) error + func (c *Client) StartContainerAsync(ctx context.Context) (*string, error) + func (c *Client) StopContainer(ctx context.Context) error + func (c *Client) Tasks() *tasks.Client + func (c *Client) UpdateContainer(ctx context.Context, d *UpdateRequestBody) error + func (c *Client) WaitForContainerConfigUnlock(ctx context.Context, ignoreErrorResponse bool) error + func (c *Client) WaitForContainerStatus(ctx context.Context, status string) error + type CloneRequestBody struct + BandwidthLimit *int + Description *string + FullCopy *types.CustomBool + Hostname *string + PoolID *string + SnapshotName *string + TargetNodeName *string + TargetStorage *string + VMIDNew int + type CreateRequestBody struct + BandwidthLimit *float64 + CPUArchitecture *string + CPUCores *int + CPULimit *int + CPUUnits *int + ConsoleEnabled *types.CustomBool + ConsoleMode *string + DNSDomain *string + DNSServer *string + DatastoreID *string + DedicatedMemory *int + Delete []string + Description *string + Features *CustomFeatures + Force *types.CustomBool + HookScript *string + Hostname *string + IgnoreUnpackErrors *types.CustomBool + Lock *string + MountPoints CustomMountPointArray + NetworkInterfaces CustomNetworkInterfaceArray + OSTemplateFileVolume *string + OSType *string + Password *string + PoolID *string + Protection *types.CustomBool + Restore *types.CustomBool + RootFS *CustomRootFS + SSHKeys *CustomSSHKeys + Start *types.CustomBool + StartOnBoot *types.CustomBool + StartupBehavior *CustomStartupBehavior + Swap *int + TTY *int + Tags *string + Template *types.CustomBool + Unique *types.CustomBool + Unprivileged *types.CustomBool + VMID *int + type CreateResponseBody struct + Data *string + type CustomFeatures struct + FUSE *types.CustomBool + KeyControl *types.CustomBool + MountTypes *[]string + Nesting *types.CustomBool + func (r *CustomFeatures) EncodeValues(key string, v *url.Values) error + func (r *CustomFeatures) UnmarshalJSON(b []byte) error + type CustomMountPoint struct + ACL *types.CustomBool + Backup *types.CustomBool + DiskSize *string + Enabled bool + MountOptions *[]string + MountPoint string + Quota *types.CustomBool + ReadOnly *types.CustomBool + Replicate *types.CustomBool + Shared *types.CustomBool + Volume string + func (r *CustomMountPoint) EncodeValues(key string, v *url.Values) error + func (r *CustomMountPoint) UnmarshalJSON(b []byte) error + type CustomMountPointArray []CustomMountPoint + func (r CustomMountPointArray) EncodeValues(key string, v *url.Values) error + type CustomNetworkInterface struct + Bridge *string + Enabled bool + Firewall *types.CustomBool + IPv4Address *string + IPv4Gateway *string + IPv6Address *string + IPv6Gateway *string + MACAddress *string + MTU *int + Name string + RateLimit *float64 + Tag *int + Trunks *[]int + Type *string + func (r *CustomNetworkInterface) EncodeValues(key string, v *url.Values) error + func (r *CustomNetworkInterface) UnmarshalJSON(b []byte) error + type CustomNetworkInterfaceArray []CustomNetworkInterface + func (r CustomNetworkInterfaceArray) EncodeValues(key string, v *url.Values) error + type CustomRootFS struct + ACL *types.CustomBool + MountOptions *[]string + Quota *types.CustomBool + ReadOnly *types.CustomBool + Replicate *types.CustomBool + Shared *types.CustomBool + Size *types.DiskSize + Volume string + func (r *CustomRootFS) EncodeValues(key string, v *url.Values) error + func (r *CustomRootFS) UnmarshalJSON(b []byte) error + type CustomSSHKeys []string + func (r CustomSSHKeys) EncodeValues(key string, v *url.Values) error + type CustomStartupBehavior struct + Down *int + Order *int + Up *int + func (r *CustomStartupBehavior) EncodeValues(key string, v *url.Values) error + func (r *CustomStartupBehavior) UnmarshalJSON(b []byte) error + type GetResponseBody struct + Data *GetResponseData + type GetResponseData struct + CPUArchitecture *string + CPUCores *int + CPULimit *types.CustomInt + CPUUnits *int + ConsoleEnabled *types.CustomBool + ConsoleMode *string + DNSDomain *string + DNSServer *string + DedicatedMemory *int + Description *string + Digest string + Features *CustomFeatures + HookScript *string + Hostname *string + LXCConfiguration *[][2]string + Lock *types.CustomBool + MountPoint0 *CustomMountPoint + MountPoint1 *CustomMountPoint + MountPoint2 *CustomMountPoint + MountPoint3 *CustomMountPoint + MountPoint4 *CustomMountPoint + MountPoint5 *CustomMountPoint + MountPoint6 *CustomMountPoint + MountPoint7 *CustomMountPoint + NetworkInterface0 *CustomNetworkInterface + NetworkInterface1 *CustomNetworkInterface + NetworkInterface2 *CustomNetworkInterface + NetworkInterface3 *CustomNetworkInterface + NetworkInterface4 *CustomNetworkInterface + NetworkInterface5 *CustomNetworkInterface + NetworkInterface6 *CustomNetworkInterface + NetworkInterface7 *CustomNetworkInterface + OSType *string + Protection *types.CustomBool + RootFS *CustomRootFS + StartOnBoot *types.CustomBool + StartupBehavior *CustomStartupBehavior + Swap *int + TTY *int + Tags *string + Template *types.CustomBool + Unprivileged *types.CustomBool + type GetStatusResponseBody struct + Data *GetStatusResponseData + type GetStatusResponseData struct + CPUCount *float64 + Lock *string + MemoryAllocation *int + Name *string + RootDiskSize *interface{} + Status string + SwapAllocation *int + Tags *string + Uptime *int + VMID *types.CustomInt + type RebootRequestBody struct + Timeout *int + type ShutdownRequestBody struct + ForceStop *types.CustomBool + Timeout *int + type StartResponseBody struct + Data *string + type UpdateRequestBody CreateRequestBody