client

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

README

Longhorn API client

The code in this package is generated by rancher/go-rancher. But in order to fix some compatibility issues, you must use the longhorn-v1 branch of this repo instead.

Generate code in go-rancher

The version of go-rancher we use does not have Go module support. It must be cloned onto the correct location on the GOPATH and the Go tools must be executed with GO111MODULE=off. This might be unusual for developers used to working with modern Go.

  1. Run longhorn-manager. There may be an easier way, but generally, this means deploy Longhorn to a cluster using a development version of the longhorn-manager container.
  2. Expose the longhorn-manager API. If running in a cluster, change the spec.type of the longhorn-backend service from ClusterIP to NodePort. The IP is the IP of any node and the port is given by spec.ports.nodePort.
  3. Clone go-rancher to the correct location on your GOPATH and check out the correct branch.
cd $GOPATH/src/github.com/niusmallnan/
git clone https://github.com/niusmallnan/go-rancher
cd go-rancher
git checkout longhorn-v1
  1. Get dependencies.
GO111MODULE=off go get
  1. Generate code.
scripts/generate-longhorn-schemas.sh http://<ip>:<port>

Copy code to longhorn-manager

  1. Copy the client to your project directory.
cp $GOPATH/src/github.com/niusmallnan/go-rancher/longhorn/*.go <project_directory>/client/
  1. Correct the package name.
cd <project_directory>/client
sed -i -e 's/package longhorn/package client/g' *.go
  1. Check the git diff. There are likely unrelated changes you did not intend. For now, just revert any changes that don't appear to be directly related to your work. Maybe we can make the process more idempotent in the future.

Notes:

The generator currently no longer generates actions, so you need to ensure not to overwrite the ActionUpdateAccessMode in generated_volume.go. I currently don't have the time to look into this and since we are planning on reworking the api down the line, this is a low priority issue for now.

Documentation

Index

Constants

View Source
const (
	SELF       = "self"
	COLLECTION = "collection"
)
View Source
const (
	ACTIVATE_INPUT_TYPE = "activateInput"
)
View Source
const (
	API_VERSION_TYPE = "apiVersion"
)
View Source
const (
	ATTACHMENT_TYPE = "attachment"
)
View Source
const (
	ATTACH_INPUT_TYPE = "attachInput"
)
View Source
const (
	BACKING_IMAGE_CLEANUP_INPUT_TYPE = "backingImageCleanupInput"
)
View Source
const (
	BACKING_IMAGE_DISK_FILE_STATUS_TYPE = "backingImageDiskFileStatus"
)
View Source
const (
	BACKING_IMAGE_TYPE = "backingImage"
)
View Source
const (
	BACKUP_INPUT_TYPE = "backupInput"
)
View Source
const (
	BACKUP_LIST_OUTPUT_TYPE = "backupListOutput"
)
View Source
const (
	BACKUP_STATUS_TYPE = "backupStatus"
)
View Source
const (
	BACKUP_TARGET_TYPE = "backupTarget"
)
View Source
const (
	BACKUP_TYPE = "backup"
)
View Source
const (
	BACKUP_VOLUME_TYPE = "backupVolume"
)
View Source
const (
	CLONE_STATUS_TYPE = "cloneStatus"
)
View Source
const (
	CONTROLLER_TYPE = "controller"
)
View Source
const (
	DETACH_INPUT_TYPE = "detachInput"
)
View Source
const (
	DISK_CONDITION_TYPE = "diskCondition"
)
View Source
const (
	DISK_INFO_TYPE = "diskInfo"
)
View Source
const (
	DISK_UPDATE_INPUT_TYPE = "diskUpdateInput"
)
View Source
const (
	DISK_UPDATE_TYPE = "diskUpdate"
)
View Source
const (
	EMPTY_TYPE = "empty"
)
View Source
const (
	ENGINE_IMAGE_TYPE = "engineImage"
)
View Source
const (
	ENGINE_UPGRADE_INPUT_TYPE = "engineUpgradeInput"
)
View Source
const (
	ERROR_TYPE = "error"
)
View Source
const (
	EXPAND_INPUT_TYPE = "expandInput"
)
View Source
const (
	INSTANCE_MANAGER_TYPE = "instanceManager"
)
View Source
const (
	KUBERNETES_STATUS_TYPE = "kubernetesStatus"
)
View Source
const (
	LONGHORN_CONDITION_TYPE = "longhornCondition"
)
View Source
const (
	NODE_CONDITION_TYPE = "nodeCondition"
)
View Source
const (
	NODE_TYPE = "node"
)
View Source
const (
	ORPHAN_TYPE = "orphan"
)
View Source
const (
	PURGE_STATUS_TYPE = "purgeStatus"
)
View Source
const (
	PVCCREATE_INPUT_TYPE = "PVCCreateInput"
)
View Source
const (
	PVCREATE_INPUT_TYPE = "PVCreateInput"
)
View Source
const (
	REBUILD_STATUS_TYPE = "rebuildStatus"
)
View Source
const (
	RECURRING_JOB_TYPE = "recurringJob"
)
View Source
const (
	REPLICA_REMOVE_INPUT_TYPE = "replicaRemoveInput"
)
View Source
const (
	REPLICA_TYPE = "replica"
)
View Source
const (
	RESTORE_STATUS_TYPE = "restoreStatus"
)
View Source
const (
	SALVAGE_INPUT_TYPE = "salvageInput"
)
View Source
const (
	SETTING_DEFINITION_TYPE = "settingDefinition"
)
View Source
const (
	SETTING_TYPE = "setting"
)
View Source
const (
	SNAPSHOT_CRINPUT_TYPE = "snapshotCRInput"
)
View Source
const (
	SNAPSHOT_CRLIST_OUTPUT_TYPE = "snapshotCRListOutput"
)
View Source
const (
	SNAPSHOT_CR_TYPE = "snapshotCR"
)
View Source
const (
	SNAPSHOT_INPUT_TYPE = "snapshotInput"
)
View Source
const (
	SNAPSHOT_LIST_OUTPUT_TYPE = "snapshotListOutput"
)
View Source
const (
	SNAPSHOT_TYPE = "snapshot"
)
View Source
const (
	SUPPORT_BUNDLE_INITATE_INPUT_TYPE = "supportBundleInitateInput"
)
View Source
const (
	SUPPORT_BUNDLE_TYPE = "supportBundle"
)
View Source
const (
	SYSTEM_BACKUP_TYPE = "systemBackup"
)
View Source
const (
	SYSTEM_RESTORE_TYPE = "systemRestore"
)
View Source
const (
	TAG_TYPE = "tag"
)
View Source
const (
	UPDATE_ACCESS_MODE_INPUT_TYPE = "UpdateAccessModeInput"
)
View Source
const (
	UPDATE_BACKUP_COMPRESSION_INPUT_TYPE = "UpdateBackupCompressionInput"
)
View Source
const (
	UPDATE_DATA_LOCALITY_INPUT_TYPE = "UpdateDataLocalityInput"
)
View Source
const (
	UPDATE_OFFLINE_REPLICA_REBUILDING_INPUT_TYPE = "UpdateOfflineReplicaRebuildingInput"
)
View Source
const (
	UPDATE_REPLICA_AUTO_BALANCE_INPUT_TYPE = "UpdateReplicaAutoBalanceInput"
)
View Source
const (
	UPDATE_REPLICA_COUNT_INPUT_TYPE = "UpdateReplicaCountInput"
)
View Source
const (
	UPDATE_REPLICA_DISK_SOFT_ANTI_AFFINITY_INPUT_TYPE = "UpdateReplicaDiskSoftAntiAffinityInput"
)
View Source
const (
	UPDATE_REPLICA_SOFT_ANTI_AFFINITY_INPUT_TYPE = "UpdateReplicaSoftAntiAffinityInput"
)
View Source
const (
	UPDATE_REPLICA_ZONE_SOFT_ANTI_AFFINITY_INPUT_TYPE = "UpdateReplicaZoneSoftAntiAffinityInput"
)
View Source
const (
	UPDATE_SNAPSHOT_DATA_INTEGRITY_INPUT_TYPE = "UpdateSnapshotDataIntegrityInput"
)
View Source
const (
	UPDATE_SNAPSHOT_MAX_COUNT_INPUT_TYPE = "UpdateSnapshotMaxCountInput"
)
View Source
const (
	UPDATE_SNAPSHOT_MAX_SIZE_INPUT_TYPE = "UpdateSnapshotMaxSizeInput"
)
View Source
const (
	UPDATE_UNMAP_MARK_SNAP_CHAIN_REMOVED_INPUT_TYPE = "UpdateUnmapMarkSnapChainRemovedInput"
)
View Source
const (
	VOLUME_ATTACHMENT_TYPE = "volumeAttachment"
)
View Source
const (
	VOLUME_CONDITION_TYPE = "volumeCondition"
)
View Source
const (
	VOLUME_RECURRING_JOB_INPUT_TYPE = "volumeRecurringJobInput"
)
View Source
const (
	VOLUME_RECURRING_JOB_TYPE = "volumeRecurringJob"
)
View Source
const (
	VOLUME_TYPE = "volume"
)
View Source
const (
	WORKLOAD_STATUS_TYPE = "workloadStatus"
)

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

func NormalizeUrl

func NormalizeUrl(existingUrl string) (string, error)

Types

type Action

type Action struct {
	Input  string `json:"input,omitempty"`
	Output string `json:"output,omitempty"`
}

type ActivateInput added in v0.6.0

type ActivateInput struct {
	Resource `yaml:"-"`

	Frontend string `json:"frontend,omitempty" yaml:"frontend,omitempty"`
}

type ActivateInputClient added in v0.6.0

type ActivateInputClient struct {
	// contains filtered or unexported fields
}

func (*ActivateInputClient) ById added in v0.6.0

func (*ActivateInputClient) Create added in v0.6.0

func (c *ActivateInputClient) Create(container *ActivateInput) (*ActivateInput, error)

func (*ActivateInputClient) Delete added in v0.6.0

func (c *ActivateInputClient) Delete(container *ActivateInput) error

func (*ActivateInputClient) List added in v0.6.0

func (*ActivateInputClient) Update added in v0.6.0

func (c *ActivateInputClient) Update(existing *ActivateInput, updates interface{}) (*ActivateInput, error)

type ActivateInputCollection added in v0.6.0

type ActivateInputCollection struct {
	Collection
	Data []ActivateInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateInputCollection) Next added in v0.6.0

type ActivateInputOperations added in v0.6.0

type ActivateInputOperations interface {
	List(opts *ListOpts) (*ActivateInputCollection, error)
	Create(opts *ActivateInput) (*ActivateInput, error)
	Update(existing *ActivateInput, updates interface{}) (*ActivateInput, error)
	ById(id string) (*ActivateInput, error)
	Delete(container *ActivateInput) error
}

type ApiError

type ApiError struct {
	StatusCode int
	Url        string
	Msg        string
	Status     string
	Body       string
}

func (*ApiError) Error

func (e *ApiError) Error() string

type ApiVersion

type ApiVersion struct {
	Resource `yaml:"-"`
}

type ApiVersionClient

type ApiVersionClient struct {
	// contains filtered or unexported fields
}

func (*ApiVersionClient) ById

func (c *ApiVersionClient) ById(id string) (*ApiVersion, error)

func (*ApiVersionClient) Create

func (c *ApiVersionClient) Create(container *ApiVersion) (*ApiVersion, error)

func (*ApiVersionClient) Delete

func (c *ApiVersionClient) Delete(container *ApiVersion) error

func (*ApiVersionClient) List

func (*ApiVersionClient) Update

func (c *ApiVersionClient) Update(existing *ApiVersion, updates interface{}) (*ApiVersion, error)

type ApiVersionCollection

type ApiVersionCollection struct {
	Collection
	Data []ApiVersion `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiVersionCollection) Next

type ApiVersionOperations

type ApiVersionOperations interface {
	List(opts *ListOpts) (*ApiVersionCollection, error)
	Create(opts *ApiVersion) (*ApiVersion, error)
	Update(existing *ApiVersion, updates interface{}) (*ApiVersion, error)
	ById(id string) (*ApiVersion, error)
	Delete(container *ApiVersion) error
}

type AttachInput

type AttachInput struct {
	Resource `yaml:"-"`

	AttachedBy string `json:"attachedBy,omitempty" yaml:"attached_by,omitempty"`

	AttacherType string `json:"attacherType,omitempty" yaml:"attacher_type,omitempty"`

	AttachmentID string `json:"attachmentID,omitempty" yaml:"attachment_id,omitempty"`

	DisableFrontend bool `json:"disableFrontend,omitempty" yaml:"disable_frontend,omitempty"`

	HostId string `json:"hostId,omitempty" yaml:"host_id,omitempty"`
}

type AttachInputClient

type AttachInputClient struct {
	// contains filtered or unexported fields
}

func (*AttachInputClient) ById

func (c *AttachInputClient) ById(id string) (*AttachInput, error)

func (*AttachInputClient) Create

func (c *AttachInputClient) Create(container *AttachInput) (*AttachInput, error)

func (*AttachInputClient) Delete

func (c *AttachInputClient) Delete(container *AttachInput) error

func (*AttachInputClient) List

func (*AttachInputClient) Update

func (c *AttachInputClient) Update(existing *AttachInput, updates interface{}) (*AttachInput, error)

type AttachInputCollection

type AttachInputCollection struct {
	Collection
	Data []AttachInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachInputCollection) Next

type AttachInputOperations

type AttachInputOperations interface {
	List(opts *ListOpts) (*AttachInputCollection, error)
	Create(opts *AttachInput) (*AttachInput, error)
	Update(existing *AttachInput, updates interface{}) (*AttachInput, error)
	ById(id string) (*AttachInput, error)
	Delete(container *AttachInput) error
}

type Attachment added in v1.5.0

type Attachment struct {
	Resource `yaml:"-"`

	AttachmentID string `json:"attachmentID,omitempty" yaml:"attachment_id,omitempty"`

	AttachmentType string `json:"attachmentType,omitempty" yaml:"attachment_type,omitempty"`

	Conditions []LonghornCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`

	NodeID string `json:"nodeID,omitempty" yaml:"node_id,omitempty"`

	Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`

	Satisfied bool `json:"satisfied,omitempty" yaml:"satisfied,omitempty"`
}

type AttachmentClient added in v1.5.0

type AttachmentClient struct {
	// contains filtered or unexported fields
}

func (*AttachmentClient) ById added in v1.5.0

func (c *AttachmentClient) ById(id string) (*Attachment, error)

func (*AttachmentClient) Create added in v1.5.0

func (c *AttachmentClient) Create(container *Attachment) (*Attachment, error)

func (*AttachmentClient) Delete added in v1.5.0

func (c *AttachmentClient) Delete(container *Attachment) error

func (*AttachmentClient) List added in v1.5.0

func (*AttachmentClient) Update added in v1.5.0

func (c *AttachmentClient) Update(existing *Attachment, updates interface{}) (*Attachment, error)

type AttachmentCollection added in v1.5.0

type AttachmentCollection struct {
	Collection
	Data []Attachment `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachmentCollection) Next added in v1.5.0

type AttachmentOperations added in v1.5.0

type AttachmentOperations interface {
	List(opts *ListOpts) (*AttachmentCollection, error)
	Create(opts *Attachment) (*Attachment, error)
	Update(existing *Attachment, updates interface{}) (*Attachment, error)
	ById(id string) (*Attachment, error)
	Delete(container *Attachment) error
}

type BackingImage added in v1.1.1

type BackingImage struct {
	Resource `yaml:"-"`

	CurrentChecksum string `json:"currentChecksum,omitempty" yaml:"current_checksum,omitempty"`

	DeletionTimestamp string `json:"deletionTimestamp,omitempty" yaml:"deletion_timestamp,omitempty"`

	DiskFileStatusMap map[string]BackingImageDiskFileStatus `json:"diskFileStatusMap,omitempty" yaml:"disk_file_status_map,omitempty"`

	ExpectedChecksum string `json:"expectedChecksum,omitempty" yaml:"expected_checksum,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`

	Size int64 `json:"size,omitempty" yaml:"size,omitempty"`

	SourceType string `json:"sourceType,omitempty" yaml:"source_type,omitempty"`

	Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}

type BackingImageCleanupInput added in v1.1.1

type BackingImageCleanupInput struct {
	Resource `yaml:"-"`

	Disks []string `json:"disks,omitempty" yaml:"disks,omitempty"`
}

type BackingImageCleanupInputClient added in v1.1.1

type BackingImageCleanupInputClient struct {
	// contains filtered or unexported fields
}

func (*BackingImageCleanupInputClient) ById added in v1.1.1

func (*BackingImageCleanupInputClient) Create added in v1.1.1

func (*BackingImageCleanupInputClient) Delete added in v1.1.1

func (*BackingImageCleanupInputClient) List added in v1.1.1

func (*BackingImageCleanupInputClient) Update added in v1.1.1

func (c *BackingImageCleanupInputClient) Update(existing *BackingImageCleanupInput, updates interface{}) (*BackingImageCleanupInput, error)

type BackingImageCleanupInputCollection added in v1.1.1

type BackingImageCleanupInputCollection struct {
	Collection
	Data []BackingImageCleanupInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageCleanupInputCollection) Next added in v1.1.1

type BackingImageCleanupInputOperations added in v1.1.1

type BackingImageCleanupInputOperations interface {
	List(opts *ListOpts) (*BackingImageCleanupInputCollection, error)
	Create(opts *BackingImageCleanupInput) (*BackingImageCleanupInput, error)
	Update(existing *BackingImageCleanupInput, updates interface{}) (*BackingImageCleanupInput, error)
	ById(id string) (*BackingImageCleanupInput, error)
	Delete(container *BackingImageCleanupInput) error
}

type BackingImageClient added in v1.1.1

type BackingImageClient struct {
	// contains filtered or unexported fields
}

func (*BackingImageClient) ActionBackingImageCleanup added in v1.1.1

func (c *BackingImageClient) ActionBackingImageCleanup(resource *BackingImage, input *BackingImageCleanupInput) (*BackingImage, error)

func (*BackingImageClient) ById added in v1.1.1

func (c *BackingImageClient) ById(id string) (*BackingImage, error)

func (*BackingImageClient) Create added in v1.1.1

func (c *BackingImageClient) Create(container *BackingImage) (*BackingImage, error)

func (*BackingImageClient) Delete added in v1.1.1

func (c *BackingImageClient) Delete(container *BackingImage) error

func (*BackingImageClient) List added in v1.1.1

func (*BackingImageClient) Update added in v1.1.1

func (c *BackingImageClient) Update(existing *BackingImage, updates interface{}) (*BackingImage, error)

type BackingImageCollection added in v1.1.1

type BackingImageCollection struct {
	Collection
	Data []BackingImage `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageCollection) Next added in v1.1.1

type BackingImageDiskFileStatus added in v1.2.0

type BackingImageDiskFileStatus struct {
	Resource `yaml:"-"`

	LastStateTransitionTime string `json:"lastStateTransitionTime,omitempty" yaml:"last_state_transition_time,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type BackingImageDiskFileStatusClient added in v1.2.0

type BackingImageDiskFileStatusClient struct {
	// contains filtered or unexported fields
}

func (*BackingImageDiskFileStatusClient) ById added in v1.2.0

func (*BackingImageDiskFileStatusClient) Create added in v1.2.0

func (*BackingImageDiskFileStatusClient) Delete added in v1.2.0

func (*BackingImageDiskFileStatusClient) List added in v1.2.0

func (*BackingImageDiskFileStatusClient) Update added in v1.2.0

type BackingImageDiskFileStatusCollection added in v1.2.0

type BackingImageDiskFileStatusCollection struct {
	Collection
	Data []BackingImageDiskFileStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageDiskFileStatusCollection) Next added in v1.2.0

type BackingImageDiskFileStatusOperations added in v1.2.0

type BackingImageDiskFileStatusOperations interface {
	List(opts *ListOpts) (*BackingImageDiskFileStatusCollection, error)
	Create(opts *BackingImageDiskFileStatus) (*BackingImageDiskFileStatus, error)
	Update(existing *BackingImageDiskFileStatus, updates interface{}) (*BackingImageDiskFileStatus, error)
	ById(id string) (*BackingImageDiskFileStatus, error)
	Delete(container *BackingImageDiskFileStatus) error
}

type BackingImageOperations added in v1.1.1

type BackingImageOperations interface {
	List(opts *ListOpts) (*BackingImageCollection, error)
	Create(opts *BackingImage) (*BackingImage, error)
	Update(existing *BackingImage, updates interface{}) (*BackingImage, error)
	ById(id string) (*BackingImage, error)
	Delete(container *BackingImage) error

	ActionBackingImageCleanup(*BackingImage, *BackingImageCleanupInput) (*BackingImage, error)
}

type Backup

type Backup struct {
	Resource `yaml:"-"`

	CompressionMethod string `json:"compressionMethod,omitempty" yaml:"compression_method,omitempty"`

	Created string `json:"created,omitempty" yaml:"created,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	Messages map[string]string `json:"messages,omitempty" yaml:"messages,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	SnapshotCreated string `json:"snapshotCreated,omitempty" yaml:"snapshot_created,omitempty"`

	SnapshotName string `json:"snapshotName,omitempty" yaml:"snapshot_name,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`

	Url string `json:"url,omitempty" yaml:"url,omitempty"`

	VolumeBackingImageName string `json:"volumeBackingImageName,omitempty" yaml:"volume_backing_image_name,omitempty"`

	VolumeCreated string `json:"volumeCreated,omitempty" yaml:"volume_created,omitempty"`

	VolumeName string `json:"volumeName,omitempty" yaml:"volume_name,omitempty"`

	VolumeSize string `json:"volumeSize,omitempty" yaml:"volume_size,omitempty"`
}

type BackupClient

type BackupClient struct {
	// contains filtered or unexported fields
}

func (*BackupClient) ById

func (c *BackupClient) ById(id string) (*Backup, error)

func (*BackupClient) Create

func (c *BackupClient) Create(container *Backup) (*Backup, error)

func (*BackupClient) Delete

func (c *BackupClient) Delete(container *Backup) error

func (*BackupClient) List

func (c *BackupClient) List(opts *ListOpts) (*BackupCollection, error)

func (*BackupClient) Update

func (c *BackupClient) Update(existing *Backup, updates interface{}) (*Backup, error)

type BackupCollection

type BackupCollection struct {
	Collection
	Data []Backup `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupCollection) Next

func (cc *BackupCollection) Next() (*BackupCollection, error)

type BackupInput

type BackupInput struct {
	Resource `yaml:"-"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type BackupInputClient

type BackupInputClient struct {
	// contains filtered or unexported fields
}

func (*BackupInputClient) ById

func (c *BackupInputClient) ById(id string) (*BackupInput, error)

func (*BackupInputClient) Create

func (c *BackupInputClient) Create(container *BackupInput) (*BackupInput, error)

func (*BackupInputClient) Delete

func (c *BackupInputClient) Delete(container *BackupInput) error

func (*BackupInputClient) List

func (*BackupInputClient) Update

func (c *BackupInputClient) Update(existing *BackupInput, updates interface{}) (*BackupInput, error)

type BackupInputCollection

type BackupInputCollection struct {
	Collection
	Data []BackupInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupInputCollection) Next

type BackupInputOperations

type BackupInputOperations interface {
	List(opts *ListOpts) (*BackupInputCollection, error)
	Create(opts *BackupInput) (*BackupInput, error)
	Update(existing *BackupInput, updates interface{}) (*BackupInput, error)
	ById(id string) (*BackupInput, error)
	Delete(container *BackupInput) error
}

type BackupListOutput added in v1.0.1

type BackupListOutput struct {
	Resource `yaml:"-"`

	Data []Backup `json:"data,omitempty" yaml:"data,omitempty"`
}

type BackupListOutputClient added in v1.0.1

type BackupListOutputClient struct {
	// contains filtered or unexported fields
}

func (*BackupListOutputClient) ById added in v1.0.1

func (*BackupListOutputClient) Create added in v1.0.1

func (*BackupListOutputClient) Delete added in v1.0.1

func (c *BackupListOutputClient) Delete(container *BackupListOutput) error

func (*BackupListOutputClient) List added in v1.0.1

func (*BackupListOutputClient) Update added in v1.0.1

func (c *BackupListOutputClient) Update(existing *BackupListOutput, updates interface{}) (*BackupListOutput, error)

type BackupListOutputCollection added in v1.0.1

type BackupListOutputCollection struct {
	Collection
	Data []BackupListOutput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupListOutputCollection) Next added in v1.0.1

type BackupListOutputOperations added in v1.0.1

type BackupListOutputOperations interface {
	List(opts *ListOpts) (*BackupListOutputCollection, error)
	Create(opts *BackupListOutput) (*BackupListOutput, error)
	Update(existing *BackupListOutput, updates interface{}) (*BackupListOutput, error)
	ById(id string) (*BackupListOutput, error)
	Delete(container *BackupListOutput) error
}

type BackupOperations

type BackupOperations interface {
	List(opts *ListOpts) (*BackupCollection, error)
	Create(opts *Backup) (*Backup, error)
	Update(existing *Backup, updates interface{}) (*Backup, error)
	ById(id string) (*Backup, error)
	Delete(container *Backup) error
}

type BackupStatus added in v0.6.0

type BackupStatus struct {
	Resource `yaml:"-"`

	BackupURL string `json:"backupURL,omitempty" yaml:"backup_url,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	Replica string `json:"replica,omitempty" yaml:"replica,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	Snapshot string `json:"snapshot,omitempty" yaml:"snapshot,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type BackupStatusClient added in v0.6.0

type BackupStatusClient struct {
	// contains filtered or unexported fields
}

func (*BackupStatusClient) ById added in v0.6.0

func (c *BackupStatusClient) ById(id string) (*BackupStatus, error)

func (*BackupStatusClient) Create added in v0.6.0

func (c *BackupStatusClient) Create(container *BackupStatus) (*BackupStatus, error)

func (*BackupStatusClient) Delete added in v0.6.0

func (c *BackupStatusClient) Delete(container *BackupStatus) error

func (*BackupStatusClient) List added in v0.6.0

func (*BackupStatusClient) Update added in v0.6.0

func (c *BackupStatusClient) Update(existing *BackupStatus, updates interface{}) (*BackupStatus, error)

type BackupStatusCollection added in v0.6.0

type BackupStatusCollection struct {
	Collection
	Data []BackupStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupStatusCollection) Next added in v0.6.0

type BackupStatusOperations added in v0.6.0

type BackupStatusOperations interface {
	List(opts *ListOpts) (*BackupStatusCollection, error)
	Create(opts *BackupStatus) (*BackupStatus, error)
	Update(existing *BackupStatus, updates interface{}) (*BackupStatus, error)
	ById(id string) (*BackupStatus, error)
	Delete(container *BackupStatus) error
}

type BackupTarget added in v1.2.0

type BackupTarget struct {
	Resource `yaml:"-"`

	Available bool `json:"available,omitempty" yaml:"available,omitempty"`

	BackupTargetURL string `json:"backupTargetURL,omitempty" yaml:"backup_target_url,omitempty"`

	CredentialSecret string `json:"credentialSecret,omitempty" yaml:"credential_secret,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	PollInterval string `json:"pollInterval,omitempty" yaml:"poll_interval,omitempty"`
}

type BackupTargetClient added in v1.2.0

type BackupTargetClient struct {
	// contains filtered or unexported fields
}

func (*BackupTargetClient) ById added in v1.2.0

func (c *BackupTargetClient) ById(id string) (*BackupTarget, error)

func (*BackupTargetClient) Create added in v1.2.0

func (c *BackupTargetClient) Create(container *BackupTarget) (*BackupTarget, error)

func (*BackupTargetClient) Delete added in v1.2.0

func (c *BackupTargetClient) Delete(container *BackupTarget) error

func (*BackupTargetClient) List added in v1.2.0

func (*BackupTargetClient) Update added in v1.2.0

func (c *BackupTargetClient) Update(existing *BackupTarget, updates interface{}) (*BackupTarget, error)

type BackupTargetCollection added in v1.2.0

type BackupTargetCollection struct {
	Collection
	Data []BackupTarget `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupTargetCollection) Next added in v1.2.0

type BackupTargetOperations added in v1.2.0

type BackupTargetOperations interface {
	List(opts *ListOpts) (*BackupTargetCollection, error)
	Create(opts *BackupTarget) (*BackupTarget, error)
	Update(existing *BackupTarget, updates interface{}) (*BackupTarget, error)
	ById(id string) (*BackupTarget, error)
	Delete(container *BackupTarget) error
}

type BackupVolume

type BackupVolume struct {
	Resource `yaml:"-"`

	BackingImageChecksum string `json:"backingImageChecksum,omitempty" yaml:"backing_image_checksum,omitempty"`

	BackingImageName string `json:"backingImageName,omitempty" yaml:"backing_image_name,omitempty"`

	Created string `json:"created,omitempty" yaml:"created,omitempty"`

	DataStored string `json:"dataStored,omitempty" yaml:"data_stored,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	LastBackupAt string `json:"lastBackupAt,omitempty" yaml:"last_backup_at,omitempty"`

	LastBackupName string `json:"lastBackupName,omitempty" yaml:"last_backup_name,omitempty"`

	Messages map[string]string `json:"messages,omitempty" yaml:"messages,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	StorageClassName string `json:"storageClassName,omitempty" yaml:"storage_class_name,omitempty"`
}

type BackupVolumeClient

type BackupVolumeClient struct {
	// contains filtered or unexported fields
}

func (*BackupVolumeClient) ActionBackupDelete

func (c *BackupVolumeClient) ActionBackupDelete(resource *BackupVolume, input *BackupInput) (*BackupVolume, error)

func (*BackupVolumeClient) ActionBackupGet

func (c *BackupVolumeClient) ActionBackupGet(resource *BackupVolume, input *BackupInput) (*Backup, error)

func (*BackupVolumeClient) ActionBackupList added in v1.0.1

func (c *BackupVolumeClient) ActionBackupList(resource *BackupVolume) (*BackupListOutput, error)

func (*BackupVolumeClient) ById

func (c *BackupVolumeClient) ById(id string) (*BackupVolume, error)

func (*BackupVolumeClient) Create

func (c *BackupVolumeClient) Create(container *BackupVolume) (*BackupVolume, error)

func (*BackupVolumeClient) Delete

func (c *BackupVolumeClient) Delete(container *BackupVolume) error

func (*BackupVolumeClient) List

func (*BackupVolumeClient) Update

func (c *BackupVolumeClient) Update(existing *BackupVolume, updates interface{}) (*BackupVolume, error)

type BackupVolumeCollection

type BackupVolumeCollection struct {
	Collection
	Data []BackupVolume `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupVolumeCollection) Next

type BackupVolumeOperations

type BackupVolumeOperations interface {
	List(opts *ListOpts) (*BackupVolumeCollection, error)
	Create(opts *BackupVolume) (*BackupVolume, error)
	Update(existing *BackupVolume, updates interface{}) (*BackupVolume, error)
	ById(id string) (*BackupVolume, error)
	Delete(container *BackupVolume) error

	ActionBackupDelete(*BackupVolume, *BackupInput) (*BackupVolume, error)

	ActionBackupGet(*BackupVolume, *BackupInput) (*Backup, error)

	ActionBackupList(*BackupVolume) (*BackupListOutput, error)
}

type ClientOpts

type ClientOpts struct {
	Url       string
	AccessKey string
	SecretKey string
	Timeout   time.Duration
}

type CloneStatus added in v1.2.0

type CloneStatus struct {
	Resource `yaml:"-"`

	Snapshot string `json:"snapshot,omitempty" yaml:"snapshot,omitempty"`

	SourceVolume string `json:"sourceVolume,omitempty" yaml:"source_volume,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type CloneStatusClient added in v1.2.0

type CloneStatusClient struct {
	// contains filtered or unexported fields
}

func (*CloneStatusClient) ById added in v1.2.0

func (c *CloneStatusClient) ById(id string) (*CloneStatus, error)

func (*CloneStatusClient) Create added in v1.2.0

func (c *CloneStatusClient) Create(container *CloneStatus) (*CloneStatus, error)

func (*CloneStatusClient) Delete added in v1.2.0

func (c *CloneStatusClient) Delete(container *CloneStatus) error

func (*CloneStatusClient) List added in v1.2.0

func (*CloneStatusClient) Update added in v1.2.0

func (c *CloneStatusClient) Update(existing *CloneStatus, updates interface{}) (*CloneStatus, error)

type CloneStatusCollection added in v1.2.0

type CloneStatusCollection struct {
	Collection
	Data []CloneStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CloneStatusCollection) Next added in v1.2.0

type CloneStatusOperations added in v1.2.0

type CloneStatusOperations interface {
	List(opts *ListOpts) (*CloneStatusCollection, error)
	Create(opts *CloneStatus) (*CloneStatus, error)
	Update(existing *CloneStatus, updates interface{}) (*CloneStatus, error)
	ById(id string) (*CloneStatus, error)
	Delete(container *CloneStatus) error
}

type Collection

type Collection struct {
	Type         string                 `json:"type,omitempty"`
	ResourceType string                 `json:"resourceType,omitempty"`
	Links        map[string]string      `json:"links,omitempty"`
	CreateTypes  map[string]string      `json:"createTypes,omitempty"`
	Actions      map[string]string      `json:"actions,omitempty"`
	SortLinks    map[string]string      `json:"sortLinks,omitempty"`
	Pagination   *Pagination            `json:"pagination,omitempty"`
	Sort         *Sort                  `json:"sort,omitempty"`
	Filters      map[string][]Condition `json:"filters,omitempty"`
}

type Condition

type Condition struct {
	Modifier string      `json:"modifier,omitempty"`
	Value    interface{} `json:"value,omitempty"`
}

type Controller

type Controller struct {
	Resource `yaml:"-"`

	ActualSize string `json:"actualSize,omitempty" yaml:"actual_size,omitempty"`

	Address string `json:"address,omitempty" yaml:"address,omitempty"`

	CurrentImage string `json:"currentImage,omitempty" yaml:"current_image,omitempty"`

	Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`

	HostId string `json:"hostId,omitempty" yaml:"host_id,omitempty"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`

	InstanceManagerName string `json:"instanceManagerName,omitempty" yaml:"instance_manager_name,omitempty"`

	IsExpanding bool `json:"isExpanding,omitempty" yaml:"is_expanding,omitempty"`

	LastExpansionError string `json:"lastExpansionError,omitempty" yaml:"last_expansion_error,omitempty"`

	LastExpansionFailedAt string `json:"lastExpansionFailedAt,omitempty" yaml:"last_expansion_failed_at,omitempty"`

	LastRestoredBackup string `json:"lastRestoredBackup,omitempty" yaml:"last_restored_backup,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	RequestedBackupRestore string `json:"requestedBackupRestore,omitempty" yaml:"requested_backup_restore,omitempty"`

	Running bool `json:"running,omitempty" yaml:"running,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	UnmapMarkSnapChainRemovedEnabled bool `json:"unmapMarkSnapChainRemovedEnabled,omitempty" yaml:"unmap_mark_snap_chain_removed_enabled,omitempty"`
}

type ControllerClient

type ControllerClient struct {
	// contains filtered or unexported fields
}

func (*ControllerClient) ById

func (c *ControllerClient) ById(id string) (*Controller, error)

func (*ControllerClient) Create

func (c *ControllerClient) Create(container *Controller) (*Controller, error)

func (*ControllerClient) Delete

func (c *ControllerClient) Delete(container *Controller) error

func (*ControllerClient) List

func (*ControllerClient) Update

func (c *ControllerClient) Update(existing *Controller, updates interface{}) (*Controller, error)

type ControllerCollection

type ControllerCollection struct {
	Collection
	Data []Controller `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerCollection) Next

type ControllerOperations

type ControllerOperations interface {
	List(opts *ListOpts) (*ControllerCollection, error)
	Create(opts *Controller) (*Controller, error)
	Update(existing *Controller, updates interface{}) (*Controller, error)
	ById(id string) (*Controller, error)
	Delete(container *Controller) error
}

type DetachInput added in v1.1.1

type DetachInput struct {
	Resource `yaml:"-"`

	AttachmentID string `json:"attachmentID,omitempty" yaml:"attachment_id,omitempty"`

	ForceDetach bool `json:"forceDetach,omitempty" yaml:"force_detach,omitempty"`

	HostId string `json:"hostId,omitempty" yaml:"host_id,omitempty"`
}

type DetachInputClient added in v1.1.1

type DetachInputClient struct {
	// contains filtered or unexported fields
}

func (*DetachInputClient) ById added in v1.1.1

func (c *DetachInputClient) ById(id string) (*DetachInput, error)

func (*DetachInputClient) Create added in v1.1.1

func (c *DetachInputClient) Create(container *DetachInput) (*DetachInput, error)

func (*DetachInputClient) Delete added in v1.1.1

func (c *DetachInputClient) Delete(container *DetachInput) error

func (*DetachInputClient) List added in v1.1.1

func (*DetachInputClient) Update added in v1.1.1

func (c *DetachInputClient) Update(existing *DetachInput, updates interface{}) (*DetachInput, error)

type DetachInputCollection added in v1.1.1

type DetachInputCollection struct {
	Collection
	Data []DetachInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DetachInputCollection) Next added in v1.1.1

type DetachInputOperations added in v1.1.1

type DetachInputOperations interface {
	List(opts *ListOpts) (*DetachInputCollection, error)
	Create(opts *DetachInput) (*DetachInput, error)
	Update(existing *DetachInput, updates interface{}) (*DetachInput, error)
	ById(id string) (*DetachInput, error)
	Delete(container *DetachInput) error
}

type DiskCondition

type DiskCondition struct {
	Resource `yaml:"-"`

	LastProbeTime string `json:"lastProbeTime,omitempty" yaml:"last_probe_time,omitempty"`

	LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"last_transition_time,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`

	Status string `json:"status,omitempty" yaml:"status,omitempty"`
}

type DiskConditionClient

type DiskConditionClient struct {
	// contains filtered or unexported fields
}

func (*DiskConditionClient) ById

func (*DiskConditionClient) Create

func (c *DiskConditionClient) Create(container *DiskCondition) (*DiskCondition, error)

func (*DiskConditionClient) Delete

func (c *DiskConditionClient) Delete(container *DiskCondition) error

func (*DiskConditionClient) List

func (*DiskConditionClient) Update

func (c *DiskConditionClient) Update(existing *DiskCondition, updates interface{}) (*DiskCondition, error)

type DiskConditionCollection

type DiskConditionCollection struct {
	Collection
	Data []DiskCondition `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskConditionCollection) Next

type DiskConditionOperations

type DiskConditionOperations interface {
	List(opts *ListOpts) (*DiskConditionCollection, error)
	Create(opts *DiskCondition) (*DiskCondition, error)
	Update(existing *DiskCondition, updates interface{}) (*DiskCondition, error)
	ById(id string) (*DiskCondition, error)
	Delete(container *DiskCondition) error
}

type DiskInfo

type DiskInfo struct {
	Resource `yaml:"-"`

	AllowScheduling bool `json:"allowScheduling,omitempty" yaml:"allow_scheduling,omitempty"`

	Conditions map[string]interface{} `json:"conditions,omitempty" yaml:"conditions,omitempty"`

	DiskType string `json:"diskType,omitempty" yaml:"disk_type,omitempty"`

	DiskUUID string `json:"diskUUID,omitempty" yaml:"disk_uuid,omitempty"`

	EvictionRequested bool `json:"evictionRequested,omitempty" yaml:"eviction_requested,omitempty"`

	Path string `json:"path,omitempty" yaml:"path,omitempty"`

	ScheduledReplica map[string]string `json:"scheduledReplica,omitempty" yaml:"scheduled_replica,omitempty"`

	StorageAvailable int64 `json:"storageAvailable,omitempty" yaml:"storage_available,omitempty"`

	StorageMaximum int64 `json:"storageMaximum,omitempty" yaml:"storage_maximum,omitempty"`

	StorageReserved int64 `json:"storageReserved,omitempty" yaml:"storage_reserved,omitempty"`

	StorageScheduled int64 `json:"storageScheduled,omitempty" yaml:"storage_scheduled,omitempty"`

	Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
}

type DiskInfoClient

type DiskInfoClient struct {
	// contains filtered or unexported fields
}

func (*DiskInfoClient) ById

func (c *DiskInfoClient) ById(id string) (*DiskInfo, error)

func (*DiskInfoClient) Create

func (c *DiskInfoClient) Create(container *DiskInfo) (*DiskInfo, error)

func (*DiskInfoClient) Delete

func (c *DiskInfoClient) Delete(container *DiskInfo) error

func (*DiskInfoClient) List

func (c *DiskInfoClient) List(opts *ListOpts) (*DiskInfoCollection, error)

func (*DiskInfoClient) Update

func (c *DiskInfoClient) Update(existing *DiskInfo, updates interface{}) (*DiskInfo, error)

type DiskInfoCollection

type DiskInfoCollection struct {
	Collection
	Data []DiskInfo `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskInfoCollection) Next

type DiskInfoOperations

type DiskInfoOperations interface {
	List(opts *ListOpts) (*DiskInfoCollection, error)
	Create(opts *DiskInfo) (*DiskInfo, error)
	Update(existing *DiskInfo, updates interface{}) (*DiskInfo, error)
	ById(id string) (*DiskInfo, error)
	Delete(container *DiskInfo) error
}

type DiskUpdate

type DiskUpdate struct {
	Resource `yaml:"-"`

	AllowScheduling bool `json:"allowScheduling,omitempty" yaml:"allow_scheduling,omitempty"`

	DiskType string `json:"diskType,omitempty" yaml:"disk_type,omitempty"`

	EvictionRequested bool `json:"evictionRequested,omitempty" yaml:"eviction_requested,omitempty"`

	Path string `json:"path,omitempty" yaml:"path,omitempty"`

	StorageReserved int64 `json:"storageReserved,omitempty" yaml:"storage_reserved,omitempty"`

	Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
}

type DiskUpdateClient

type DiskUpdateClient struct {
	// contains filtered or unexported fields
}

func (*DiskUpdateClient) ById

func (c *DiskUpdateClient) ById(id string) (*DiskUpdate, error)

func (*DiskUpdateClient) Create

func (c *DiskUpdateClient) Create(container *DiskUpdate) (*DiskUpdate, error)

func (*DiskUpdateClient) Delete

func (c *DiskUpdateClient) Delete(container *DiskUpdate) error

func (*DiskUpdateClient) List

func (*DiskUpdateClient) Update

func (c *DiskUpdateClient) Update(existing *DiskUpdate, updates interface{}) (*DiskUpdate, error)

type DiskUpdateCollection

type DiskUpdateCollection struct {
	Collection
	Data []DiskUpdate `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskUpdateCollection) Next

type DiskUpdateInput

type DiskUpdateInput struct {
	Resource `yaml:"-"`

	Disks []DiskUpdate `json:"disks,omitempty" yaml:"disks,omitempty"`
}

type DiskUpdateInputClient

type DiskUpdateInputClient struct {
	// contains filtered or unexported fields
}

func (*DiskUpdateInputClient) ById

func (*DiskUpdateInputClient) Create

func (c *DiskUpdateInputClient) Create(container *DiskUpdateInput) (*DiskUpdateInput, error)

func (*DiskUpdateInputClient) Delete

func (c *DiskUpdateInputClient) Delete(container *DiskUpdateInput) error

func (*DiskUpdateInputClient) List

func (*DiskUpdateInputClient) Update

func (c *DiskUpdateInputClient) Update(existing *DiskUpdateInput, updates interface{}) (*DiskUpdateInput, error)

type DiskUpdateInputCollection

type DiskUpdateInputCollection struct {
	Collection
	Data []DiskUpdateInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskUpdateInputCollection) Next

type DiskUpdateInputOperations

type DiskUpdateInputOperations interface {
	List(opts *ListOpts) (*DiskUpdateInputCollection, error)
	Create(opts *DiskUpdateInput) (*DiskUpdateInput, error)
	Update(existing *DiskUpdateInput, updates interface{}) (*DiskUpdateInput, error)
	ById(id string) (*DiskUpdateInput, error)
	Delete(container *DiskUpdateInput) error
}

type DiskUpdateOperations

type DiskUpdateOperations interface {
	List(opts *ListOpts) (*DiskUpdateCollection, error)
	Create(opts *DiskUpdate) (*DiskUpdate, error)
	Update(existing *DiskUpdate, updates interface{}) (*DiskUpdate, error)
	ById(id string) (*DiskUpdate, error)
	Delete(container *DiskUpdate) error
}

type Empty added in v1.5.0

type Empty struct {
	Resource `yaml:"-"`
}

type EmptyClient added in v1.5.0

type EmptyClient struct {
	// contains filtered or unexported fields
}

func (*EmptyClient) ById added in v1.5.0

func (c *EmptyClient) ById(id string) (*Empty, error)

func (*EmptyClient) Create added in v1.5.0

func (c *EmptyClient) Create(container *Empty) (*Empty, error)

func (*EmptyClient) Delete added in v1.5.0

func (c *EmptyClient) Delete(container *Empty) error

func (*EmptyClient) List added in v1.5.0

func (c *EmptyClient) List(opts *ListOpts) (*EmptyCollection, error)

func (*EmptyClient) Update added in v1.5.0

func (c *EmptyClient) Update(existing *Empty, updates interface{}) (*Empty, error)

type EmptyCollection added in v1.5.0

type EmptyCollection struct {
	Collection
	Data []Empty `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EmptyCollection) Next added in v1.5.0

func (cc *EmptyCollection) Next() (*EmptyCollection, error)

type EmptyOperations added in v1.5.0

type EmptyOperations interface {
	List(opts *ListOpts) (*EmptyCollection, error)
	Create(opts *Empty) (*Empty, error)
	Update(existing *Empty, updates interface{}) (*Empty, error)
	ById(id string) (*Empty, error)
	Delete(container *Empty) error
}

type EngineImage

type EngineImage struct {
	Resource `yaml:"-"`

	BuildDate string `json:"buildDate,omitempty" yaml:"build_date,omitempty"`

	CliAPIMinVersion int64 `json:"cliAPIMinVersion,omitempty" yaml:"cli_apimin_version,omitempty"`

	CliAPIVersion int64 `json:"cliAPIVersion,omitempty" yaml:"cli_apiversion,omitempty"`

	Conditions []string `json:"conditions,omitempty" yaml:"conditions,omitempty"`

	ControllerAPIMinVersion int64 `json:"controllerAPIMinVersion,omitempty" yaml:"controller_apimin_version,omitempty"`

	ControllerAPIVersion int64 `json:"controllerAPIVersion,omitempty" yaml:"controller_apiversion,omitempty"`

	DataFormatMinVersion int64 `json:"dataFormatMinVersion,omitempty" yaml:"data_format_min_version,omitempty"`

	DataFormatVersion int64 `json:"dataFormatVersion,omitempty" yaml:"data_format_version,omitempty"`

	Default bool `json:"default,omitempty" yaml:"default,omitempty"`

	GitCommit string `json:"gitCommit,omitempty" yaml:"git_commit,omitempty"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	NoRefSince string `json:"noRefSince,omitempty" yaml:"no_ref_since,omitempty"`

	NodeDeploymentMap map[string]bool `json:"nodeDeploymentMap,omitempty" yaml:"node_deployment_map,omitempty"`

	OwnerID string `json:"ownerID,omitempty" yaml:"owner_id,omitempty"`

	RefCount int64 `json:"refCount,omitempty" yaml:"ref_count,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`

	Version string `json:"version,omitempty" yaml:"version,omitempty"`
}

type EngineImageClient

type EngineImageClient struct {
	// contains filtered or unexported fields
}

func (*EngineImageClient) ById

func (c *EngineImageClient) ById(id string) (*EngineImage, error)

func (*EngineImageClient) Create

func (c *EngineImageClient) Create(container *EngineImage) (*EngineImage, error)

func (*EngineImageClient) Delete

func (c *EngineImageClient) Delete(container *EngineImage) error

func (*EngineImageClient) List

func (*EngineImageClient) Update

func (c *EngineImageClient) Update(existing *EngineImage, updates interface{}) (*EngineImage, error)

type EngineImageCollection

type EngineImageCollection struct {
	Collection
	Data []EngineImage `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EngineImageCollection) Next

type EngineImageOperations

type EngineImageOperations interface {
	List(opts *ListOpts) (*EngineImageCollection, error)
	Create(opts *EngineImage) (*EngineImage, error)
	Update(existing *EngineImage, updates interface{}) (*EngineImage, error)
	ById(id string) (*EngineImage, error)
	Delete(container *EngineImage) error
}

type EngineUpgradeInput

type EngineUpgradeInput struct {
	Resource `yaml:"-"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`
}

type EngineUpgradeInputClient

type EngineUpgradeInputClient struct {
	// contains filtered or unexported fields
}

func (*EngineUpgradeInputClient) ById

func (*EngineUpgradeInputClient) Create

func (*EngineUpgradeInputClient) Delete

func (c *EngineUpgradeInputClient) Delete(container *EngineUpgradeInput) error

func (*EngineUpgradeInputClient) List

func (*EngineUpgradeInputClient) Update

func (c *EngineUpgradeInputClient) Update(existing *EngineUpgradeInput, updates interface{}) (*EngineUpgradeInput, error)

type EngineUpgradeInputCollection

type EngineUpgradeInputCollection struct {
	Collection
	Data []EngineUpgradeInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EngineUpgradeInputCollection) Next

type EngineUpgradeInputOperations

type EngineUpgradeInputOperations interface {
	List(opts *ListOpts) (*EngineUpgradeInputCollection, error)
	Create(opts *EngineUpgradeInput) (*EngineUpgradeInput, error)
	Update(existing *EngineUpgradeInput, updates interface{}) (*EngineUpgradeInput, error)
	ById(id string) (*EngineUpgradeInput, error)
	Delete(container *EngineUpgradeInput) error
}

type Error

type Error struct {
	Resource `yaml:"-"`

	Code string `json:"code,omitempty" yaml:"code,omitempty"`

	Detail string `json:"detail,omitempty" yaml:"detail,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Status int64 `json:"status,omitempty" yaml:"status,omitempty"`
}

type ErrorClient

type ErrorClient struct {
	// contains filtered or unexported fields
}

func (*ErrorClient) ById

func (c *ErrorClient) ById(id string) (*Error, error)

func (*ErrorClient) Create

func (c *ErrorClient) Create(container *Error) (*Error, error)

func (*ErrorClient) Delete

func (c *ErrorClient) Delete(container *Error) error

func (*ErrorClient) List

func (c *ErrorClient) List(opts *ListOpts) (*ErrorCollection, error)

func (*ErrorClient) Update

func (c *ErrorClient) Update(existing *Error, updates interface{}) (*Error, error)

type ErrorCollection

type ErrorCollection struct {
	Collection
	Data []Error `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorCollection) Next

func (cc *ErrorCollection) Next() (*ErrorCollection, error)

type ErrorOperations

type ErrorOperations interface {
	List(opts *ListOpts) (*ErrorCollection, error)
	Create(opts *Error) (*Error, error)
	Update(existing *Error, updates interface{}) (*Error, error)
	ById(id string) (*Error, error)
	Delete(container *Error) error
}

type ExpandInput added in v0.8.0

type ExpandInput struct {
	Resource `yaml:"-"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`
}

type ExpandInputClient added in v0.8.0

type ExpandInputClient struct {
	// contains filtered or unexported fields
}

func (*ExpandInputClient) ById added in v0.8.0

func (c *ExpandInputClient) ById(id string) (*ExpandInput, error)

func (*ExpandInputClient) Create added in v0.8.0

func (c *ExpandInputClient) Create(container *ExpandInput) (*ExpandInput, error)

func (*ExpandInputClient) Delete added in v0.8.0

func (c *ExpandInputClient) Delete(container *ExpandInput) error

func (*ExpandInputClient) List added in v0.8.0

func (*ExpandInputClient) Update added in v0.8.0

func (c *ExpandInputClient) Update(existing *ExpandInput, updates interface{}) (*ExpandInput, error)

type ExpandInputCollection added in v0.8.0

type ExpandInputCollection struct {
	Collection
	Data []ExpandInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpandInputCollection) Next added in v0.8.0

type ExpandInputOperations added in v0.8.0

type ExpandInputOperations interface {
	List(opts *ListOpts) (*ExpandInputCollection, error)
	Create(opts *ExpandInput) (*ExpandInput, error)
	Update(existing *ExpandInput, updates interface{}) (*ExpandInput, error)
	ById(id string) (*ExpandInput, error)
	Delete(container *ExpandInput) error
}

type Field

type Field struct {
	Type         string      `json:"type,omitempty"`
	Default      interface{} `json:"default,omitempty"`
	Unique       bool        `json:"unique,omitempty"`
	Nullable     bool        `json:"nullable,omitempty"`
	Create       bool        `json:"create,omitempty"`
	Required     bool        `json:"required,omitempty"`
	Update       bool        `json:"update,omitempty"`
	MinLength    *int64      `json:"minLength,omitempty"`
	MaxLength    *int64      `json:"maxLength,omitempty"`
	Min          *int64      `json:"min,omitempty"`
	Max          *int64      `json:"max,omitempty"`
	Options      []string    `json:"options,omitempty"`
	ValidChars   string      `json:"validChars,omitempty"`
	InvalidChars string      `json:"invalidChars,omitempty"`
	Description  string      `json:"description,omitempty"`
}

type Filter

type Filter struct {
	Modifiers []string `json:"modifiers,omitempty"`
}

type GenericCollection

type GenericCollection struct {
	Collection
	Data []interface{} `json:"data,omitempty"`
}

type InstanceManager added in v1.0.1

type InstanceManager struct {
	Resource `yaml:"-"`

	CurrentState string `json:"currentState,omitempty" yaml:"current_state,omitempty"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`

	InstanceEngines map[string]string `json:"instanceEngines,omitempty" yaml:"instance_engines,omitempty"`

	InstanceReplicas map[string]string `json:"instanceReplicas,omitempty" yaml:"instance_replicas,omitempty"`

	Instances map[string]string `json:"instances,omitempty" yaml:"instances,omitempty"`

	ManagerType string `json:"managerType,omitempty" yaml:"manager_type,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	NodeID string `json:"nodeID,omitempty" yaml:"node_id,omitempty"`
}

type InstanceManagerClient added in v1.0.1

type InstanceManagerClient struct {
	// contains filtered or unexported fields
}

func (*InstanceManagerClient) ById added in v1.0.1

func (*InstanceManagerClient) Create added in v1.0.1

func (c *InstanceManagerClient) Create(container *InstanceManager) (*InstanceManager, error)

func (*InstanceManagerClient) Delete added in v1.0.1

func (c *InstanceManagerClient) Delete(container *InstanceManager) error

func (*InstanceManagerClient) List added in v1.0.1

func (*InstanceManagerClient) Update added in v1.0.1

func (c *InstanceManagerClient) Update(existing *InstanceManager, updates interface{}) (*InstanceManager, error)

type InstanceManagerCollection added in v1.0.1

type InstanceManagerCollection struct {
	Collection
	Data []InstanceManager `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*InstanceManagerCollection) Next added in v1.0.1

type InstanceManagerOperations added in v1.0.1

type InstanceManagerOperations interface {
	List(opts *ListOpts) (*InstanceManagerCollection, error)
	Create(opts *InstanceManager) (*InstanceManager, error)
	Update(existing *InstanceManager, updates interface{}) (*InstanceManager, error)
	ById(id string) (*InstanceManager, error)
	Delete(container *InstanceManager) error
}

type KubernetesStatus added in v0.6.0

type KubernetesStatus struct {
	Resource `yaml:"-"`

	LastPVCRefAt string `json:"lastPVCRefAt,omitempty" yaml:"last_pvcref_at,omitempty"`

	LastPodRefAt string `json:"lastPodRefAt,omitempty" yaml:"last_pod_ref_at,omitempty"`

	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`

	PvName string `json:"pvName,omitempty" yaml:"pv_name,omitempty"`

	PvStatus string `json:"pvStatus,omitempty" yaml:"pv_status,omitempty"`

	PvcName string `json:"pvcName,omitempty" yaml:"pvc_name,omitempty"`

	WorkloadsStatus []WorkloadStatus `json:"workloadsStatus,omitempty" yaml:"workloads_status,omitempty"`
}

type KubernetesStatusClient added in v0.6.0

type KubernetesStatusClient struct {
	// contains filtered or unexported fields
}

func (*KubernetesStatusClient) ById added in v0.6.0

func (*KubernetesStatusClient) Create added in v0.6.0

func (*KubernetesStatusClient) Delete added in v0.6.0

func (c *KubernetesStatusClient) Delete(container *KubernetesStatus) error

func (*KubernetesStatusClient) List added in v0.6.0

func (*KubernetesStatusClient) Update added in v0.6.0

func (c *KubernetesStatusClient) Update(existing *KubernetesStatus, updates interface{}) (*KubernetesStatus, error)

type KubernetesStatusCollection added in v0.6.0

type KubernetesStatusCollection struct {
	Collection
	Data []KubernetesStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesStatusCollection) Next added in v0.6.0

type KubernetesStatusOperations added in v0.6.0

type KubernetesStatusOperations interface {
	List(opts *ListOpts) (*KubernetesStatusCollection, error)
	Create(opts *KubernetesStatus) (*KubernetesStatus, error)
	Update(existing *KubernetesStatus, updates interface{}) (*KubernetesStatus, error)
	ById(id string) (*KubernetesStatus, error)
	Delete(container *KubernetesStatus) error
}

type ListOpts

type ListOpts struct {
	Filters map[string]interface{}
}

func NewListOpts

func NewListOpts() *ListOpts

type LonghornCondition

type LonghornCondition struct {
	Resource `yaml:"-"`

	LastProbeTime string `json:"lastProbeTime,omitempty" yaml:"last_probe_time,omitempty"`

	LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"last_transition_time,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`

	Status string `json:"status,omitempty" yaml:"status,omitempty"`
}

type LonghornConditionClient

type LonghornConditionClient struct {
	// contains filtered or unexported fields
}

func (*LonghornConditionClient) ById

func (*LonghornConditionClient) Create

func (*LonghornConditionClient) Delete

func (c *LonghornConditionClient) Delete(container *LonghornCondition) error

func (*LonghornConditionClient) List

func (*LonghornConditionClient) Update

func (c *LonghornConditionClient) Update(existing *LonghornCondition, updates interface{}) (*LonghornCondition, error)

type LonghornConditionCollection

type LonghornConditionCollection struct {
	Collection
	Data []LonghornCondition `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LonghornConditionCollection) Next

type LonghornConditionOperations

type LonghornConditionOperations interface {
	List(opts *ListOpts) (*LonghornConditionCollection, error)
	Create(opts *LonghornCondition) (*LonghornCondition, error)
	Update(existing *LonghornCondition, updates interface{}) (*LonghornCondition, error)
	ById(id string) (*LonghornCondition, error)
	Delete(container *LonghornCondition) error
}

type Node

type Node struct {
	Resource `yaml:"-"`

	Address string `json:"address,omitempty" yaml:"address,omitempty"`

	AllowScheduling bool `json:"allowScheduling,omitempty" yaml:"allow_scheduling,omitempty"`

	AutoEvicting bool `json:"autoEvicting,omitempty" yaml:"auto_evicting,omitempty"`

	Conditions map[string]interface{} `json:"conditions,omitempty" yaml:"conditions,omitempty"`

	Disks map[string]interface{} `json:"disks,omitempty" yaml:"disks,omitempty"`

	EvictionRequested bool `json:"evictionRequested,omitempty" yaml:"eviction_requested,omitempty"`

	InstanceManagerCPURequest int64 `json:"instanceManagerCPURequest,omitempty" yaml:"instance_manager_cpurequest,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Region string `json:"region,omitempty" yaml:"region,omitempty"`

	Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`

	Zone string `json:"zone,omitempty" yaml:"zone,omitempty"`
}

type NodeClient

type NodeClient struct {
	// contains filtered or unexported fields
}

func (*NodeClient) ActionDiskUpdate

func (c *NodeClient) ActionDiskUpdate(resource *Node, input *DiskUpdateInput) (*Node, error)

func (*NodeClient) ById

func (c *NodeClient) ById(id string) (*Node, error)

func (*NodeClient) Create

func (c *NodeClient) Create(container *Node) (*Node, error)

func (*NodeClient) Delete

func (c *NodeClient) Delete(container *Node) error

func (*NodeClient) List

func (c *NodeClient) List(opts *ListOpts) (*NodeCollection, error)

func (*NodeClient) Update

func (c *NodeClient) Update(existing *Node, updates interface{}) (*Node, error)

type NodeCollection

type NodeCollection struct {
	Collection
	Data []Node `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeCollection) Next

func (cc *NodeCollection) Next() (*NodeCollection, error)

type NodeCondition

type NodeCondition struct {
	Resource `yaml:"-"`

	LastProbeTime string `json:"lastProbeTime,omitempty" yaml:"last_probe_time,omitempty"`

	LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"last_transition_time,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`

	Status string `json:"status,omitempty" yaml:"status,omitempty"`
}

type NodeConditionClient

type NodeConditionClient struct {
	// contains filtered or unexported fields
}

func (*NodeConditionClient) ById

func (*NodeConditionClient) Create

func (c *NodeConditionClient) Create(container *NodeCondition) (*NodeCondition, error)

func (*NodeConditionClient) Delete

func (c *NodeConditionClient) Delete(container *NodeCondition) error

func (*NodeConditionClient) List

func (*NodeConditionClient) Update

func (c *NodeConditionClient) Update(existing *NodeCondition, updates interface{}) (*NodeCondition, error)

type NodeConditionCollection

type NodeConditionCollection struct {
	Collection
	Data []NodeCondition `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeConditionCollection) Next

type NodeConditionOperations

type NodeConditionOperations interface {
	List(opts *ListOpts) (*NodeConditionCollection, error)
	Create(opts *NodeCondition) (*NodeCondition, error)
	Update(existing *NodeCondition, updates interface{}) (*NodeCondition, error)
	ById(id string) (*NodeCondition, error)
	Delete(container *NodeCondition) error
}

type NodeOperations

type NodeOperations interface {
	List(opts *ListOpts) (*NodeCollection, error)
	Create(opts *Node) (*Node, error)
	Update(existing *Node, updates interface{}) (*Node, error)
	ById(id string) (*Node, error)
	Delete(container *Node) error

	ActionDiskUpdate(*Node, *DiskUpdateInput) (*Node, error)
}

type Orphan added in v1.4.0

type Orphan struct {
	Resource `yaml:"-"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	NodeID string `json:"nodeID,omitempty" yaml:"node_id,omitempty"`

	OrphanType string `json:"orphanType,omitempty" yaml:"orphan_type,omitempty"`

	Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
}

type OrphanClient added in v1.4.0

type OrphanClient struct {
	// contains filtered or unexported fields
}

func (*OrphanClient) ById added in v1.4.0

func (c *OrphanClient) ById(id string) (*Orphan, error)

func (*OrphanClient) Create added in v1.4.0

func (c *OrphanClient) Create(container *Orphan) (*Orphan, error)

func (*OrphanClient) Delete added in v1.4.0

func (c *OrphanClient) Delete(container *Orphan) error

func (*OrphanClient) List added in v1.4.0

func (c *OrphanClient) List(opts *ListOpts) (*OrphanCollection, error)

func (*OrphanClient) Update added in v1.4.0

func (c *OrphanClient) Update(existing *Orphan, updates interface{}) (*Orphan, error)

type OrphanCollection added in v1.4.0

type OrphanCollection struct {
	Collection
	Data []Orphan `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*OrphanCollection) Next added in v1.4.0

func (cc *OrphanCollection) Next() (*OrphanCollection, error)

type OrphanOperations added in v1.4.0

type OrphanOperations interface {
	List(opts *ListOpts) (*OrphanCollection, error)
	Create(opts *Orphan) (*Orphan, error)
	Update(existing *Orphan, updates interface{}) (*Orphan, error)
	ById(id string) (*Orphan, error)
	Delete(container *Orphan) error
}

type PVCCreateInput added in v0.6.0

type PVCCreateInput struct {
	Resource `yaml:"-"`

	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`

	PvcName string `json:"pvcName,omitempty" yaml:"pvc_name,omitempty"`
}

type PVCCreateInputClient added in v0.6.0

type PVCCreateInputClient struct {
	// contains filtered or unexported fields
}

func (*PVCCreateInputClient) ById added in v0.6.0

func (*PVCCreateInputClient) Create added in v0.6.0

func (c *PVCCreateInputClient) Create(container *PVCCreateInput) (*PVCCreateInput, error)

func (*PVCCreateInputClient) Delete added in v0.6.0

func (c *PVCCreateInputClient) Delete(container *PVCCreateInput) error

func (*PVCCreateInputClient) List added in v0.6.0

func (*PVCCreateInputClient) Update added in v0.6.0

func (c *PVCCreateInputClient) Update(existing *PVCCreateInput, updates interface{}) (*PVCCreateInput, error)

type PVCCreateInputCollection added in v0.6.0

type PVCCreateInputCollection struct {
	Collection
	Data []PVCCreateInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PVCCreateInputCollection) Next added in v0.6.0

type PVCCreateInputOperations added in v0.6.0

type PVCCreateInputOperations interface {
	List(opts *ListOpts) (*PVCCreateInputCollection, error)
	Create(opts *PVCCreateInput) (*PVCCreateInput, error)
	Update(existing *PVCCreateInput, updates interface{}) (*PVCCreateInput, error)
	ById(id string) (*PVCCreateInput, error)
	Delete(container *PVCCreateInput) error
}

type PVCreateInput added in v0.6.0

type PVCreateInput struct {
	Resource `yaml:"-"`

	FsType string `json:"fsType,omitempty" yaml:"fs_type,omitempty"`

	PvName string `json:"pvName,omitempty" yaml:"pv_name,omitempty"`

	SecretName string `json:"secretName,omitempty" yaml:"secret_name,omitempty"`

	SecretNamespace string `json:"secretNamespace,omitempty" yaml:"secret_namespace,omitempty"`

	StorageClassName string `json:"storageClassName,omitempty" yaml:"storage_class_name,omitempty"`
}

type PVCreateInputClient added in v0.6.0

type PVCreateInputClient struct {
	// contains filtered or unexported fields
}

func (*PVCreateInputClient) ById added in v0.6.0

func (*PVCreateInputClient) Create added in v0.6.0

func (c *PVCreateInputClient) Create(container *PVCreateInput) (*PVCreateInput, error)

func (*PVCreateInputClient) Delete added in v0.6.0

func (c *PVCreateInputClient) Delete(container *PVCreateInput) error

func (*PVCreateInputClient) List added in v0.6.0

func (*PVCreateInputClient) Update added in v0.6.0

func (c *PVCreateInputClient) Update(existing *PVCreateInput, updates interface{}) (*PVCreateInput, error)

type PVCreateInputCollection added in v0.6.0

type PVCreateInputCollection struct {
	Collection
	Data []PVCreateInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PVCreateInputCollection) Next added in v0.6.0

type PVCreateInputOperations added in v0.6.0

type PVCreateInputOperations interface {
	List(opts *ListOpts) (*PVCreateInputCollection, error)
	Create(opts *PVCreateInput) (*PVCreateInput, error)
	Update(existing *PVCreateInput, updates interface{}) (*PVCreateInput, error)
	ById(id string) (*PVCreateInput, error)
	Delete(container *PVCreateInput) error
}

type Pagination

type Pagination struct {
	Marker   string `json:"marker,omitempty"`
	First    string `json:"first,omitempty"`
	Previous string `json:"previous,omitempty"`
	Next     string `json:"next,omitempty"`
	Limit    *int64 `json:"limit,omitempty"`
	Total    *int64 `json:"total,omitempty"`
	Partial  bool   `json:"partial,omitempty"`
}

type PurgeStatus added in v0.6.0

type PurgeStatus struct {
	Resource `yaml:"-"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	IsPurging bool `json:"isPurging,omitempty" yaml:"is_purging,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	Replica string `json:"replica,omitempty" yaml:"replica,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type PurgeStatusClient added in v0.6.0

type PurgeStatusClient struct {
	// contains filtered or unexported fields
}

func (*PurgeStatusClient) ById added in v0.6.0

func (c *PurgeStatusClient) ById(id string) (*PurgeStatus, error)

func (*PurgeStatusClient) Create added in v0.6.0

func (c *PurgeStatusClient) Create(container *PurgeStatus) (*PurgeStatus, error)

func (*PurgeStatusClient) Delete added in v0.6.0

func (c *PurgeStatusClient) Delete(container *PurgeStatus) error

func (*PurgeStatusClient) List added in v0.6.0

func (*PurgeStatusClient) Update added in v0.6.0

func (c *PurgeStatusClient) Update(existing *PurgeStatus, updates interface{}) (*PurgeStatus, error)

type PurgeStatusCollection added in v0.6.0

type PurgeStatusCollection struct {
	Collection
	Data []PurgeStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PurgeStatusCollection) Next added in v0.6.0

type PurgeStatusOperations added in v0.6.0

type PurgeStatusOperations interface {
	List(opts *ListOpts) (*PurgeStatusCollection, error)
	Create(opts *PurgeStatus) (*PurgeStatus, error)
	Update(existing *PurgeStatus, updates interface{}) (*PurgeStatus, error)
	ById(id string) (*PurgeStatus, error)
	Delete(container *PurgeStatus) error
}

type RancherBaseClient

type RancherBaseClient interface {
	Websocket(string, map[string][]string) (*websocket.Conn, *http.Response, error)
	List(string, *ListOpts, interface{}) error
	Post(string, interface{}, interface{}) error
	GetLink(Resource, string, interface{}) error
	Create(string, interface{}, interface{}) error
	Update(string, *Resource, interface{}, interface{}) error
	ById(string, string, interface{}) error
	Delete(*Resource) error
	Reload(*Resource, interface{}) error
	Action(string, string, *Resource, interface{}, interface{}) error
	GetOpts() *ClientOpts
	GetSchemas() *Schemas
	GetTypes() map[string]Schema
	// contains filtered or unexported methods
}

type RancherBaseClientImpl

type RancherBaseClientImpl struct {
	Opts    *ClientOpts
	Schemas *Schemas
	Types   map[string]Schema
}

func (*RancherBaseClientImpl) Action

func (rancherClient *RancherBaseClientImpl) Action(schemaType string, action string,
	existing *Resource, inputObject, respObject interface{}) error

func (*RancherBaseClientImpl) ById

func (rancherClient *RancherBaseClientImpl) ById(schemaType string, id string, respObject interface{}) error

func (*RancherBaseClientImpl) Create

func (rancherClient *RancherBaseClientImpl) Create(schemaType string, createObj interface{}, respObject interface{}) error

func (*RancherBaseClientImpl) Delete

func (rancherClient *RancherBaseClientImpl) Delete(existing *Resource) error
func (rancherClient *RancherBaseClientImpl) GetLink(resource Resource, link string, respObject interface{}) error

func (*RancherBaseClientImpl) GetOpts

func (rancherClient *RancherBaseClientImpl) GetOpts() *ClientOpts

func (*RancherBaseClientImpl) GetSchemas

func (rancherClient *RancherBaseClientImpl) GetSchemas() *Schemas

func (*RancherBaseClientImpl) GetTypes

func (rancherClient *RancherBaseClientImpl) GetTypes() map[string]Schema

func (*RancherBaseClientImpl) List

func (rancherClient *RancherBaseClientImpl) List(schemaType string, opts *ListOpts, respObject interface{}) error

func (*RancherBaseClientImpl) Post

func (rancherClient *RancherBaseClientImpl) Post(url string, createObj interface{}, respObject interface{}) error

func (*RancherBaseClientImpl) Reload

func (rancherClient *RancherBaseClientImpl) Reload(existing *Resource, output interface{}) error

func (*RancherBaseClientImpl) Update

func (rancherClient *RancherBaseClientImpl) Update(schemaType string, existing *Resource, updates interface{}, respObject interface{}) error

func (*RancherBaseClientImpl) Websocket

func (rancherClient *RancherBaseClientImpl) Websocket(url string, headers map[string][]string) (*websocket.Conn, *http.Response, error)

type RancherClient

type RancherClient struct {
	RancherBaseClient

	ApiVersion                             ApiVersionOperations
	Error                                  ErrorOperations
	AttachInput                            AttachInputOperations
	DetachInput                            DetachInputOperations
	SnapshotInput                          SnapshotInputOperations
	SnapshotCRInput                        SnapshotCRInputOperations
	BackupTarget                           BackupTargetOperations
	Backup                                 BackupOperations
	BackupInput                            BackupInputOperations
	BackupStatus                           BackupStatusOperations
	Orphan                                 OrphanOperations
	RestoreStatus                          RestoreStatusOperations
	PurgeStatus                            PurgeStatusOperations
	RebuildStatus                          RebuildStatusOperations
	ReplicaRemoveInput                     ReplicaRemoveInputOperations
	SalvageInput                           SalvageInputOperations
	ActivateInput                          ActivateInputOperations
	ExpandInput                            ExpandInputOperations
	EngineUpgradeInput                     EngineUpgradeInputOperations
	Replica                                ReplicaOperations
	Controller                             ControllerOperations
	DiskUpdate                             DiskUpdateOperations
	UpdateReplicaCountInput                UpdateReplicaCountInputOperations
	UpdateReplicaAutoBalanceInput          UpdateReplicaAutoBalanceInputOperations
	UpdateDataLocalityInput                UpdateDataLocalityInputOperations
	UpdateAccessModeInput                  UpdateAccessModeInputOperations
	UpdateSnapshotDataIntegrityInput       UpdateSnapshotDataIntegrityInputOperations
	UpdateSnapshotMaxCountInput            UpdateSnapshotMaxCountInputOperations
	UpdateSnapshotMaxSizeInput             UpdateSnapshotMaxSizeInputOperations
	UpdateOfflineReplicaRebuildingInput    UpdateOfflineReplicaRebuildingInputOperations
	UpdateBackupCompressionInput           UpdateBackupCompressionInputOperations
	UpdateUnmapMarkSnapChainRemovedInput   UpdateUnmapMarkSnapChainRemovedInputOperations
	UpdateReplicaSoftAntiAffinityInput     UpdateReplicaSoftAntiAffinityInputOperations
	UpdateReplicaZoneSoftAntiAffinityInput UpdateReplicaZoneSoftAntiAffinityInputOperations
	UpdateReplicaDiskSoftAntiAffinityInput UpdateReplicaDiskSoftAntiAffinityInputOperations
	WorkloadStatus                         WorkloadStatusOperations
	CloneStatus                            CloneStatusOperations
	Empty                                  EmptyOperations
	VolumeRecurringJob                     VolumeRecurringJobOperations
	VolumeRecurringJobInput                VolumeRecurringJobInputOperations
	PVCreateInput                          PVCreateInputOperations
	PVCCreateInput                         PVCCreateInputOperations
	SettingDefinition                      SettingDefinitionOperations
	VolumeCondition                        VolumeConditionOperations
	NodeCondition                          NodeConditionOperations
	DiskCondition                          DiskConditionOperations
	LonghornCondition                      LonghornConditionOperations
	SupportBundle                          SupportBundleOperations
	SupportBundleInitateInput              SupportBundleInitateInputOperations
	Tag                                    TagOperations
	InstanceManager                        InstanceManagerOperations
	BackingImageDiskFileStatus             BackingImageDiskFileStatusOperations
	BackingImageCleanupInput               BackingImageCleanupInputOperations
	Attachment                             AttachmentOperations
	VolumeAttachment                       VolumeAttachmentOperations
	Volume                                 VolumeOperations
	Snapshot                               SnapshotOperations
	SnapshotCR                             SnapshotCROperations
	BackupVolume                           BackupVolumeOperations
	Setting                                SettingOperations
	RecurringJob                           RecurringJobOperations
	EngineImage                            EngineImageOperations
	BackingImage                           BackingImageOperations
	Node                                   NodeOperations
	DiskUpdateInput                        DiskUpdateInputOperations
	DiskInfo                               DiskInfoOperations
	KubernetesStatus                       KubernetesStatusOperations
	BackupListOutput                       BackupListOutputOperations
	SnapshotListOutput                     SnapshotListOutputOperations
	SystemBackup                           SystemBackupOperations
	SystemRestore                          SystemRestoreOperations
	SnapshotCRListOutput                   SnapshotCRListOutputOperations
}

func NewRancherClient

func NewRancherClient(opts *ClientOpts) (*RancherClient, error)

type RebuildStatus added in v1.0.0

type RebuildStatus struct {
	Resource `yaml:"-"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	FromReplica string `json:"fromReplica,omitempty" yaml:"from_replica,omitempty"`

	IsRebuilding bool `json:"isRebuilding,omitempty" yaml:"is_rebuilding,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	Replica string `json:"replica,omitempty" yaml:"replica,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type RebuildStatusClient added in v1.0.0

type RebuildStatusClient struct {
	// contains filtered or unexported fields
}

func (*RebuildStatusClient) ById added in v1.0.0

func (*RebuildStatusClient) Create added in v1.0.0

func (c *RebuildStatusClient) Create(container *RebuildStatus) (*RebuildStatus, error)

func (*RebuildStatusClient) Delete added in v1.0.0

func (c *RebuildStatusClient) Delete(container *RebuildStatus) error

func (*RebuildStatusClient) List added in v1.0.0

func (*RebuildStatusClient) Update added in v1.0.0

func (c *RebuildStatusClient) Update(existing *RebuildStatus, updates interface{}) (*RebuildStatus, error)

type RebuildStatusCollection added in v1.0.0

type RebuildStatusCollection struct {
	Collection
	Data []RebuildStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RebuildStatusCollection) Next added in v1.0.0

type RebuildStatusOperations added in v1.0.0

type RebuildStatusOperations interface {
	List(opts *ListOpts) (*RebuildStatusCollection, error)
	Create(opts *RebuildStatus) (*RebuildStatus, error)
	Update(existing *RebuildStatus, updates interface{}) (*RebuildStatus, error)
	ById(id string) (*RebuildStatus, error)
	Delete(container *RebuildStatus) error
}

type RecurringJob

type RecurringJob struct {
	Resource `yaml:"-"`

	Concurrency int64 `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`

	Cron string `json:"cron,omitempty" yaml:"cron,omitempty"`

	Groups []string `json:"groups,omitempty" yaml:"groups,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Retain int64 `json:"retain,omitempty" yaml:"retain,omitempty"`

	Task string `json:"task,omitempty" yaml:"task,omitempty"`
}

type RecurringJobClient

type RecurringJobClient struct {
	// contains filtered or unexported fields
}

func (*RecurringJobClient) ById

func (c *RecurringJobClient) ById(id string) (*RecurringJob, error)

func (*RecurringJobClient) Create

func (c *RecurringJobClient) Create(container *RecurringJob) (*RecurringJob, error)

func (*RecurringJobClient) Delete

func (c *RecurringJobClient) Delete(container *RecurringJob) error

func (*RecurringJobClient) List

func (*RecurringJobClient) Update

func (c *RecurringJobClient) Update(existing *RecurringJob, updates interface{}) (*RecurringJob, error)

type RecurringJobCollection

type RecurringJobCollection struct {
	Collection
	Data []RecurringJob `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RecurringJobCollection) Next

type RecurringJobOperations

type RecurringJobOperations interface {
	List(opts *ListOpts) (*RecurringJobCollection, error)
	Create(opts *RecurringJob) (*RecurringJob, error)
	Update(existing *RecurringJob, updates interface{}) (*RecurringJob, error)
	ById(id string) (*RecurringJob, error)
	Delete(container *RecurringJob) error
}

type Replica

type Replica struct {
	Resource `yaml:"-"`

	Address string `json:"address,omitempty" yaml:"address,omitempty"`

	CurrentImage string `json:"currentImage,omitempty" yaml:"current_image,omitempty"`

	DataEngine string `json:"dataEngine,omitempty" yaml:"data_engine,omitempty"`

	DataPath string `json:"dataPath,omitempty" yaml:"data_path,omitempty"`

	DiskID string `json:"diskID,omitempty" yaml:"disk_id,omitempty"`

	DiskPath string `json:"diskPath,omitempty" yaml:"disk_path,omitempty"`

	FailedAt string `json:"failedAt,omitempty" yaml:"failed_at,omitempty"`

	HostId string `json:"hostId,omitempty" yaml:"host_id,omitempty"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`

	InstanceManagerName string `json:"instanceManagerName,omitempty" yaml:"instance_manager_name,omitempty"`

	Mode string `json:"mode,omitempty" yaml:"mode,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Running bool `json:"running,omitempty" yaml:"running,omitempty"`
}

type ReplicaClient

type ReplicaClient struct {
	// contains filtered or unexported fields
}

func (*ReplicaClient) ById

func (c *ReplicaClient) ById(id string) (*Replica, error)

func (*ReplicaClient) Create

func (c *ReplicaClient) Create(container *Replica) (*Replica, error)

func (*ReplicaClient) Delete

func (c *ReplicaClient) Delete(container *Replica) error

func (*ReplicaClient) List

func (c *ReplicaClient) List(opts *ListOpts) (*ReplicaCollection, error)

func (*ReplicaClient) Update

func (c *ReplicaClient) Update(existing *Replica, updates interface{}) (*Replica, error)

type ReplicaCollection

type ReplicaCollection struct {
	Collection
	Data []Replica `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicaCollection) Next

func (cc *ReplicaCollection) Next() (*ReplicaCollection, error)

type ReplicaOperations

type ReplicaOperations interface {
	List(opts *ListOpts) (*ReplicaCollection, error)
	Create(opts *Replica) (*Replica, error)
	Update(existing *Replica, updates interface{}) (*Replica, error)
	ById(id string) (*Replica, error)
	Delete(container *Replica) error
}

type ReplicaRemoveInput

type ReplicaRemoveInput struct {
	Resource `yaml:"-"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type ReplicaRemoveInputClient

type ReplicaRemoveInputClient struct {
	// contains filtered or unexported fields
}

func (*ReplicaRemoveInputClient) ById

func (*ReplicaRemoveInputClient) Create

func (*ReplicaRemoveInputClient) Delete

func (c *ReplicaRemoveInputClient) Delete(container *ReplicaRemoveInput) error

func (*ReplicaRemoveInputClient) List

func (*ReplicaRemoveInputClient) Update

func (c *ReplicaRemoveInputClient) Update(existing *ReplicaRemoveInput, updates interface{}) (*ReplicaRemoveInput, error)

type ReplicaRemoveInputCollection

type ReplicaRemoveInputCollection struct {
	Collection
	Data []ReplicaRemoveInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicaRemoveInputCollection) Next

type ReplicaRemoveInputOperations

type ReplicaRemoveInputOperations interface {
	List(opts *ListOpts) (*ReplicaRemoveInputCollection, error)
	Create(opts *ReplicaRemoveInput) (*ReplicaRemoveInput, error)
	Update(existing *ReplicaRemoveInput, updates interface{}) (*ReplicaRemoveInput, error)
	ById(id string) (*ReplicaRemoveInput, error)
	Delete(container *ReplicaRemoveInput) error
}

type Resource

type Resource struct {
	Id      string            `json:"id,omitempty"`
	Type    string            `json:"type,omitempty"`
	Links   map[string]string `json:"links"`
	Actions map[string]string `json:"actions"`
}

type ResourceCollection

type ResourceCollection struct {
	Collection
	Data []Resource `json:"data,omitempty"`
}

type RestoreStatus added in v0.6.0

type RestoreStatus struct {
	Resource `yaml:"-"`

	BackupURL string `json:"backupURL,omitempty" yaml:"backup_url,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	Filename string `json:"filename,omitempty" yaml:"filename,omitempty"`

	IsRestoring bool `json:"isRestoring,omitempty" yaml:"is_restoring,omitempty"`

	LastRestored string `json:"lastRestored,omitempty" yaml:"last_restored,omitempty"`

	Progress int64 `json:"progress,omitempty" yaml:"progress,omitempty"`

	Replica string `json:"replica,omitempty" yaml:"replica,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type RestoreStatusClient added in v0.6.0

type RestoreStatusClient struct {
	// contains filtered or unexported fields
}

func (*RestoreStatusClient) ById added in v0.6.0

func (*RestoreStatusClient) Create added in v0.6.0

func (c *RestoreStatusClient) Create(container *RestoreStatus) (*RestoreStatus, error)

func (*RestoreStatusClient) Delete added in v0.6.0

func (c *RestoreStatusClient) Delete(container *RestoreStatus) error

func (*RestoreStatusClient) List added in v0.6.0

func (*RestoreStatusClient) Update added in v0.6.0

func (c *RestoreStatusClient) Update(existing *RestoreStatus, updates interface{}) (*RestoreStatus, error)

type RestoreStatusCollection added in v0.6.0

type RestoreStatusCollection struct {
	Collection
	Data []RestoreStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreStatusCollection) Next added in v0.6.0

type RestoreStatusOperations added in v0.6.0

type RestoreStatusOperations interface {
	List(opts *ListOpts) (*RestoreStatusCollection, error)
	Create(opts *RestoreStatus) (*RestoreStatus, error)
	Update(existing *RestoreStatus, updates interface{}) (*RestoreStatus, error)
	ById(id string) (*RestoreStatus, error)
	Delete(container *RestoreStatus) error
}

type SalvageInput

type SalvageInput struct {
	Resource `yaml:"-"`

	Names []string `json:"names,omitempty" yaml:"names,omitempty"`
}

type SalvageInputClient

type SalvageInputClient struct {
	// contains filtered or unexported fields
}

func (*SalvageInputClient) ById

func (c *SalvageInputClient) ById(id string) (*SalvageInput, error)

func (*SalvageInputClient) Create

func (c *SalvageInputClient) Create(container *SalvageInput) (*SalvageInput, error)

func (*SalvageInputClient) Delete

func (c *SalvageInputClient) Delete(container *SalvageInput) error

func (*SalvageInputClient) List

func (*SalvageInputClient) Update

func (c *SalvageInputClient) Update(existing *SalvageInput, updates interface{}) (*SalvageInput, error)

type SalvageInputCollection

type SalvageInputCollection struct {
	Collection
	Data []SalvageInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SalvageInputCollection) Next

type SalvageInputOperations

type SalvageInputOperations interface {
	List(opts *ListOpts) (*SalvageInputCollection, error)
	Create(opts *SalvageInput) (*SalvageInput, error)
	Update(existing *SalvageInput, updates interface{}) (*SalvageInput, error)
	ById(id string) (*SalvageInput, error)
	Delete(container *SalvageInput) error
}

type Schema

type Schema struct {
	Resource
	PluralName        string            `json:"pluralName,omitempty"`
	ResourceMethods   []string          `json:"resourceMethods,omitempty"`
	ResourceFields    map[string]Field  `json:"resourceFields,omitempty"`
	ResourceActions   map[string]Action `json:"resourceActions,omitempty"`
	CollectionMethods []string          `json:"collectionMethods,omitempty"`
	CollectionFields  map[string]Field  `json:"collectionFields,omitempty"`
	CollectionActions map[string]Action `json:"collectionActions,omitempty"`
	CollectionFilters map[string]Filter `json:"collectionFilters,omitempty"`
	IncludeableLinks  []string          `json:"includeableLinks,omitempty"`
}

func (*Schema) CheckField

func (s *Schema) CheckField(name string) (Field, bool)

func (*Schema) Field

func (s *Schema) Field(name string) Field

type Schemas

type Schemas struct {
	Collection
	Data []Schema `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Schemas) AddType

func (s *Schemas) AddType(schemaName string, obj interface{}) *Schema

func (*Schemas) CheckSchema

func (s *Schemas) CheckSchema(name string) (Schema, bool)

func (*Schemas) Schema

func (s *Schemas) Schema(name string) Schema

type Setting

type Setting struct {
	Resource `yaml:"-"`

	Definition SettingDefinition `json:"definition,omitempty" yaml:"definition,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Value string `json:"value,omitempty" yaml:"value,omitempty"`
}

type SettingClient

type SettingClient struct {
	// contains filtered or unexported fields
}

func (*SettingClient) ById

func (c *SettingClient) ById(id string) (*Setting, error)

func (*SettingClient) Create

func (c *SettingClient) Create(container *Setting) (*Setting, error)

func (*SettingClient) Delete

func (c *SettingClient) Delete(container *Setting) error

func (*SettingClient) List

func (c *SettingClient) List(opts *ListOpts) (*SettingCollection, error)

func (*SettingClient) Update

func (c *SettingClient) Update(existing *Setting, updates interface{}) (*Setting, error)

type SettingCollection

type SettingCollection struct {
	Collection
	Data []Setting `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingCollection) Next

func (cc *SettingCollection) Next() (*SettingCollection, error)

type SettingDefinition

type SettingDefinition struct {
	Resource `yaml:"-"`

	Category string `json:"category,omitempty" yaml:"category,omitempty"`

	Default string `json:"default,omitempty" yaml:"default,omitempty"`

	Description string `json:"description,omitempty" yaml:"description,omitempty"`

	DisplayName string `json:"displayName,omitempty" yaml:"display_name,omitempty"`

	Options []string `json:"options,omitempty" yaml:"options,omitempty"`

	ReadOnly bool `json:"readOnly,omitempty" yaml:"read_only,omitempty"`

	Required bool `json:"required,omitempty" yaml:"required,omitempty"`
}

type SettingDefinitionClient

type SettingDefinitionClient struct {
	// contains filtered or unexported fields
}

func (*SettingDefinitionClient) ById

func (*SettingDefinitionClient) Create

func (*SettingDefinitionClient) Delete

func (c *SettingDefinitionClient) Delete(container *SettingDefinition) error

func (*SettingDefinitionClient) List

func (*SettingDefinitionClient) Update

func (c *SettingDefinitionClient) Update(existing *SettingDefinition, updates interface{}) (*SettingDefinition, error)

type SettingDefinitionCollection

type SettingDefinitionCollection struct {
	Collection
	Data []SettingDefinition `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingDefinitionCollection) Next

type SettingDefinitionOperations

type SettingDefinitionOperations interface {
	List(opts *ListOpts) (*SettingDefinitionCollection, error)
	Create(opts *SettingDefinition) (*SettingDefinition, error)
	Update(existing *SettingDefinition, updates interface{}) (*SettingDefinition, error)
	ById(id string) (*SettingDefinition, error)
	Delete(container *SettingDefinition) error
}

type SettingOperations

type SettingOperations interface {
	List(opts *ListOpts) (*SettingCollection, error)
	Create(opts *Setting) (*Setting, error)
	Update(existing *Setting, updates interface{}) (*Setting, error)
	ById(id string) (*Setting, error)
	Delete(container *Setting) error
}

type Snapshot

type Snapshot struct {
	Resource `yaml:"-"`

	Checksum string `json:"checksum,omitempty" yaml:"checksum,omitempty"`

	Children map[string]interface{} `json:"children,omitempty" yaml:"children,omitempty"`

	Created string `json:"created,omitempty" yaml:"created,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	Parent string `json:"parent,omitempty" yaml:"parent,omitempty"`

	Removed bool `json:"removed,omitempty" yaml:"removed,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	Usercreated bool `json:"usercreated,omitempty" yaml:"usercreated,omitempty"`
}

type SnapshotCR added in v1.5.0

type SnapshotCR struct {
	Resource `yaml:"-"`

	Checksum string `json:"checksum,omitempty" yaml:"checksum,omitempty"`

	Children map[string]interface{} `json:"children,omitempty" yaml:"children,omitempty"`

	CrCreationTime string `json:"crCreationTime,omitempty" yaml:"cr_creation_time,omitempty"`

	CreateSnapshot bool `json:"createSnapshot,omitempty" yaml:"create_snapshot,omitempty"`

	CreationTime string `json:"creationTime,omitempty" yaml:"creation_time,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	MarkRemoved bool `json:"markRemoved,omitempty" yaml:"mark_removed,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	OwnerID string `json:"ownerID,omitempty" yaml:"owner_id,omitempty"`

	Parent string `json:"parent,omitempty" yaml:"parent,omitempty"`

	ReadyToUse bool `json:"readyToUse,omitempty" yaml:"ready_to_use,omitempty"`

	RestoreSize int64 `json:"restoreSize,omitempty" yaml:"restore_size,omitempty"`

	Size int64 `json:"size,omitempty" yaml:"size,omitempty"`

	UserCreated bool `json:"userCreated,omitempty" yaml:"user_created,omitempty"`

	Volume string `json:"volume,omitempty" yaml:"volume,omitempty"`
}

type SnapshotCRClient added in v1.5.0

type SnapshotCRClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotCRClient) ById added in v1.5.0

func (c *SnapshotCRClient) ById(id string) (*SnapshotCR, error)

func (*SnapshotCRClient) Create added in v1.5.0

func (c *SnapshotCRClient) Create(container *SnapshotCR) (*SnapshotCR, error)

func (*SnapshotCRClient) Delete added in v1.5.0

func (c *SnapshotCRClient) Delete(container *SnapshotCR) error

func (*SnapshotCRClient) List added in v1.5.0

func (*SnapshotCRClient) Update added in v1.5.0

func (c *SnapshotCRClient) Update(existing *SnapshotCR, updates interface{}) (*SnapshotCR, error)

type SnapshotCRCollection added in v1.5.0

type SnapshotCRCollection struct {
	Collection
	Data []SnapshotCR `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotCRCollection) Next added in v1.5.0

type SnapshotCRInput added in v1.5.0

type SnapshotCRInput struct {
	Resource `yaml:"-"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type SnapshotCRInputClient added in v1.5.0

type SnapshotCRInputClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotCRInputClient) ById added in v1.5.0

func (*SnapshotCRInputClient) Create added in v1.5.0

func (c *SnapshotCRInputClient) Create(container *SnapshotCRInput) (*SnapshotCRInput, error)

func (*SnapshotCRInputClient) Delete added in v1.5.0

func (c *SnapshotCRInputClient) Delete(container *SnapshotCRInput) error

func (*SnapshotCRInputClient) List added in v1.5.0

func (*SnapshotCRInputClient) Update added in v1.5.0

func (c *SnapshotCRInputClient) Update(existing *SnapshotCRInput, updates interface{}) (*SnapshotCRInput, error)

type SnapshotCRInputCollection added in v1.5.0

type SnapshotCRInputCollection struct {
	Collection
	Data []SnapshotCRInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotCRInputCollection) Next added in v1.5.0

type SnapshotCRInputOperations added in v1.5.0

type SnapshotCRInputOperations interface {
	List(opts *ListOpts) (*SnapshotCRInputCollection, error)
	Create(opts *SnapshotCRInput) (*SnapshotCRInput, error)
	Update(existing *SnapshotCRInput, updates interface{}) (*SnapshotCRInput, error)
	ById(id string) (*SnapshotCRInput, error)
	Delete(container *SnapshotCRInput) error
}

type SnapshotCRListOutput added in v1.5.0

type SnapshotCRListOutput struct {
	Resource `yaml:"-"`

	Data []SnapshotCR `json:"data,omitempty" yaml:"data,omitempty"`
}

type SnapshotCRListOutputClient added in v1.5.0

type SnapshotCRListOutputClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotCRListOutputClient) ById added in v1.5.0

func (*SnapshotCRListOutputClient) Create added in v1.5.0

func (*SnapshotCRListOutputClient) Delete added in v1.5.0

func (*SnapshotCRListOutputClient) List added in v1.5.0

func (*SnapshotCRListOutputClient) Update added in v1.5.0

func (c *SnapshotCRListOutputClient) Update(existing *SnapshotCRListOutput, updates interface{}) (*SnapshotCRListOutput, error)

type SnapshotCRListOutputCollection added in v1.5.0

type SnapshotCRListOutputCollection struct {
	Collection
	Data []SnapshotCRListOutput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotCRListOutputCollection) Next added in v1.5.0

type SnapshotCRListOutputOperations added in v1.5.0

type SnapshotCRListOutputOperations interface {
	List(opts *ListOpts) (*SnapshotCRListOutputCollection, error)
	Create(opts *SnapshotCRListOutput) (*SnapshotCRListOutput, error)
	Update(existing *SnapshotCRListOutput, updates interface{}) (*SnapshotCRListOutput, error)
	ById(id string) (*SnapshotCRListOutput, error)
	Delete(container *SnapshotCRListOutput) error
}

type SnapshotCROperations added in v1.5.0

type SnapshotCROperations interface {
	List(opts *ListOpts) (*SnapshotCRCollection, error)
	Create(opts *SnapshotCR) (*SnapshotCR, error)
	Update(existing *SnapshotCR, updates interface{}) (*SnapshotCR, error)
	ById(id string) (*SnapshotCR, error)
	Delete(container *SnapshotCR) error
}

type SnapshotClient

type SnapshotClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotClient) ById

func (c *SnapshotClient) ById(id string) (*Snapshot, error)

func (*SnapshotClient) Create

func (c *SnapshotClient) Create(container *Snapshot) (*Snapshot, error)

func (*SnapshotClient) Delete

func (c *SnapshotClient) Delete(container *Snapshot) error

func (*SnapshotClient) List

func (c *SnapshotClient) List(opts *ListOpts) (*SnapshotCollection, error)

func (*SnapshotClient) Update

func (c *SnapshotClient) Update(existing *Snapshot, updates interface{}) (*Snapshot, error)

type SnapshotCollection

type SnapshotCollection struct {
	Collection
	Data []Snapshot `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotCollection) Next

type SnapshotInput

type SnapshotInput struct {
	Resource `yaml:"-"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type SnapshotInputClient

type SnapshotInputClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotInputClient) ById

func (*SnapshotInputClient) Create

func (c *SnapshotInputClient) Create(container *SnapshotInput) (*SnapshotInput, error)

func (*SnapshotInputClient) Delete

func (c *SnapshotInputClient) Delete(container *SnapshotInput) error

func (*SnapshotInputClient) List

func (*SnapshotInputClient) Update

func (c *SnapshotInputClient) Update(existing *SnapshotInput, updates interface{}) (*SnapshotInput, error)

type SnapshotInputCollection

type SnapshotInputCollection struct {
	Collection
	Data []SnapshotInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotInputCollection) Next

type SnapshotInputOperations

type SnapshotInputOperations interface {
	List(opts *ListOpts) (*SnapshotInputCollection, error)
	Create(opts *SnapshotInput) (*SnapshotInput, error)
	Update(existing *SnapshotInput, updates interface{}) (*SnapshotInput, error)
	ById(id string) (*SnapshotInput, error)
	Delete(container *SnapshotInput) error
}

type SnapshotListOutput added in v1.0.1

type SnapshotListOutput struct {
	Resource `yaml:"-"`

	Data []Snapshot `json:"data,omitempty" yaml:"data,omitempty"`
}

type SnapshotListOutputClient added in v1.0.1

type SnapshotListOutputClient struct {
	// contains filtered or unexported fields
}

func (*SnapshotListOutputClient) ById added in v1.0.1

func (*SnapshotListOutputClient) Create added in v1.0.1

func (*SnapshotListOutputClient) Delete added in v1.0.1

func (c *SnapshotListOutputClient) Delete(container *SnapshotListOutput) error

func (*SnapshotListOutputClient) List added in v1.0.1

func (*SnapshotListOutputClient) Update added in v1.0.1

func (c *SnapshotListOutputClient) Update(existing *SnapshotListOutput, updates interface{}) (*SnapshotListOutput, error)

type SnapshotListOutputCollection added in v1.0.1

type SnapshotListOutputCollection struct {
	Collection
	Data []SnapshotListOutput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotListOutputCollection) Next added in v1.0.1

type SnapshotListOutputOperations added in v1.0.1

type SnapshotListOutputOperations interface {
	List(opts *ListOpts) (*SnapshotListOutputCollection, error)
	Create(opts *SnapshotListOutput) (*SnapshotListOutput, error)
	Update(existing *SnapshotListOutput, updates interface{}) (*SnapshotListOutput, error)
	ById(id string) (*SnapshotListOutput, error)
	Delete(container *SnapshotListOutput) error
}

type SnapshotOperations

type SnapshotOperations interface {
	List(opts *ListOpts) (*SnapshotCollection, error)
	Create(opts *Snapshot) (*Snapshot, error)
	Update(existing *Snapshot, updates interface{}) (*Snapshot, error)
	ById(id string) (*Snapshot, error)
	Delete(container *Snapshot) error
}

type Sort

type Sort struct {
	Name    string `json:"name,omitempty"`
	Order   string `json:"order,omitempty"`
	Reverse string `json:"reverse,omitempty"`
}

type SupportBundle added in v0.6.0

type SupportBundle struct {
	Resource `yaml:"-"`

	ErrorMessage string `json:"errorMessage,omitempty" yaml:"error_message,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	NodeID string `json:"nodeID,omitempty" yaml:"node_id,omitempty"`

	ProgressPercentage int64 `json:"progressPercentage,omitempty" yaml:"progress_percentage,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type SupportBundleClient added in v0.6.0

type SupportBundleClient struct {
	// contains filtered or unexported fields
}

func (*SupportBundleClient) ById added in v0.6.0

func (*SupportBundleClient) Create added in v0.6.0

func (c *SupportBundleClient) Create(container *SupportBundle) (*SupportBundle, error)

func (*SupportBundleClient) Delete added in v0.6.0

func (c *SupportBundleClient) Delete(container *SupportBundle) error

func (*SupportBundleClient) List added in v0.6.0

func (*SupportBundleClient) Update added in v0.6.0

func (c *SupportBundleClient) Update(existing *SupportBundle, updates interface{}) (*SupportBundle, error)

type SupportBundleCollection added in v0.6.0

type SupportBundleCollection struct {
	Collection
	Data []SupportBundle `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportBundleCollection) Next added in v0.6.0

type SupportBundleInitateInput added in v0.6.0

type SupportBundleInitateInput struct {
	Resource `yaml:"-"`

	Description string `json:"description,omitempty" yaml:"description,omitempty"`

	IssueURL string `json:"issueURL,omitempty" yaml:"issue_url,omitempty"`
}

type SupportBundleInitateInputClient added in v0.6.0

type SupportBundleInitateInputClient struct {
	// contains filtered or unexported fields
}

func (*SupportBundleInitateInputClient) ById added in v0.6.0

func (*SupportBundleInitateInputClient) Create added in v0.6.0

func (*SupportBundleInitateInputClient) Delete added in v0.6.0

func (*SupportBundleInitateInputClient) List added in v0.6.0

func (*SupportBundleInitateInputClient) Update added in v0.6.0

func (c *SupportBundleInitateInputClient) Update(existing *SupportBundleInitateInput, updates interface{}) (*SupportBundleInitateInput, error)

type SupportBundleInitateInputCollection added in v0.6.0

type SupportBundleInitateInputCollection struct {
	Collection
	Data []SupportBundleInitateInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportBundleInitateInputCollection) Next added in v0.6.0

type SupportBundleInitateInputOperations added in v0.6.0

type SupportBundleInitateInputOperations interface {
	List(opts *ListOpts) (*SupportBundleInitateInputCollection, error)
	Create(opts *SupportBundleInitateInput) (*SupportBundleInitateInput, error)
	Update(existing *SupportBundleInitateInput, updates interface{}) (*SupportBundleInitateInput, error)
	ById(id string) (*SupportBundleInitateInput, error)
	Delete(container *SupportBundleInitateInput) error
}

type SupportBundleOperations added in v0.6.0

type SupportBundleOperations interface {
	List(opts *ListOpts) (*SupportBundleCollection, error)
	Create(opts *SupportBundle) (*SupportBundle, error)
	Update(existing *SupportBundle, updates interface{}) (*SupportBundle, error)
	ById(id string) (*SupportBundle, error)
	Delete(container *SupportBundle) error
}

type SystemBackup added in v1.5.0

type SystemBackup struct {
	Resource `yaml:"-"`

	CreatedAt string `json:"createdAt,omitempty" yaml:"created_at,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	ManagerImage string `json:"managerImage,omitempty" yaml:"manager_image,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`

	Version string `json:"version,omitempty" yaml:"version,omitempty"`

	VolumeBackupPolicy string `json:"volumeBackupPolicy,omitempty" yaml:"volume_backup_policy,omitempty"`
}

type SystemBackupClient added in v1.5.0

type SystemBackupClient struct {
	// contains filtered or unexported fields
}

func (*SystemBackupClient) ById added in v1.5.0

func (c *SystemBackupClient) ById(id string) (*SystemBackup, error)

func (*SystemBackupClient) Create added in v1.5.0

func (c *SystemBackupClient) Create(container *SystemBackup) (*SystemBackup, error)

func (*SystemBackupClient) Delete added in v1.5.0

func (c *SystemBackupClient) Delete(container *SystemBackup) error

func (*SystemBackupClient) List added in v1.5.0

func (*SystemBackupClient) Update added in v1.5.0

func (c *SystemBackupClient) Update(existing *SystemBackup, updates interface{}) (*SystemBackup, error)

type SystemBackupCollection added in v1.5.0

type SystemBackupCollection struct {
	Collection
	Data []SystemBackup `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SystemBackupCollection) Next added in v1.5.0

type SystemBackupOperations added in v1.5.0

type SystemBackupOperations interface {
	List(opts *ListOpts) (*SystemBackupCollection, error)
	Create(opts *SystemBackup) (*SystemBackup, error)
	Update(existing *SystemBackup, updates interface{}) (*SystemBackup, error)
	ById(id string) (*SystemBackup, error)
	Delete(container *SystemBackup) error
}

type SystemRestore added in v1.5.0

type SystemRestore struct {
	Resource `yaml:"-"`

	CreatedAt string `json:"createdAt,omitempty" yaml:"created_at,omitempty"`

	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`

	SystemBackup string `json:"systemBackup,omitempty" yaml:"system_backup,omitempty"`
}

type SystemRestoreClient added in v1.5.0

type SystemRestoreClient struct {
	// contains filtered or unexported fields
}

func (*SystemRestoreClient) ById added in v1.5.0

func (*SystemRestoreClient) Create added in v1.5.0

func (c *SystemRestoreClient) Create(container *SystemRestore) (*SystemRestore, error)

func (*SystemRestoreClient) Delete added in v1.5.0

func (c *SystemRestoreClient) Delete(container *SystemRestore) error

func (*SystemRestoreClient) List added in v1.5.0

func (*SystemRestoreClient) Update added in v1.5.0

func (c *SystemRestoreClient) Update(existing *SystemRestore, updates interface{}) (*SystemRestore, error)

type SystemRestoreCollection added in v1.5.0

type SystemRestoreCollection struct {
	Collection
	Data []SystemRestore `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SystemRestoreCollection) Next added in v1.5.0

type SystemRestoreOperations added in v1.5.0

type SystemRestoreOperations interface {
	List(opts *ListOpts) (*SystemRestoreCollection, error)
	Create(opts *SystemRestore) (*SystemRestore, error)
	Update(existing *SystemRestore, updates interface{}) (*SystemRestore, error)
	ById(id string) (*SystemRestore, error)
	Delete(container *SystemRestore) error
}

type Tag added in v0.6.0

type Tag struct {
	Resource `yaml:"-"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	TagType string `json:"tagType,omitempty" yaml:"tag_type,omitempty"`
}

type TagClient added in v0.6.0

type TagClient struct {
	// contains filtered or unexported fields
}

func (*TagClient) ById added in v0.6.0

func (c *TagClient) ById(id string) (*Tag, error)

func (*TagClient) Create added in v0.6.0

func (c *TagClient) Create(container *Tag) (*Tag, error)

func (*TagClient) Delete added in v0.6.0

func (c *TagClient) Delete(container *Tag) error

func (*TagClient) List added in v0.6.0

func (c *TagClient) List(opts *ListOpts) (*TagCollection, error)

func (*TagClient) Update added in v0.6.0

func (c *TagClient) Update(existing *Tag, updates interface{}) (*Tag, error)

type TagCollection added in v0.6.0

type TagCollection struct {
	Collection
	Data []Tag `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TagCollection) Next added in v0.6.0

func (cc *TagCollection) Next() (*TagCollection, error)

type TagOperations added in v0.6.0

type TagOperations interface {
	List(opts *ListOpts) (*TagCollection, error)
	Create(opts *Tag) (*Tag, error)
	Update(existing *Tag, updates interface{}) (*Tag, error)
	ById(id string) (*Tag, error)
	Delete(container *Tag) error
}

type UpdateAccessModeInput added in v1.1.0

type UpdateAccessModeInput struct {
	Resource `yaml:"-"`

	AccessMode string `json:"accessMode,omitempty" yaml:"access_mode,omitempty"`
}

type UpdateAccessModeInputClient added in v1.1.0

type UpdateAccessModeInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateAccessModeInputClient) ById added in v1.1.0

func (*UpdateAccessModeInputClient) Create added in v1.1.0

func (*UpdateAccessModeInputClient) Delete added in v1.1.0

func (*UpdateAccessModeInputClient) List added in v1.1.0

func (*UpdateAccessModeInputClient) Update added in v1.1.0

func (c *UpdateAccessModeInputClient) Update(existing *UpdateAccessModeInput, updates interface{}) (*UpdateAccessModeInput, error)

type UpdateAccessModeInputCollection added in v1.1.0

type UpdateAccessModeInputCollection struct {
	Collection
	Data []UpdateAccessModeInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccessModeInputCollection) Next added in v1.1.0

type UpdateAccessModeInputOperations added in v1.1.0

type UpdateAccessModeInputOperations interface {
	List(opts *ListOpts) (*UpdateAccessModeInputCollection, error)
	Create(opts *UpdateAccessModeInput) (*UpdateAccessModeInput, error)
	Update(existing *UpdateAccessModeInput, updates interface{}) (*UpdateAccessModeInput, error)
	ById(id string) (*UpdateAccessModeInput, error)
	Delete(container *UpdateAccessModeInput) error
}

type UpdateBackupCompressionInput added in v1.5.0

type UpdateBackupCompressionInput struct {
	Resource `yaml:"-"`

	BackupCompressionMethod string `json:"backupCompressionMethod,omitempty" yaml:"backup_compression_method,omitempty"`
}

type UpdateBackupCompressionInputClient added in v1.5.0

type UpdateBackupCompressionInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateBackupCompressionInputClient) ById added in v1.5.0

func (*UpdateBackupCompressionInputClient) Create added in v1.5.0

func (*UpdateBackupCompressionInputClient) Delete added in v1.5.0

func (*UpdateBackupCompressionInputClient) List added in v1.5.0

func (*UpdateBackupCompressionInputClient) Update added in v1.5.0

type UpdateBackupCompressionInputCollection added in v1.5.0

type UpdateBackupCompressionInputCollection struct {
	Collection
	Data []UpdateBackupCompressionInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBackupCompressionInputCollection) Next added in v1.5.0

type UpdateBackupCompressionInputOperations added in v1.5.0

type UpdateBackupCompressionInputOperations interface {
	List(opts *ListOpts) (*UpdateBackupCompressionInputCollection, error)
	Create(opts *UpdateBackupCompressionInput) (*UpdateBackupCompressionInput, error)
	Update(existing *UpdateBackupCompressionInput, updates interface{}) (*UpdateBackupCompressionInput, error)
	ById(id string) (*UpdateBackupCompressionInput, error)
	Delete(container *UpdateBackupCompressionInput) error
}

type UpdateDataLocalityInput added in v1.1.0

type UpdateDataLocalityInput struct {
	Resource `yaml:"-"`

	DataLocality string `json:"dataLocality,omitempty" yaml:"data_locality,omitempty"`
}

type UpdateDataLocalityInputClient added in v1.1.0

type UpdateDataLocalityInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateDataLocalityInputClient) ById added in v1.1.0

func (*UpdateDataLocalityInputClient) Create added in v1.1.0

func (*UpdateDataLocalityInputClient) Delete added in v1.1.0

func (*UpdateDataLocalityInputClient) List added in v1.1.0

func (*UpdateDataLocalityInputClient) Update added in v1.1.0

func (c *UpdateDataLocalityInputClient) Update(existing *UpdateDataLocalityInput, updates interface{}) (*UpdateDataLocalityInput, error)

type UpdateDataLocalityInputCollection added in v1.1.0

type UpdateDataLocalityInputCollection struct {
	Collection
	Data []UpdateDataLocalityInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDataLocalityInputCollection) Next added in v1.1.0

type UpdateDataLocalityInputOperations added in v1.1.0

type UpdateDataLocalityInputOperations interface {
	List(opts *ListOpts) (*UpdateDataLocalityInputCollection, error)
	Create(opts *UpdateDataLocalityInput) (*UpdateDataLocalityInput, error)
	Update(existing *UpdateDataLocalityInput, updates interface{}) (*UpdateDataLocalityInput, error)
	ById(id string) (*UpdateDataLocalityInput, error)
	Delete(container *UpdateDataLocalityInput) error
}

type UpdateOfflineReplicaRebuildingInput added in v1.5.0

type UpdateOfflineReplicaRebuildingInput struct {
	Resource `yaml:"-"`

	OfflineReplicaRebuilding string `json:"offlineReplicaRebuilding,omitempty" yaml:"offline_replica_rebuilding,omitempty"`
}

type UpdateOfflineReplicaRebuildingInputClient added in v1.5.0

type UpdateOfflineReplicaRebuildingInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateOfflineReplicaRebuildingInputClient) ById added in v1.5.0

func (*UpdateOfflineReplicaRebuildingInputClient) Create added in v1.5.0

func (*UpdateOfflineReplicaRebuildingInputClient) Delete added in v1.5.0

func (*UpdateOfflineReplicaRebuildingInputClient) List added in v1.5.0

func (*UpdateOfflineReplicaRebuildingInputClient) Update added in v1.5.0

type UpdateOfflineReplicaRebuildingInputCollection added in v1.5.0

type UpdateOfflineReplicaRebuildingInputCollection struct {
	Collection
	Data []UpdateOfflineReplicaRebuildingInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOfflineReplicaRebuildingInputCollection) Next added in v1.5.0

type UpdateReplicaAutoBalanceInput added in v1.2.0

type UpdateReplicaAutoBalanceInput struct {
	Resource `yaml:"-"`

	ReplicaAutoBalance string `json:"replicaAutoBalance,omitempty" yaml:"replica_auto_balance,omitempty"`
}

type UpdateReplicaAutoBalanceInputClient added in v1.2.0

type UpdateReplicaAutoBalanceInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateReplicaAutoBalanceInputClient) ById added in v1.2.0

func (*UpdateReplicaAutoBalanceInputClient) Create added in v1.2.0

func (*UpdateReplicaAutoBalanceInputClient) Delete added in v1.2.0

func (*UpdateReplicaAutoBalanceInputClient) List added in v1.2.0

func (*UpdateReplicaAutoBalanceInputClient) Update added in v1.2.0

type UpdateReplicaAutoBalanceInputCollection added in v1.2.0

type UpdateReplicaAutoBalanceInputCollection struct {
	Collection
	Data []UpdateReplicaAutoBalanceInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReplicaAutoBalanceInputCollection) Next added in v1.2.0

type UpdateReplicaAutoBalanceInputOperations added in v1.2.0

type UpdateReplicaAutoBalanceInputOperations interface {
	List(opts *ListOpts) (*UpdateReplicaAutoBalanceInputCollection, error)
	Create(opts *UpdateReplicaAutoBalanceInput) (*UpdateReplicaAutoBalanceInput, error)
	Update(existing *UpdateReplicaAutoBalanceInput, updates interface{}) (*UpdateReplicaAutoBalanceInput, error)
	ById(id string) (*UpdateReplicaAutoBalanceInput, error)
	Delete(container *UpdateReplicaAutoBalanceInput) error
}

type UpdateReplicaCountInput added in v0.6.0

type UpdateReplicaCountInput struct {
	Resource `yaml:"-"`

	ReplicaCount int64 `json:"replicaCount,omitempty" yaml:"replica_count,omitempty"`
}

type UpdateReplicaCountInputClient added in v0.6.0

type UpdateReplicaCountInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateReplicaCountInputClient) ById added in v0.6.0

func (*UpdateReplicaCountInputClient) Create added in v0.6.0

func (*UpdateReplicaCountInputClient) Delete added in v0.6.0

func (*UpdateReplicaCountInputClient) List added in v0.6.0

func (*UpdateReplicaCountInputClient) Update added in v0.6.0

func (c *UpdateReplicaCountInputClient) Update(existing *UpdateReplicaCountInput, updates interface{}) (*UpdateReplicaCountInput, error)

type UpdateReplicaCountInputCollection added in v0.6.0

type UpdateReplicaCountInputCollection struct {
	Collection
	Data []UpdateReplicaCountInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReplicaCountInputCollection) Next added in v0.6.0

type UpdateReplicaCountInputOperations added in v0.6.0

type UpdateReplicaCountInputOperations interface {
	List(opts *ListOpts) (*UpdateReplicaCountInputCollection, error)
	Create(opts *UpdateReplicaCountInput) (*UpdateReplicaCountInput, error)
	Update(existing *UpdateReplicaCountInput, updates interface{}) (*UpdateReplicaCountInput, error)
	ById(id string) (*UpdateReplicaCountInput, error)
	Delete(container *UpdateReplicaCountInput) error
}

type UpdateReplicaDiskSoftAntiAffinityInput added in v1.6.0

type UpdateReplicaDiskSoftAntiAffinityInput struct {
	Resource `yaml:"-"`

	ReplicaDiskSoftAntiAffinity string `json:"replicaDiskSoftAntiAffinity,omitempty" yaml:"replica_disk_soft_anti_affinity,omitempty"`
}

type UpdateReplicaDiskSoftAntiAffinityInputClient added in v1.6.0

type UpdateReplicaDiskSoftAntiAffinityInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateReplicaDiskSoftAntiAffinityInputClient) ById added in v1.6.0

func (*UpdateReplicaDiskSoftAntiAffinityInputClient) Create added in v1.6.0

func (*UpdateReplicaDiskSoftAntiAffinityInputClient) Delete added in v1.6.0

func (*UpdateReplicaDiskSoftAntiAffinityInputClient) List added in v1.6.0

func (*UpdateReplicaDiskSoftAntiAffinityInputClient) Update added in v1.6.0

type UpdateReplicaDiskSoftAntiAffinityInputCollection added in v1.6.0

type UpdateReplicaDiskSoftAntiAffinityInputCollection struct {
	Collection
	Data []UpdateReplicaDiskSoftAntiAffinityInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReplicaDiskSoftAntiAffinityInputCollection) Next added in v1.6.0

type UpdateReplicaSoftAntiAffinityInput added in v1.5.0

type UpdateReplicaSoftAntiAffinityInput struct {
	Resource `yaml:"-"`

	ReplicaSoftAntiAffinity string `json:"replicaSoftAntiAffinity,omitempty" yaml:"replica_soft_anti_affinity,omitempty"`
}

type UpdateReplicaSoftAntiAffinityInputClient added in v1.5.0

type UpdateReplicaSoftAntiAffinityInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateReplicaSoftAntiAffinityInputClient) ById added in v1.5.0

func (*UpdateReplicaSoftAntiAffinityInputClient) Create added in v1.5.0

func (*UpdateReplicaSoftAntiAffinityInputClient) Delete added in v1.5.0

func (*UpdateReplicaSoftAntiAffinityInputClient) List added in v1.5.0

func (*UpdateReplicaSoftAntiAffinityInputClient) Update added in v1.5.0

type UpdateReplicaSoftAntiAffinityInputCollection added in v1.5.0

type UpdateReplicaSoftAntiAffinityInputCollection struct {
	Collection
	Data []UpdateReplicaSoftAntiAffinityInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReplicaSoftAntiAffinityInputCollection) Next added in v1.5.0

type UpdateReplicaZoneSoftAntiAffinityInput added in v1.5.0

type UpdateReplicaZoneSoftAntiAffinityInput struct {
	Resource `yaml:"-"`

	ReplicaZoneSoftAntiAffinity string `json:"replicaZoneSoftAntiAffinity,omitempty" yaml:"replica_zone_soft_anti_affinity,omitempty"`
}

type UpdateReplicaZoneSoftAntiAffinityInputClient added in v1.5.0

type UpdateReplicaZoneSoftAntiAffinityInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateReplicaZoneSoftAntiAffinityInputClient) ById added in v1.5.0

func (*UpdateReplicaZoneSoftAntiAffinityInputClient) Create added in v1.5.0

func (*UpdateReplicaZoneSoftAntiAffinityInputClient) Delete added in v1.5.0

func (*UpdateReplicaZoneSoftAntiAffinityInputClient) List added in v1.5.0

func (*UpdateReplicaZoneSoftAntiAffinityInputClient) Update added in v1.5.0

type UpdateReplicaZoneSoftAntiAffinityInputCollection added in v1.5.0

type UpdateReplicaZoneSoftAntiAffinityInputCollection struct {
	Collection
	Data []UpdateReplicaZoneSoftAntiAffinityInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReplicaZoneSoftAntiAffinityInputCollection) Next added in v1.5.0

type UpdateSnapshotDataIntegrityInput added in v1.4.0

type UpdateSnapshotDataIntegrityInput struct {
	Resource `yaml:"-"`

	SnapshotDataIntegrity string `json:"snapshotDataIntegrity,omitempty" yaml:"snapshot_data_integrity,omitempty"`
}

type UpdateSnapshotDataIntegrityInputClient added in v1.4.0

type UpdateSnapshotDataIntegrityInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateSnapshotDataIntegrityInputClient) ById added in v1.4.0

func (*UpdateSnapshotDataIntegrityInputClient) Create added in v1.4.0

func (*UpdateSnapshotDataIntegrityInputClient) Delete added in v1.4.0

func (*UpdateSnapshotDataIntegrityInputClient) List added in v1.4.0

func (*UpdateSnapshotDataIntegrityInputClient) Update added in v1.4.0

type UpdateSnapshotDataIntegrityInputCollection added in v1.4.0

type UpdateSnapshotDataIntegrityInputCollection struct {
	Collection
	Data []UpdateSnapshotDataIntegrityInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSnapshotDataIntegrityInputCollection) Next added in v1.4.0

type UpdateSnapshotMaxCountInput added in v1.6.0

type UpdateSnapshotMaxCountInput struct {
	Resource `yaml:"-"`

	SnapshotMaxCount int64 `json:"snapshotMaxCount,omitempty" yaml:"snapshot_max_count,omitempty"`
}

type UpdateSnapshotMaxCountInputClient added in v1.6.0

type UpdateSnapshotMaxCountInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateSnapshotMaxCountInputClient) ById added in v1.6.0

func (*UpdateSnapshotMaxCountInputClient) Create added in v1.6.0

func (*UpdateSnapshotMaxCountInputClient) Delete added in v1.6.0

func (*UpdateSnapshotMaxCountInputClient) List added in v1.6.0

func (*UpdateSnapshotMaxCountInputClient) Update added in v1.6.0

type UpdateSnapshotMaxCountInputCollection added in v1.6.0

type UpdateSnapshotMaxCountInputCollection struct {
	Collection
	Data []UpdateSnapshotMaxCountInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSnapshotMaxCountInputCollection) Next added in v1.6.0

type UpdateSnapshotMaxCountInputOperations added in v1.6.0

type UpdateSnapshotMaxCountInputOperations interface {
	List(opts *ListOpts) (*UpdateSnapshotMaxCountInputCollection, error)
	Create(opts *UpdateSnapshotMaxCountInput) (*UpdateSnapshotMaxCountInput, error)
	Update(existing *UpdateSnapshotMaxCountInput, updates interface{}) (*UpdateSnapshotMaxCountInput, error)
	ById(id string) (*UpdateSnapshotMaxCountInput, error)
	Delete(container *UpdateSnapshotMaxCountInput) error
}

type UpdateSnapshotMaxSizeInput added in v1.6.0

type UpdateSnapshotMaxSizeInput struct {
	Resource `yaml:"-"`

	SnapshotMaxSize string `json:"snapshotMaxSize,omitempty" yaml:"snapshot_max_size,omitempty"`
}

type UpdateSnapshotMaxSizeInputClient added in v1.6.0

type UpdateSnapshotMaxSizeInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateSnapshotMaxSizeInputClient) ById added in v1.6.0

func (*UpdateSnapshotMaxSizeInputClient) Create added in v1.6.0

func (*UpdateSnapshotMaxSizeInputClient) Delete added in v1.6.0

func (*UpdateSnapshotMaxSizeInputClient) List added in v1.6.0

func (*UpdateSnapshotMaxSizeInputClient) Update added in v1.6.0

type UpdateSnapshotMaxSizeInputCollection added in v1.6.0

type UpdateSnapshotMaxSizeInputCollection struct {
	Collection
	Data []UpdateSnapshotMaxSizeInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSnapshotMaxSizeInputCollection) Next added in v1.6.0

type UpdateSnapshotMaxSizeInputOperations added in v1.6.0

type UpdateSnapshotMaxSizeInputOperations interface {
	List(opts *ListOpts) (*UpdateSnapshotMaxSizeInputCollection, error)
	Create(opts *UpdateSnapshotMaxSizeInput) (*UpdateSnapshotMaxSizeInput, error)
	Update(existing *UpdateSnapshotMaxSizeInput, updates interface{}) (*UpdateSnapshotMaxSizeInput, error)
	ById(id string) (*UpdateSnapshotMaxSizeInput, error)
	Delete(container *UpdateSnapshotMaxSizeInput) error
}

type UpdateUnmapMarkSnapChainRemovedInput added in v1.5.0

type UpdateUnmapMarkSnapChainRemovedInput struct {
	Resource `yaml:"-"`

	UnmapMarkSnapChainRemoved string `json:"unmapMarkSnapChainRemoved,omitempty" yaml:"unmap_mark_snap_chain_removed,omitempty"`
}

type UpdateUnmapMarkSnapChainRemovedInputClient added in v1.5.0

type UpdateUnmapMarkSnapChainRemovedInputClient struct {
	// contains filtered or unexported fields
}

func (*UpdateUnmapMarkSnapChainRemovedInputClient) ById added in v1.5.0

func (*UpdateUnmapMarkSnapChainRemovedInputClient) Create added in v1.5.0

func (*UpdateUnmapMarkSnapChainRemovedInputClient) Delete added in v1.5.0

func (*UpdateUnmapMarkSnapChainRemovedInputClient) List added in v1.5.0

func (*UpdateUnmapMarkSnapChainRemovedInputClient) Update added in v1.5.0

type UpdateUnmapMarkSnapChainRemovedInputCollection added in v1.5.0

type UpdateUnmapMarkSnapChainRemovedInputCollection struct {
	Collection
	Data []UpdateUnmapMarkSnapChainRemovedInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUnmapMarkSnapChainRemovedInputCollection) Next added in v1.5.0

type Volume

type Volume struct {
	Resource `yaml:"-"`

	AccessMode string `json:"accessMode,omitempty" yaml:"access_mode,omitempty"`

	BackingImage string `json:"backingImage,omitempty" yaml:"backing_image,omitempty"`

	BackupCompressionMethod string `json:"backupCompressionMethod,omitempty" yaml:"backup_compression_method,omitempty"`

	BackupStatus []BackupStatus `json:"backupStatus,omitempty" yaml:"backup_status,omitempty"`

	CloneStatus CloneStatus `json:"cloneStatus,omitempty" yaml:"clone_status,omitempty"`

	Conditions map[string]interface{} `json:"conditions,omitempty" yaml:"conditions,omitempty"`

	Controllers []Controller `json:"controllers,omitempty" yaml:"controllers,omitempty"`

	Created string `json:"created,omitempty" yaml:"created,omitempty"`

	CurrentImage string `json:"currentImage,omitempty" yaml:"current_image,omitempty"`

	DataEngine string `json:"dataEngine,omitempty" yaml:"data_engine,omitempty"`

	DataLocality string `json:"dataLocality,omitempty" yaml:"data_locality,omitempty"`

	DataSource string `json:"dataSource,omitempty" yaml:"data_source,omitempty"`

	DisableFrontend bool `json:"disableFrontend,omitempty" yaml:"disable_frontend,omitempty"`

	DiskSelector []string `json:"diskSelector,omitempty" yaml:"disk_selector,omitempty"`

	Encrypted bool `json:"encrypted,omitempty" yaml:"encrypted,omitempty"`

	FromBackup string `json:"fromBackup,omitempty" yaml:"from_backup,omitempty"`

	Frontend string `json:"frontend,omitempty" yaml:"frontend,omitempty"`

	Image string `json:"image,omitempty" yaml:"image,omitempty"`

	KubernetesStatus KubernetesStatus `json:"kubernetesStatus,omitempty" yaml:"kubernetes_status,omitempty"`

	LastAttachedBy string `json:"lastAttachedBy,omitempty" yaml:"last_attached_by,omitempty"`

	LastBackup string `json:"lastBackup,omitempty" yaml:"last_backup,omitempty"`

	LastBackupAt string `json:"lastBackupAt,omitempty" yaml:"last_backup_at,omitempty"`

	Migratable bool `json:"migratable,omitempty" yaml:"migratable,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	NodeSelector []string `json:"nodeSelector,omitempty" yaml:"node_selector,omitempty"`

	NumberOfReplicas int64 `json:"numberOfReplicas,omitempty" yaml:"number_of_replicas,omitempty"`

	OfflineReplicaRebuilding string `json:"offlineReplicaRebuilding,omitempty" yaml:"offline_replica_rebuilding,omitempty"`

	OfflineReplicaRebuildingRequired bool `json:"offlineReplicaRebuildingRequired,omitempty" yaml:"offline_replica_rebuilding_required,omitempty"`

	PurgeStatus []PurgeStatus `json:"purgeStatus,omitempty" yaml:"purge_status,omitempty"`

	Ready bool `json:"ready,omitempty" yaml:"ready,omitempty"`

	RebuildStatus []RebuildStatus `json:"rebuildStatus,omitempty" yaml:"rebuild_status,omitempty"`

	RecurringJobSelector []VolumeRecurringJob `json:"recurringJobSelector,omitempty" yaml:"recurring_job_selector,omitempty"`

	ReplicaAutoBalance string `json:"replicaAutoBalance,omitempty" yaml:"replica_auto_balance,omitempty"`

	ReplicaDiskSoftAntiAffinity string `json:"replicaDiskSoftAntiAffinity,omitempty" yaml:"replica_disk_soft_anti_affinity,omitempty"`

	ReplicaSoftAntiAffinity string `json:"replicaSoftAntiAffinity,omitempty" yaml:"replica_soft_anti_affinity,omitempty"`

	ReplicaZoneSoftAntiAffinity string `json:"replicaZoneSoftAntiAffinity,omitempty" yaml:"replica_zone_soft_anti_affinity,omitempty"`

	Replicas []Replica `json:"replicas,omitempty" yaml:"replicas,omitempty"`

	RestoreInitiated bool `json:"restoreInitiated,omitempty" yaml:"restore_initiated,omitempty"`

	RestoreRequired bool `json:"restoreRequired,omitempty" yaml:"restore_required,omitempty"`

	RestoreStatus []RestoreStatus `json:"restoreStatus,omitempty" yaml:"restore_status,omitempty"`

	RestoreVolumeRecurringJob string `json:"restoreVolumeRecurringJob,omitempty" yaml:"restore_volume_recurring_job,omitempty"`

	RevisionCounterDisabled bool `json:"revisionCounterDisabled,omitempty" yaml:"revision_counter_disabled,omitempty"`

	Robustness string `json:"robustness,omitempty" yaml:"robustness,omitempty"`

	ShareEndpoint string `json:"shareEndpoint,omitempty" yaml:"share_endpoint,omitempty"`

	ShareState string `json:"shareState,omitempty" yaml:"share_state,omitempty"`

	Size string `json:"size,omitempty" yaml:"size,omitempty"`

	SnapshotDataIntegrity string `json:"snapshotDataIntegrity,omitempty" yaml:"snapshot_data_integrity,omitempty"`

	SnapshotMaxCount int64 `json:"snapshotMaxCount,omitempty" yaml:"snapshot_max_count,omitempty"`

	SnapshotMaxSize string `json:"snapshotMaxSize,omitempty" yaml:"snapshot_max_size,omitempty"`

	StaleReplicaTimeout int64 `json:"staleReplicaTimeout,omitempty" yaml:"stale_replica_timeout,omitempty"`

	Standby bool `json:"standby,omitempty" yaml:"standby,omitempty"`

	State string `json:"state,omitempty" yaml:"state,omitempty"`

	UnmapMarkSnapChainRemoved string `json:"unmapMarkSnapChainRemoved,omitempty" yaml:"unmap_mark_snap_chain_removed,omitempty"`

	VolumeAttachment VolumeAttachment `json:"volumeAttachment,omitempty" yaml:"volume_attachment,omitempty"`
}

type VolumeAttachment added in v1.5.0

type VolumeAttachment struct {
	Resource `yaml:"-"`

	Attachments map[string]Attachment `json:"attachments,omitempty" yaml:"attachments,omitempty"`

	Volume string `json:"volume,omitempty" yaml:"volume,omitempty"`
}

type VolumeAttachmentClient added in v1.5.0

type VolumeAttachmentClient struct {
	// contains filtered or unexported fields
}

func (*VolumeAttachmentClient) ById added in v1.5.0

func (*VolumeAttachmentClient) Create added in v1.5.0

func (*VolumeAttachmentClient) Delete added in v1.5.0

func (c *VolumeAttachmentClient) Delete(container *VolumeAttachment) error

func (*VolumeAttachmentClient) List added in v1.5.0

func (*VolumeAttachmentClient) Update added in v1.5.0

func (c *VolumeAttachmentClient) Update(existing *VolumeAttachment, updates interface{}) (*VolumeAttachment, error)

type VolumeAttachmentCollection added in v1.5.0

type VolumeAttachmentCollection struct {
	Collection
	Data []VolumeAttachment `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeAttachmentCollection) Next added in v1.5.0

type VolumeAttachmentOperations added in v1.5.0

type VolumeAttachmentOperations interface {
	List(opts *ListOpts) (*VolumeAttachmentCollection, error)
	Create(opts *VolumeAttachment) (*VolumeAttachment, error)
	Update(existing *VolumeAttachment, updates interface{}) (*VolumeAttachment, error)
	ById(id string) (*VolumeAttachment, error)
	Delete(container *VolumeAttachment) error
}

type VolumeClient

type VolumeClient struct {
	// contains filtered or unexported fields
}

func (*VolumeClient) ActionActivate added in v1.0.0

func (c *VolumeClient) ActionActivate(resource *Volume, input *ActivateInput) (*Volume, error)

func (*VolumeClient) ActionAttach

func (c *VolumeClient) ActionAttach(resource *Volume, input *AttachInput) (*Volume, error)

func (*VolumeClient) ActionCancelExpansion added in v1.0.0

func (c *VolumeClient) ActionCancelExpansion(resource *Volume) (*Volume, error)

func (*VolumeClient) ActionDetach

func (c *VolumeClient) ActionDetach(resource *Volume, input *DetachInput) (*Volume, error)

func (*VolumeClient) ActionExpand added in v0.8.0

func (c *VolumeClient) ActionExpand(resource *Volume, input *ExpandInput) (*Volume, error)

func (*VolumeClient) ActionPvCreate added in v1.0.0

func (c *VolumeClient) ActionPvCreate(resource *Volume, input *PVCreateInput) (*Volume, error)

func (*VolumeClient) ActionPvcCreate added in v1.0.0

func (c *VolumeClient) ActionPvcCreate(resource *Volume, input *PVCCreateInput) (*Volume, error)

func (*VolumeClient) ActionRecurringJobAdd added in v1.2.0

func (c *VolumeClient) ActionRecurringJobAdd(resource *Volume, input *VolumeRecurringJobInput) (*VolumeRecurringJob, error)

func (*VolumeClient) ActionRecurringJobDelete added in v1.2.0

func (c *VolumeClient) ActionRecurringJobDelete(resource *Volume, input *VolumeRecurringJobInput) (*VolumeRecurringJob, error)

func (*VolumeClient) ActionRecurringJobList added in v1.2.0

func (c *VolumeClient) ActionRecurringJobList(resource *Volume) (*VolumeRecurringJob, error)

func (*VolumeClient) ActionReplicaRemove

func (c *VolumeClient) ActionReplicaRemove(resource *Volume, input *ReplicaRemoveInput) (*Volume, error)

func (*VolumeClient) ActionSalvage

func (c *VolumeClient) ActionSalvage(resource *Volume, input *SalvageInput) (*Volume, error)

func (*VolumeClient) ActionSnapshotBackup added in v1.0.1

func (c *VolumeClient) ActionSnapshotBackup(resource *Volume, input *SnapshotInput) (*Volume, error)

func (*VolumeClient) ActionSnapshotCRCreate added in v1.5.0

func (c *VolumeClient) ActionSnapshotCRCreate(resource *Volume, input *SnapshotCRInput) (*SnapshotCR, error)

func (*VolumeClient) ActionSnapshotCRDelete added in v1.5.0

func (c *VolumeClient) ActionSnapshotCRDelete(resource *Volume, input *SnapshotCRInput) (*Empty, error)

func (*VolumeClient) ActionSnapshotCRGet added in v1.5.0

func (c *VolumeClient) ActionSnapshotCRGet(resource *Volume, input *SnapshotCRInput) (*SnapshotCR, error)

func (*VolumeClient) ActionSnapshotCRList added in v1.5.0

func (c *VolumeClient) ActionSnapshotCRList(resource *Volume) (*SnapshotCRListOutput, error)

func (*VolumeClient) ActionSnapshotCreate

func (c *VolumeClient) ActionSnapshotCreate(resource *Volume, input *SnapshotInput) (*Snapshot, error)

func (*VolumeClient) ActionSnapshotDelete

func (c *VolumeClient) ActionSnapshotDelete(resource *Volume, input *SnapshotInput) (*Volume, error)

func (*VolumeClient) ActionSnapshotGet

func (c *VolumeClient) ActionSnapshotGet(resource *Volume, input *SnapshotInput) (*Snapshot, error)

func (*VolumeClient) ActionSnapshotList added in v1.0.1

func (c *VolumeClient) ActionSnapshotList(resource *Volume) (*SnapshotListOutput, error)

func (*VolumeClient) ActionSnapshotPurge added in v1.0.1

func (c *VolumeClient) ActionSnapshotPurge(resource *Volume) (*Volume, error)

func (*VolumeClient) ActionSnapshotRevert

func (c *VolumeClient) ActionSnapshotRevert(resource *Volume, input *SnapshotInput) (*Snapshot, error)

func (*VolumeClient) ActionTrimFilesystem added in v1.4.0

func (c *VolumeClient) ActionTrimFilesystem(resource *Volume) (*Volume, error)

func (*VolumeClient) ActionUpdateAccessMode added in v1.1.0

func (c *VolumeClient) ActionUpdateAccessMode(resource *Volume, input *UpdateAccessModeInput) (*Volume, error)

func (*VolumeClient) ById

func (c *VolumeClient) ById(id string) (*Volume, error)

func (*VolumeClient) Create

func (c *VolumeClient) Create(container *Volume) (*Volume, error)

func (*VolumeClient) Delete

func (c *VolumeClient) Delete(container *Volume) error

func (*VolumeClient) List

func (c *VolumeClient) List(opts *ListOpts) (*VolumeCollection, error)

func (*VolumeClient) Update

func (c *VolumeClient) Update(existing *Volume, updates interface{}) (*Volume, error)

type VolumeCollection

type VolumeCollection struct {
	Collection
	Data []Volume `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeCollection) Next

func (cc *VolumeCollection) Next() (*VolumeCollection, error)

type VolumeCondition

type VolumeCondition struct {
	Resource `yaml:"-"`

	LastProbeTime string `json:"lastProbeTime,omitempty" yaml:"last_probe_time,omitempty"`

	LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"last_transition_time,omitempty"`

	Message string `json:"message,omitempty" yaml:"message,omitempty"`

	Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`

	Status string `json:"status,omitempty" yaml:"status,omitempty"`
}

type VolumeConditionClient

type VolumeConditionClient struct {
	// contains filtered or unexported fields
}

func (*VolumeConditionClient) ById

func (*VolumeConditionClient) Create

func (c *VolumeConditionClient) Create(container *VolumeCondition) (*VolumeCondition, error)

func (*VolumeConditionClient) Delete

func (c *VolumeConditionClient) Delete(container *VolumeCondition) error

func (*VolumeConditionClient) List

func (*VolumeConditionClient) Update

func (c *VolumeConditionClient) Update(existing *VolumeCondition, updates interface{}) (*VolumeCondition, error)

type VolumeConditionCollection

type VolumeConditionCollection struct {
	Collection
	Data []VolumeCondition `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeConditionCollection) Next

type VolumeConditionOperations

type VolumeConditionOperations interface {
	List(opts *ListOpts) (*VolumeConditionCollection, error)
	Create(opts *VolumeCondition) (*VolumeCondition, error)
	Update(existing *VolumeCondition, updates interface{}) (*VolumeCondition, error)
	ById(id string) (*VolumeCondition, error)
	Delete(container *VolumeCondition) error
}

type VolumeOperations

type VolumeOperations interface {
	List(opts *ListOpts) (*VolumeCollection, error)
	Create(opts *Volume) (*Volume, error)
	Update(existing *Volume, updates interface{}) (*Volume, error)
	ById(id string) (*Volume, error)
	Delete(container *Volume) error

	ActionActivate(*Volume, *ActivateInput) (*Volume, error)

	ActionAttach(*Volume, *AttachInput) (*Volume, error)

	ActionCancelExpansion(*Volume) (*Volume, error)

	ActionDetach(*Volume, *DetachInput) (*Volume, error)

	ActionExpand(*Volume, *ExpandInput) (*Volume, error)

	ActionPvCreate(*Volume, *PVCreateInput) (*Volume, error)

	ActionPvcCreate(*Volume, *PVCCreateInput) (*Volume, error)

	ActionRecurringJobAdd(*Volume, *VolumeRecurringJobInput) (*VolumeRecurringJob, error)

	ActionRecurringJobDelete(*Volume, *VolumeRecurringJobInput) (*VolumeRecurringJob, error)

	ActionRecurringJobList(*Volume) (*VolumeRecurringJob, error)

	ActionReplicaRemove(*Volume, *ReplicaRemoveInput) (*Volume, error)

	ActionSalvage(*Volume, *SalvageInput) (*Volume, error)

	ActionSnapshotBackup(*Volume, *SnapshotInput) (*Volume, error)

	ActionSnapshotCRCreate(*Volume, *SnapshotCRInput) (*SnapshotCR, error)

	ActionSnapshotCRDelete(*Volume, *SnapshotCRInput) (*Empty, error)

	ActionSnapshotCRGet(*Volume, *SnapshotCRInput) (*SnapshotCR, error)

	ActionSnapshotCRList(*Volume) (*SnapshotCRListOutput, error)

	ActionSnapshotCreate(*Volume, *SnapshotInput) (*Snapshot, error)

	ActionSnapshotDelete(*Volume, *SnapshotInput) (*Volume, error)

	ActionSnapshotGet(*Volume, *SnapshotInput) (*Snapshot, error)

	ActionSnapshotList(*Volume) (*SnapshotListOutput, error)

	ActionSnapshotPurge(*Volume) (*Volume, error)

	ActionSnapshotRevert(*Volume, *SnapshotInput) (*Snapshot, error)

	ActionTrimFilesystem(*Volume) (*Volume, error)

	ActionUpdateAccessMode(*Volume, *UpdateAccessModeInput) (*Volume, error)
}

type VolumeRecurringJob added in v1.2.0

type VolumeRecurringJob struct {
	Resource `yaml:"-"`

	IsGroup bool `json:"isGroup,omitempty" yaml:"is_group,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type VolumeRecurringJobClient added in v1.2.0

type VolumeRecurringJobClient struct {
	// contains filtered or unexported fields
}

func (*VolumeRecurringJobClient) ById added in v1.2.0

func (*VolumeRecurringJobClient) Create added in v1.2.0

func (*VolumeRecurringJobClient) Delete added in v1.2.0

func (c *VolumeRecurringJobClient) Delete(container *VolumeRecurringJob) error

func (*VolumeRecurringJobClient) List added in v1.2.0

func (*VolumeRecurringJobClient) Update added in v1.2.0

func (c *VolumeRecurringJobClient) Update(existing *VolumeRecurringJob, updates interface{}) (*VolumeRecurringJob, error)

type VolumeRecurringJobCollection added in v1.2.0

type VolumeRecurringJobCollection struct {
	Collection
	Data []VolumeRecurringJob `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeRecurringJobCollection) Next added in v1.2.0

type VolumeRecurringJobInput added in v1.2.0

type VolumeRecurringJobInput struct {
	Resource `yaml:"-"`

	IsGroup bool `json:"isGroup,omitempty" yaml:"is_group,omitempty"`

	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type VolumeRecurringJobInputClient added in v1.2.0

type VolumeRecurringJobInputClient struct {
	// contains filtered or unexported fields
}

func (*VolumeRecurringJobInputClient) ById added in v1.2.0

func (*VolumeRecurringJobInputClient) Create added in v1.2.0

func (*VolumeRecurringJobInputClient) Delete added in v1.2.0

func (*VolumeRecurringJobInputClient) List added in v1.2.0

func (*VolumeRecurringJobInputClient) Update added in v1.2.0

func (c *VolumeRecurringJobInputClient) Update(existing *VolumeRecurringJobInput, updates interface{}) (*VolumeRecurringJobInput, error)

type VolumeRecurringJobInputCollection added in v1.2.0

type VolumeRecurringJobInputCollection struct {
	Collection
	Data []VolumeRecurringJobInput `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeRecurringJobInputCollection) Next added in v1.2.0

type VolumeRecurringJobInputOperations added in v1.2.0

type VolumeRecurringJobInputOperations interface {
	List(opts *ListOpts) (*VolumeRecurringJobInputCollection, error)
	Create(opts *VolumeRecurringJobInput) (*VolumeRecurringJobInput, error)
	Update(existing *VolumeRecurringJobInput, updates interface{}) (*VolumeRecurringJobInput, error)
	ById(id string) (*VolumeRecurringJobInput, error)
	Delete(container *VolumeRecurringJobInput) error
}

type VolumeRecurringJobOperations added in v1.2.0

type VolumeRecurringJobOperations interface {
	List(opts *ListOpts) (*VolumeRecurringJobCollection, error)
	Create(opts *VolumeRecurringJob) (*VolumeRecurringJob, error)
	Update(existing *VolumeRecurringJob, updates interface{}) (*VolumeRecurringJob, error)
	ById(id string) (*VolumeRecurringJob, error)
	Delete(container *VolumeRecurringJob) error
}

type WorkloadStatus added in v0.6.0

type WorkloadStatus struct {
	Resource `yaml:"-"`

	PodName string `json:"podName,omitempty" yaml:"pod_name,omitempty"`

	PodStatus string `json:"podStatus,omitempty" yaml:"pod_status,omitempty"`

	WorkloadName string `json:"workloadName,omitempty" yaml:"workload_name,omitempty"`

	WorkloadType string `json:"workloadType,omitempty" yaml:"workload_type,omitempty"`
}

type WorkloadStatusClient added in v0.6.0

type WorkloadStatusClient struct {
	// contains filtered or unexported fields
}

func (*WorkloadStatusClient) ById added in v0.6.0

func (*WorkloadStatusClient) Create added in v0.6.0

func (c *WorkloadStatusClient) Create(container *WorkloadStatus) (*WorkloadStatus, error)

func (*WorkloadStatusClient) Delete added in v0.6.0

func (c *WorkloadStatusClient) Delete(container *WorkloadStatus) error

func (*WorkloadStatusClient) List added in v0.6.0

func (*WorkloadStatusClient) Update added in v0.6.0

func (c *WorkloadStatusClient) Update(existing *WorkloadStatus, updates interface{}) (*WorkloadStatus, error)

type WorkloadStatusCollection added in v0.6.0

type WorkloadStatusCollection struct {
	Collection
	Data []WorkloadStatus `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadStatusCollection) Next added in v0.6.0

type WorkloadStatusOperations added in v0.6.0

type WorkloadStatusOperations interface {
	List(opts *ListOpts) (*WorkloadStatusCollection, error)
	Create(opts *WorkloadStatus) (*WorkloadStatus, error)
	Update(existing *WorkloadStatus, updates interface{}) (*WorkloadStatus, error)
	ById(id string) (*WorkloadStatus, error)
	Delete(container *WorkloadStatus) error
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL