types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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