services

package
v0.0.0-...-d214319 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 GetShare

func GetShare(c *config.CloudCredentials, shareID string) (*shares.Turbo, error)

func ListPageShares

func ListPageShares(c *config.CloudCredentials, opts shares.ListOpts) (*shares.PagedList, error)

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.

Jump to

Keyboard shortcuts

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