command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ClusterId string `json:"clusterId,omitempty"`
	Since     string `json:"since,omitempty"`
}

type Clusters

type Clusters map[string]Cluster

type Command

type Command struct {
	Id             string                `json:"id,omitempty"`
	OwnerId        string                `json:"ownerId,omitempty"`
	Kind           base.Kind             `json:"kind,omitempty"`
	Version        float32               `json:"version"`
	Created        string                `json:"created,omitempty"`
	LastModified   string                `json:"lastModified,omitempty"`
	Links          base.Links            `json:"links,omitempty"`
	Type           string                `json:"type,omitempty"`
	LifecycleStage CommandLifecycleStage `json:"lifecycleStage,omitempty"`
	Spec           CommandSpec           `json:"spec,omitempty"`
	Status         CommandStatus         `json:"status,omitempty"`
}

type CommandLifecycleStage

type CommandLifecycleStage string
const (
	CommandLifecycleStagePending   CommandLifecycleStage = "pending"
	CommandLifecycleStageRunning   CommandLifecycleStage = "running"
	CommandLifecycleStageCancelled CommandLifecycleStage = "cancelled"
	CommandLifecycleStageCompleted CommandLifecycleStage = "completed"
	CommandLifecycleStageFailed    CommandLifecycleStage = "failed"
)

type CommandSpec

type CommandSpec map[string]any

type CommandStatus

type CommandStatus map[string]any

type CreateVolumeSnapshotSpec

type CreateVolumeSnapshotSpec struct {
	Location               string                                 `json:"location,omitempty"`
	VolumeIndex            float32                                `json:"volumeIndex"`
	SnapshotName           string                                 `json:"snapshotName,omitempty"`
	SnapshotExpirationDate string                                 `json:"snapshotExpirationDate,omitempty"`
	SnapshotTags           []CreateVolumeSnapshotSpecSnapshotTags `json:"snapshotTags,omitempty"`
}

type CreateVolumeSnapshotSpecSnapshotTags

type CreateVolumeSnapshotSpecSnapshotTags map[string]string

type CreateVolumeSnapshotStatus

type CreateVolumeSnapshotStatus struct {
	Stage             CreateVolumeSnapshotStatusStage `json:"stage,omitempty"`
	Messages          []string                        `json:"messages,omitempty"`
	ClusterId         string                          `json:"clusterId,omitempty"`
	NewSnapshotId     string                          `json:"newSnapshotId,omitempty"`
	NewSnapshotSize   float32                         `json:"newSnapshotSize"`
	CreationStartTime string                          `json:"creationStartTime,omitempty"`
}

type CreateVolumeSnapshotStatusStage

type CreateVolumeSnapshotStatusStage string
const (
	CreateVolumeSnapshotStatusStageCreateSnapshot  CreateVolumeSnapshotStatusStage = "create-snapshot"
	CreateVolumeSnapshotStatusStageUpdateVolumeSet CreateVolumeSnapshotStatusStage = "update-volume-set"
	CreateVolumeSnapshotStatusStageCleanupK8S      CreateVolumeSnapshotStatusStage = "cleanup-k8s"
	CreateVolumeSnapshotStatusStageRevert          CreateVolumeSnapshotStatusStage = "revert"
)

type CronWorkloadContainerOverrides

type CronWorkloadContainerOverrides struct {
	Name    string          `json:"name,omitempty"`
	Env     []env.EnvVar    `json:"env,omitempty"`
	Command string          `json:"command,omitempty"`
	Args    []string        `json:"args,omitempty"`
	Memory  workload.Memory `json:"memory,omitempty"`
	Cpu     workload.Cpu    `json:"cpu,omitempty"`
	Image   base.ImageLink  `json:"image,omitempty"`
}

type DeleteCloudDevicesStatus

type DeleteCloudDevicesStatus struct {
	ClusterId              string                                         `json:"clusterId,omitempty"`
	Volume                 DeleteCloudDevicesStatusVolume                 `json:"volume,omitempty"`
	Stage                  DeleteCloudDevicesStatusStage                  `json:"stage,omitempty"`
	Messages               []string                                       `json:"messages,omitempty"`
	PvcRef                 DeleteCloudDevicesStatusPvcRef                 `json:"pvcRef,omitempty"`
	SnapshotDeletionStatus DeleteCloudDevicesStatusSnapshotDeletionStatus `json:"snapshotDeletionStatus,omitempty"`
}

type DeleteCloudDevicesStatusPvcRef

type DeleteCloudDevicesStatusPvcRef struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
}

type DeleteCloudDevicesStatusSnapshotDeletionStatus

type DeleteCloudDevicesStatusSnapshotDeletionStatus map[string]SnapshotDeletionStatus

type DeleteCloudDevicesStatusStage

type DeleteCloudDevicesStatusStage string
const (
	DeleteCloudDevicesStatusStageDeleteSnapshots        DeleteCloudDevicesStatusStage = "delete-snapshots"
	DeleteCloudDevicesStatusStageDeleteVolume           DeleteCloudDevicesStatusStage = "delete-volume"
	DeleteCloudDevicesStatusStageFinalizeVolumeDeletion DeleteCloudDevicesStatusStage = "finalize-volume-deletion"
	DeleteCloudDevicesStatusStageUpdateVolumeSet        DeleteCloudDevicesStatusStage = "update-volume-set"
)

type DeleteCloudDevicesStatusVolume

type DeleteCloudDevicesStatusVolume struct {
	Lifecycle           DeleteCloudDevicesStatusVolumeLifecycle  `json:"lifecycle,omitempty"`
	StorageDeviceId     string                                   `json:"storageDeviceId,omitempty"`
	OldStorageDeviceIds []string                                 `json:"oldStorageDeviceIds,omitempty"`
	ResourceName        string                                   `json:"resourceName,omitempty"`
	Index               float32                                  `json:"index"`
	CurrentSize         float32                                  `json:"currentSize"`
	CurrentBytesUsed    float32                                  `json:"currentBytesUsed"`
	Iops                float32                                  `json:"iops"`
	Throughput          float32                                  `json:"throughput"`
	Driver              string                                   `json:"driver,omitempty"`
	VolumeSnapshots     []volumeSet.VolumeSnapshot               `json:"volumeSnapshots,omitempty"`
	Attributes          DeleteCloudDevicesStatusVolumeAttributes `json:"attributes,omitempty"`
}

type DeleteCloudDevicesStatusVolumeAttributes

type DeleteCloudDevicesStatusVolumeAttributes map[string]string

type DeleteCloudDevicesStatusVolumeLifecycle

type DeleteCloudDevicesStatusVolumeLifecycle string
const (
	DeleteCloudDevicesStatusVolumeLifecycleCreating  DeleteCloudDevicesStatusVolumeLifecycle = "creating"
	DeleteCloudDevicesStatusVolumeLifecycleUnused    DeleteCloudDevicesStatusVolumeLifecycle = "unused"
	DeleteCloudDevicesStatusVolumeLifecycleUnbound   DeleteCloudDevicesStatusVolumeLifecycle = "unbound"
	DeleteCloudDevicesStatusVolumeLifecycleBound     DeleteCloudDevicesStatusVolumeLifecycle = "bound"
	DeleteCloudDevicesStatusVolumeLifecycleDeleted   DeleteCloudDevicesStatusVolumeLifecycle = "deleted"
	DeleteCloudDevicesStatusVolumeLifecycleRepairing DeleteCloudDevicesStatusVolumeLifecycle = "repairing"
)

type DeleteOrphanedVolumeSpec

type DeleteOrphanedVolumeSpec struct {
	StorageDeviceId string `json:"storageDeviceId,omitempty"`
	Org             string `json:"org,omitempty"`
	Gvc             string `json:"gvc,omitempty"`
	WorkloadName    string `json:"workloadName,omitempty"`
	VolumeSetUri    string `json:"volumeSetUri,omitempty"`
	Driver          string `json:"driver,omitempty"`
}

type DeleteOrphanedVolumeStatus

type DeleteOrphanedVolumeStatus struct {
	ClusterId string                          `json:"clusterId,omitempty"`
	Stage     DeleteOrphanedVolumeStatusStage `json:"stage,omitempty"`
	Messages  []string                        `json:"messages,omitempty"`
}

type DeleteOrphanedVolumeStatusStage

type DeleteOrphanedVolumeStatusStage string
const (
	DeleteOrphanedVolumeStatusStageCreateDeletionRecords DeleteOrphanedVolumeStatusStage = "create-deletion-records"
	DeleteOrphanedVolumeStatusStageDelete                DeleteOrphanedVolumeStatusStage = "delete"
	DeleteOrphanedVolumeStatusStageCleanupK8S            DeleteOrphanedVolumeStatusStage = "cleanup-k8s"
)

type DeleteVolumeSetLocationStatus

type DeleteVolumeSetLocationStatus struct {
	Stage   DeleteVolumeSetLocationStatusStage   `json:"stage,omitempty"`
	Volumes DeleteVolumeSetLocationStatusVolumes `json:"volumes,omitempty"`
}

type DeleteVolumeSetLocationStatusStage

type DeleteVolumeSetLocationStatusStage string
const (
	DeleteVolumeSetLocationStatusStageDeleteVolumes         DeleteVolumeSetLocationStatusStage = "delete-volumes"
	DeleteVolumeSetLocationStatusStageDeleteOrphanedVolumes DeleteVolumeSetLocationStatusStage = "delete-orphaned-volumes"
	DeleteVolumeSetLocationStatusStageCleanupFilesystem     DeleteVolumeSetLocationStatusStage = "cleanup-filesystem"
	DeleteVolumeSetLocationStatusStageComplete              DeleteVolumeSetLocationStatusStage = "complete"
)

type DeleteVolumeSetLocationStatusVolumes

type DeleteVolumeSetLocationStatusVolumes map[string]DeleteCloudDevicesStatus

type DeleteVolumeSetSpec

type DeleteVolumeSetSpec struct {
	VolumeSet DeleteVolumeSetSpecVolumeSet `json:"volumeSet,omitempty"`
}

type DeleteVolumeSetSpecVolumeSet

type DeleteVolumeSetSpecVolumeSet struct {
	Id           string                    `json:"id,omitempty"`
	Name         base.Name                 `json:"name,omitempty"`
	Kind         base.Kind                 `json:"kind,omitempty"`
	Version      float32                   `json:"version"`
	Description  string                    `json:"description,omitempty"`
	Tags         base.Tags                 `json:"tags,omitempty"`
	Created      string                    `json:"created,omitempty"`
	LastModified string                    `json:"lastModified,omitempty"`
	Links        base.Links                `json:"links,omitempty"`
	Spec         volumeSet.VolumeSetSpec   `json:"spec,omitempty"`
	Status       volumeSet.VolumeSetStatus `json:"status,omitempty"`
	Gvc          any                       `json:"gvc,omitempty"`
}

type DeleteVolumeSetStatus

type DeleteVolumeSetStatus map[string]DeleteVolumeSetLocationStatus

type DeleteVolumeSnapshotSpec

type DeleteVolumeSnapshotSpec struct {
	Location     string  `json:"location,omitempty"`
	VolumeIndex  float32 `json:"volumeIndex"`
	SnapshotName string  `json:"snapshotName,omitempty"`
}

type DeleteVolumeSnapshotStatus

type DeleteVolumeSnapshotStatus struct {
	ClusterId string                             `json:"clusterId,omitempty"`
	Snapshot  DeleteVolumeSnapshotStatusSnapshot `json:"snapshot,omitempty"`
	Stage     DeleteVolumeSnapshotStatusStage    `json:"stage,omitempty"`
	Messages  []string                           `json:"messages,omitempty"`
}

type DeleteVolumeSnapshotStatusSnapshot

type DeleteVolumeSnapshotStatusSnapshot struct {
	Name    string                                   `json:"name,omitempty"`
	Id      string                                   `json:"id,omitempty"`
	Created string                                   `json:"created,omitempty"`
	Expires string                                   `json:"expires,omitempty"`
	Size    float32                                  `json:"size"`
	Tags    []DeleteVolumeSnapshotStatusSnapshotTags `json:"tags,omitempty"`
}

