Documentation
¶
Index ¶
- func Initialize()
- type AutogrowPolicyResult
- type BackendDependent
- type BackendResult
- type GroupSnapshotResult
- type NodeDependent
- type NodeResult
- type Result
- type SmartCopier
- type SnapshotResult
- type StorageClassResult
- type SubordinateVolumeResult
- type Subquery
- func DeleteAutogrowPolicy(id string) Subquery
- func DeleteBackend(id string) Subquery
- func DeleteGroupSnapshot(id string) Subquery
- func DeleteNode(id string) Subquery
- func DeleteSnapshot(id string) Subquery
- func DeleteStorageClass(id string) Subquery
- func DeleteSubordinateVolume(id string) Subquery
- func DeleteVolume(id string) Subquery
- func DeleteVolumePublication(volumeID, nodeID string) Subquery
- func InconsistentReadAutogrowPolicy(id string) Subquery
- func InconsistentReadBackend(id string) Subquery
- func InconsistentReadBackendByName(name string) Subquery
- func InconsistentReadGroupSnapshot(id string) Subquery
- func InconsistentReadNode(id string) Subquery
- func InconsistentReadSnapshot(id string) Subquery
- func InconsistentReadStorageClass(id string) Subquery
- func InconsistentReadSubordinateVolume(id string) Subquery
- func InconsistentReadVolume(id string) Subquery
- func InconsistentReadVolumePublication(volumeID, nodeID string) Subquery
- func ListAutogrowPolicies() Subquery
- func ListBackends() Subquery
- func ListCloneVolumesBySnapshot(snapshotName, internalSnapshotName string) Subquery
- func ListGroupSnapshots() Subquery
- func ListNodes() Subquery
- func ListReadOnlyCloneVolumes() Subquery
- func ListReadOnlyCloneVolumesForSources(sourceVolumeNames ...string) Subquery
- func ListSnapshots() Subquery
- func ListSnapshotsByInternalName(internalName string) Subquery
- func ListSnapshotsByName(snapshotName string) Subquery
- func ListSnapshotsForGroup(groupName string) Subquery
- func ListSnapshotsForVolume(volumeName string) Subquery
- func ListStorageClasses() Subquery
- func ListSubordinateVolumes() Subquery
- func ListSubordinateVolumesForAutogrowPolicy(autogrowPolicyName string) Subquery
- func ListSubordinateVolumesForAutogrowPolicyReevaluation(policyName string) Subquery
- func ListSubordinateVolumesForStorageClass(scName string) Subquery
- func ListSubordinateVolumesForStorageClassWithoutAutogrowOverride(scName string) Subquery
- func ListSubordinateVolumesForVolume(volumeID string) Subquery
- func ListVolumePublications() Subquery
- func ListVolumePublicationsForNode(nodeName string) Subquery
- func ListVolumePublicationsForVolume(volumeName string) Subquery
- func ListVolumes() Subquery
- func ListVolumesByInternalName(internalVolName string) Subquery
- func ListVolumesForAutogrowPolicy(autogrowPolicyName string) Subquery
- func ListVolumesForAutogrowPolicyReevaluation(policyName string) Subquery
- func ListVolumesForBackend(backendID string) Subquery
- func ListVolumesForNode(nodeName string) Subquery
- func ListVolumesForStorageClass(scName string) Subquery
- func ListVolumesForStorageClassWithoutAutogrowOverride(scName string) Subquery
- func LockCache() Subquery
- func Query(query ...Subquery) []Subquery
- func ReadAutogrowPolicy(id string) Subquery
- func ReadBackend(id string) Subquery
- func ReadBackendByName(name string) Subquery
- func ReadGroupSnapshot(id string) Subquery
- func ReadNode(id string) Subquery
- func ReadSnapshot(id string) Subquery
- func ReadStorageClass(id string) Subquery
- func ReadSubordinateVolume(id string) Subquery
- func ReadVolume(id string) Subquery
- func ReadVolumePublication(volumeID, nodeID string) Subquery
- func UpsertAutogrowPolicy(id string) Subquery
- func UpsertBackend(id, name, newName string) Subquery
- func UpsertGroupSnapshot(id string) Subquery
- func UpsertNode(id string) Subquery
- func UpsertSnapshot(volumeID, id string) Subquery
- func UpsertStorageClass(id string) Subquery
- func UpsertSubordinateVolume(id, volumeID string) Subquery
- func UpsertVolume(volumeName, backendID string) Subquery
- func UpsertVolumeByBackendName(volumeName, backendName string) Subquery
- func UpsertVolumeByInternalName(volumeName, internalVolumeName, newInternalVolumeName, backendID string) Subquery
- func UpsertVolumePublication(volumeID, nodeID string) Subquery
- type UniqueKey
- type VolumeDependent
- type VolumePublicationResult
- type VolumeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutogrowPolicyResult ¶
type AutogrowPolicyResult struct {
Read *storage.AutogrowPolicy
Upsert func(*storage.AutogrowPolicy)
Delete func()
}
type BackendDependent ¶
type BackendDependent interface {
GetBackendID() string
}
type BackendResult ¶
type GroupSnapshotResult ¶
type GroupSnapshotResult struct {
Read *storage.GroupSnapshot
Upsert func(*storage.GroupSnapshot)
Delete func()
}
type NodeDependent ¶
type NodeDependent interface {
GetNodeID() string
}
type NodeResult ¶
type Result ¶
type Result struct {
Nodes []*models.Node
StorageClasses []*storageclass.StorageClass
Backends []storage.Backend
Volumes []*storage.Volume
SubordinateVolumes []*storage.Volume
VolumePublications []*models.VolumePublication
Snapshots []*storage.Snapshot
AutogrowPolicies []*storage.AutogrowPolicy
GroupSnapshots []*storage.GroupSnapshot
Node NodeResult
StorageClass StorageClassResult
Backend BackendResult
Volume VolumeResult
SubordinateVolume SubordinateVolumeResult
VolumePublication VolumePublicationResult
Snapshot SnapshotResult
AutogrowPolicy AutogrowPolicyResult
GroupSnapshot GroupSnapshotResult
}
type SmartCopier ¶
type SmartCopier interface {
SmartCopy() interface{}
}
SmartCopier is an interface for objects that can be copied for the cache. If the object implements interior mutability, it may be implemented as a shallow copy. If not, it is implemented as a deep copy.
type SnapshotResult ¶
type StorageClassResult ¶
type StorageClassResult struct {
Read *storageclass.StorageClass
Upsert func(*storageclass.StorageClass)
Delete func()
}
type SubordinateVolumeResult ¶
type Subquery ¶
type Subquery struct {
// contains filtered or unexported fields
}
func DeleteAutogrowPolicy ¶
func DeleteBackend ¶
func DeleteGroupSnapshot ¶
func DeleteNode ¶
func DeleteSnapshot ¶
func DeleteStorageClass ¶
func DeleteSubordinateVolume ¶
func DeleteVolume ¶
func DeleteVolumePublication ¶
func InconsistentReadBackend ¶
func InconsistentReadNode ¶
func InconsistentReadVolume ¶
func ListAutogrowPolicies ¶
func ListAutogrowPolicies() Subquery
func ListBackends ¶
func ListBackends() Subquery
func ListCloneVolumesBySnapshot ¶
ListCloneVolumesBySnapshot returns all clone volumes created from a snapshot. A clone volume snapshot source can be the snapshot name or internal snapshot name. Both snapshot name and internal snapshot name must be provided. If either is empty, no clone volumes will be returned.
func ListGroupSnapshots ¶
func ListGroupSnapshots() Subquery
func ListReadOnlyCloneVolumes ¶
func ListReadOnlyCloneVolumes() Subquery
func ListReadOnlyCloneVolumesForSources ¶
ListReadOnlyCloneVolumesForSources returns all read-only clone volumes whose CloneSourceVolume matches any of the provided source volume names.
func ListSnapshots ¶
func ListSnapshots() Subquery
func ListSnapshotsByName ¶
func ListSnapshotsForGroup ¶
func ListSnapshotsForVolume ¶
func ListStorageClasses ¶
func ListStorageClasses() Subquery
func ListSubordinateVolumes ¶
func ListSubordinateVolumes() Subquery
func ListSubordinateVolumesForAutogrowPolicy ¶
ListSubordinateVolumesForAutogrowPolicy returns all subordinate volumes using a specific autogrow policy
func ListSubordinateVolumesForAutogrowPolicyReevaluation ¶
ListSubordinateVolumesForAutogrowPolicyReevaluation returns subordinate volumes that might need to use the given policy. This includes subordinate volumes that: 1. Have a volume-level autogrow policy matching the policy name (case-insensitive), OR 2. Have no volume-level autogrow policy (might inherit from StorageClass) AND are not already using the policy.
func ListSubordinateVolumesForStorageClass ¶
ListSubordinateVolumesForStorageClass returns all subordinate volumes using a specific storage class
func ListSubordinateVolumesForStorageClassWithoutAutogrowOverride ¶
ListSubordinateVolumesForStorageClassWithoutAutogrowOverride returns subordinate volumes using a specific storage class that have NO volume-level autogrow policy (i.e., they inherit from StorageClass)
func ListVolumePublications ¶
func ListVolumePublications() Subquery
func ListVolumes ¶
func ListVolumes() Subquery
func ListVolumesForAutogrowPolicy ¶
ListVolumesForAutogrowPolicy returns all volumes using a specific autogrow policy
func ListVolumesForAutogrowPolicyReevaluation ¶
ListVolumesForAutogrowPolicyReevaluation returns volumes that might need to use the given policy. This includes volumes that: 1. Have a volume-level autogrow policy matching the policy name (case-insensitive), OR 2. Have no volume-level autogrow policy (might inherit from StorageClass) AND are not already using the policy.
func ListVolumesForBackend ¶
func ListVolumesForNode ¶
func ListVolumesForStorageClass ¶
ListVolumesForStorageClass returns all volumes using a specific storage class
func ListVolumesForStorageClassWithoutAutogrowOverride ¶
ListVolumesForStorageClassWithoutAutogrowOverride returns volumes using a specific storage class that have NO volume-level autogrow policy (i.e., they inherit from StorageClass)
func LockCache ¶
func LockCache() Subquery
LockCache takes a write lock on the cache root, which blocks all other operations.
func ReadAutogrowPolicy ¶
func ReadBackend ¶
func ReadBackendByName ¶
func ReadGroupSnapshot ¶
func ReadSnapshot ¶
func ReadStorageClass ¶
func ReadSubordinateVolume ¶
func ReadVolume ¶
func ReadVolumePublication ¶
func UpsertAutogrowPolicy ¶
func UpsertBackend ¶
func UpsertGroupSnapshot ¶
func UpsertNode ¶
func UpsertSnapshot ¶
func UpsertStorageClass ¶
func UpsertSubordinateVolume ¶
func UpsertVolume ¶
func UpsertVolumePublication ¶
type VolumeDependent ¶
type VolumeDependent interface {
GetVolumeID() string
}
type VolumePublicationResult ¶
type VolumePublicationResult struct {
Read *models.VolumePublication
Upsert func(*models.VolumePublication)
Delete func()
}