Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct {
*lstypes.Snapshot // anonymous field
// SnapshotID is the Polly SnapshotID
SnapshotID string `json:"snapshotid,omitempty"`
// the Storage provider identifier
ServiceName string `json:"serviceName,omitempty"`
// Scheduler is the exclusive owner if specifier
Scheduler string `json:"scheduler,omitempty"`
}
Snapshot is a libStorage Volume snap with Polly annotations
type VersionResponse ¶
type VersionResponse struct {
VersionPollyAdminAPI string `json:"versionPollyAdminAPI,omitempty"`
VersionPollySchedulerAPI string `json:"versionPollySchedulerAPI,omitempty"`
VersionPollyBuild string `json:"versionPollyBuild,omitempty"`
}
VersionResponse is Polly Version
type Volume ¶
type Volume struct {
*lstypes.Volume // anonymous field from libstorage
// VolumeID is the Polly VolumeID
VolumeID string `json:"volumeid,omitempty"`
// ServiceName comes from libstorage
ServiceName string `json:"serviceName,omitempty"`
// Scheduler is the exclusive owner if specified
Schedulers []string `json:"schedulers,omitempty"`
// Labels are (admin)user applied via API
Labels map[string]string `json:"labels,omitempty"`
}
Volume is a storage libStorage Volume with Polly annotations
type VolumeCreateRequest ¶
type VolumeCreateRequest struct {
ServiceName string `json:"service,omitempty"`
Name string `json:"name,omitempty"`
VolumeType string `json:"volumeType,omitempty"`
Size int64 `json:"size,omitempty"`
IOPS int64 `json:"iops,omitempty"`
AvailabilityZone string `json:"availabilityZone,omitempty"`
Schedulers []string `json:"schedulers,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Fields map[string]string `json:"fields,omitempty"`
}
VolumeCreateRequest creates a volume
type VolumeLabelRequest ¶
type VolumeLabelRequest struct {
VolumeID string `json:"volumeID,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}
VolumeLabelRequest creates labels on volumes
type VolumeLabelsRemoveRequest ¶
type VolumeLabelsRemoveRequest struct {
VolumeID string `json:"volumeID,omitempty"`
Labels []string `json:"labels,omitempty"`
}
VolumeLabelsRemoveRequest removes labels on volumes
type VolumeOfferRequest ¶
type VolumeOfferRequest struct {
VolumeID string `json:"volumeID,omitempty"`
Schedulers []string `json:"schedulers,omitempty"`
}
VolumeOfferRequest contains offer information
type VolumeOfferRevokeRequest ¶
type VolumeOfferRevokeRequest struct {
VolumeID string `json:"volumeID,omitempty"`
Schedulers []string `json:"schedulers,omitempty"`
}
VolumeOfferRevokeRequest contains offer revoke information
Click to show internal directories.
Click to hide internal directories.