type DeleteVolumeSnapshotStatusSnapshotTags

type DeleteVolumeSnapshotStatusSnapshotTags map[string]string

type DeleteVolumeSnapshotStatusStage

type DeleteVolumeSnapshotStatusStage string
const (
	DeleteVolumeSnapshotStatusStageDeleteSnapshot  DeleteVolumeSnapshotStatusStage = "delete-snapshot"
	DeleteVolumeSnapshotStatusStageUpdateVolumeSet DeleteVolumeSnapshotStatusStage = "update-volume-set"
)

type DeleteVolumeSpec

type DeleteVolumeSpec struct {
	Location    string  `json:"location,omitempty"`
	VolumeIndex float32 `json:"volumeIndex"`
}

type DeleteVolumeStatus

type DeleteVolumeStatus struct {
	Stage                   DeleteVolumeStatusStage `json:"stage,omitempty"`
	ClusterId               string                  `json:"clusterId,omitempty"`
	Messages                []string                `json:"messages,omitempty"`
	InUseByWorkloadId       string                  `json:"inUseByWorkloadId,omitempty"`
	StorageDeviceIdToRemove string                  `json:"storageDeviceIdToRemove,omitempty"`
}

type DeleteVolumeStatusStage

type DeleteVolumeStatusStage string
const (
	DeleteVolumeStatusStageUpdateVolumeSet         DeleteVolumeStatusStage = "update-volume-set"
	DeleteVolumeStatusStageDeleteStorageResources  DeleteVolumeStatusStage = "delete-storage-resources"
	DeleteVolumeStatusStageShutdownReplica         DeleteVolumeStatusStage = "shutdown-replica"
	DeleteVolumeStatusStageAwaitReplicaTermination DeleteVolumeStatusStage = "await-replica-termination"
	DeleteVolumeStatusStageFail                    DeleteVolumeStatusStage = "fail"
	DeleteVolumeStatusStageCleanupK8S              DeleteVolumeStatusStage = "cleanup-k8s"
)

type ExpandVolumeSpec

type ExpandVolumeSpec struct {
	Location           string  `json:"location,omitempty"`
	VolumeIndex        float32 `json:"volumeIndex"`
	NewStorageCapacity float32 `json:"newStorageCapacity"`
}

type ExpandVolumeStatus

type ExpandVolumeStatus struct {
	ClusterId          string                  `json:"clusterId,omitempty"`
	Messages           []string                `json:"messages,omitempty"`
	Stage              ExpandVolumeStatusStage `json:"stage,omitempty"`
	ReplicaRestartedAt string                  `json:"replicaRestartedAt,omitempty"`
}

type ExpandVolumeStatusStage

type ExpandVolumeStatusStage string
const (
	ExpandVolumeStatusStageExpandVolume            ExpandVolumeStatusStage = "expand-volume"
	ExpandVolumeStatusStageAwaitReplicaTermination ExpandVolumeStatusStage = "await-replica-termination"
	ExpandVolumeStatusStageAwaitExpansionCompleted ExpandVolumeStatusStage = "await-expansion-completed"
	ExpandVolumeStatusStageUpdateVolumeSet         ExpandVolumeStatusStage = "update-volume-set"
	ExpandVolumeStatusStageRecreateReplica         ExpandVolumeStatusStage = "recreate-replica"
	ExpandVolumeStatusStageCleanupK8S              ExpandVolumeStatusStage = "cleanup-k8s"
	ExpandVolumeStatusStageRevert                  ExpandVolumeStatusStage = "revert"
)

type ReplaceVolumeSpec

type ReplaceVolumeSpec struct {
	Location    string  `json:"location,omitempty"`
	VolumeIndex float32 `json:"volumeIndex"`
}

type ReplaceVolumeStatus

