Documentation ¶
Index ¶
- Constants
- func CreateShare(c *config.CloudCredentials, createOpts *shares.CreateOpts) (*shares.TurboResponse, error)
- func CreateShareCompleted(c *config.CloudCredentials, createOpts *shares.Share) (*shares.TurboResponse, error)
- func DeleteShare(c *config.CloudCredentials, shareID string) error
- func DeleteShareCompleted(c *config.CloudCredentials, shareID string) error
- func ExpandShare(c *config.CloudCredentials, id string, newSize int) error
- func ExpandShareCompleted(c *config.CloudCredentials, id string, newSize int) error
- func GetShare(c *config.CloudCredentials, shareID string) (*shares.Turbo, error)
- func ListPageShares(c *config.CloudCredentials, opts shares.ListOpts) (*shares.PagedList, error)
- func ListTotalShares(c *config.CloudCredentials) ([]shares.Turbo, error)
- func WaitForShareAvailable(c *config.CloudCredentials, shareID string) error
- func WaitForShareDeleted(c *config.CloudCredentials, shareID string) error
- func WaitForShareExpanded(c *config.CloudCredentials, shareID string) error
Constants ¶
View Source
const ( DefaultInitDelay = 15 * time.Second DefaultFactor = 1.02 DefaultSteps = 30 )
Variables ¶
This section is empty.
Functions ¶
func CreateShare ¶
func CreateShare(c *config.CloudCredentials, createOpts *shares.CreateOpts) (*shares.TurboResponse, error)
func CreateShareCompleted ¶
func CreateShareCompleted(c *config.CloudCredentials, createOpts *shares.Share) ( *shares.TurboResponse, error)
func DeleteShare ¶
func DeleteShare(c *config.CloudCredentials, shareID string) error
func DeleteShareCompleted ¶
func DeleteShareCompleted(c *config.CloudCredentials, shareID string) error
func ExpandShare ¶
func ExpandShare(c *config.CloudCredentials, id string, newSize int) error
func ExpandShareCompleted ¶
func ExpandShareCompleted(c *config.CloudCredentials, id string, newSize int) error
func ListPageShares ¶
func ListTotalShares ¶
func ListTotalShares(c *config.CloudCredentials) ([]shares.Turbo, error)
func WaitForShareAvailable ¶
func WaitForShareAvailable(c *config.CloudCredentials, shareID string) error
WaitForShareAvailable will cost few minutes
func WaitForShareDeleted ¶
func WaitForShareDeleted(c *config.CloudCredentials, shareID string) error
func WaitForShareExpanded ¶
func WaitForShareExpanded(c *config.CloudCredentials, shareID string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.