Documentation
¶
Index ¶
- Constants
- func ConvertSize(sizeToConvert, unitToConvertTo string) (int, error)
- func ConvertToGB(size, unit string) (int, error)
- func ConvertToMB(size, unit string) (int, error)
- func GetId(r *resources.Response) string
- func GetPropertiesKVSet(params ...interface{}) map[string]interface{}
- func GetRequestId(path string) (string, error)
- func GetRequestPath(r *resources.Response) string
- func ReadPublicKey(path string) (key string, err error)
- func StringSlicesEqual(a, b []string) bool
- func ValidateIPv6CidrBlockAgainstParentCidrBlock(cidr string, expectedMask int, parentCidr string) error
- func WaitForDelete(c *core2.CommandConfig, interrogator InterrogateDeletionFunc, ...) error
- func WaitForRequest(c *core2.CommandConfig, interrogator InterrogateRequestFunc, requestId string) error
- func WaitForState(c *core2.CommandConfig, interrogator InterrogateStateFunc, resourceId string) error
- func WatchDeletionProgress(ctx context.Context, c *core.CommandConfig, ...) (<-chan int, <-chan error)
- func WatchRequestProgress(ctx context.Context, c *core.CommandConfig, ...) (<-chan int, <-chan error)
- func WatchStateProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateStateFunc, ...) (<-chan int, <-chan error)
- type InterrogateDeletionFunc
- type InterrogateRequestFunc
- type InterrogateStateFunc
Constants ¶
View Source
const ( MegaBytes = "MB" GigaBytes = "GB" TerraBytes = "TB" PetaBytes = "PB" )
Variables ¶
This section is empty.
Functions ¶
func ConvertSize ¶
ConvertSize converts the specified size to the unit specified Right now, it has support for MB, GB
func ConvertToGB ¶ added in v6.6.0
func ConvertToMB ¶ added in v6.6.0
func GetPropertiesKVSet ¶
func GetPropertiesKVSet(params ...interface{}) map[string]interface{}
func GetRequestId ¶ added in v6.7.0
func GetRequestPath ¶ added in v6.7.0
func ReadPublicKey ¶
ReadPublicKey from a specific path
func StringSlicesEqual ¶
StringSlicesEqual returns true if 2 slices of type string are equal.
func ValidateIPv6CidrBlockAgainstParentCidrBlock ¶ added in v6.7.0
func WaitForDelete ¶
func WaitForDelete(c *core2.CommandConfig, interrogator InterrogateDeletionFunc, resourceId string) error
func WaitForRequest ¶
func WaitForRequest(c *core2.CommandConfig, interrogator InterrogateRequestFunc, requestId string) error
WaitForRequest waits for Request to be executed
func WaitForState ¶
func WaitForState(c *core2.CommandConfig, interrogator InterrogateStateFunc, resourceId string) error
func WatchDeletionProgress ¶
func WatchDeletionProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateDeletionFunc, resourceId string) (<-chan int, <-chan error)
WatchDeletionProgress watches the deletion progress of a Resource until it completes with success: returning 404 http response status code.
func WatchRequestProgress ¶
func WatchRequestProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateRequestFunc, requestId string) (<-chan int, <-chan error)
WatchRequestProgress watches the status progress of a Request until it completes with success: meaning DONE or error.
func WatchStateProgress ¶
func WatchStateProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateStateFunc, resourceId string) (<-chan int, <-chan error)
WatchStateProgress watches the state progress of a Resource until it completes with success: meaning ACTIVE or AVAILABLE or error.
Types ¶
type InterrogateDeletionFunc ¶
type InterrogateDeletionFunc func(c *core2.CommandConfig, resourceId string) (*int, error)
type InterrogateRequestFunc ¶
type InterrogateStateFunc ¶
type InterrogateStateFunc func(c *core2.CommandConfig, resourceId string) (*string, error)
Click to show internal directories.
Click to hide internal directories.