type ReplaceVolumeStatus struct {
	Stage                   ReplaceVolumeStatusStage               `json:"stage,omitempty"`
	Messages                []string                               `json:"messages,omitempty"`
	ClusterId               string                                 `json:"clusterId,omitempty"`
	InUseByWorkloadId       string                                 `json:"inUseByWorkloadId,omitempty"`
	StorageDeviceIdToRemove string                                 `json:"storageDeviceIdToRemove,omitempty"`
	NewStorageDeviceId      string                                 `json:"newStorageDeviceId,omitempty"`
	NewVolumeAttributes     ReplaceVolumeStatusNewVolumeAttributes `json:"newVolumeAttributes,omitempty"`
	NewResourceName         string                                 `json:"newResourceName,omitempty"`
	NextVolumeSize          float32                                `json:"nextVolumeSize"`
}

type ReplaceVolumeStatusNewVolumeAttributes

type ReplaceVolumeStatusNewVolumeAttributes map[string]string

type ReplaceVolumeStatusStage

type ReplaceVolumeStatusStage string
const (
	ReplaceVolumeStatusStageCreateVolume               ReplaceVolumeStatusStage = "create-volume"
	ReplaceVolumeStatusStageCleanupAfterVolumeCreation ReplaceVolumeStatusStage = "cleanup-after-volume-creation"
	ReplaceVolumeStatusStageUpdateVolumeSet            ReplaceVolumeStatusStage = "update-volume-set"
	ReplaceVolumeStatusStageConfigureStorageResources  ReplaceVolumeStatusStage = "configure-storage-resources"
	ReplaceVolumeStatusStageRemoveFinalizer            ReplaceVolumeStatusStage = "remove-finalizer"
	ReplaceVolumeStatusStageShutdownReplica            ReplaceVolumeStatusStage = "shutdown-replica"
	ReplaceVolumeStatusStageAwaitReplicaTermination    ReplaceVolumeStatusStage = "await-replica-termination"
	ReplaceVolumeStatusStageCleanupK8S                 ReplaceVolumeStatusStage = "cleanup-k8s"
	ReplaceVolumeStatusStageFail                       ReplaceVolumeStatusStage = "fail"
	ReplaceVolumeStatusStageRevert                     ReplaceVolumeStatusStage = "revert"
	ReplaceVolumeStatusStageCleanupOldStorageDevice    ReplaceVolumeStatusStage = "cleanup-old-storage-device"
	ReplaceVolumeStatusStageRestartReplica             ReplaceVolumeStatusStage = "restart-replica"
)

type RestoreVolumeSpec

type RestoreVolumeSpec struct {
	Location     string  `json:"location,omitempty"`
	VolumeIndex  float32 `json:"volumeIndex"`
	SnapshotName string  `json:"snapshotName,omitempty"`
}

type RunCronWorkloadSpec

type RunCronWorkloadSpec struct {
	Location           string                           `json:"location,omitempty"`
	ContainerOverrides []CronWorkloadContainerOverrides `json:"containerOverrides,omitempty"`
}

type RunCronWorkloadStatus

type RunCronWorkloadStatus struct {
	Replica string `json:"replica,omitempty"`
}

type SnapshotDeletionStatus

type SnapshotDeletionStatus struct {
	Stage    SnapshotDeletionStatusStage `json:"stage,omitempty"`
	Messages []string                    `json:"messages,omitempty"`
}

type SnapshotDeletionStatusStage

type SnapshotDeletionStatusStage string
const (
	SnapshotDeletionStatusStagePending             SnapshotDeletionStatusStage = "pending"
	SnapshotDeletionStatusStageK8SResourcesCreated SnapshotDeletionStatusStage = "k8s-resources-created"
	SnapshotDeletionStatusStageDeleted             SnapshotDeletionStatusStage = "deleted"
)

type StopReplicaSpec

type StopReplicaSpec struct {
	Location string `json:"location,omitempty"`
	Replica  string `json:"replica,omitempty"`
}

type StopReplicaStatus

type StopReplicaStatus struct {
	ClusterId               string `json:"clusterId,omitempty"`
	PodCreatedByCommandLink string `json:"podCreatedByCommandLink,omitempty"`
	PodId                   string `json:"podId,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL