Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶ added in v1.18.0
Contains searches if a string list contains the given string or not.
func PatchService ¶ added in v1.23.0
PatchService makes patch request to the Service object.
func RoundUpSize ¶ added in v1.19.0
RoundUpSize calculates how many allocation units are needed to accommodate a volume of given size. E.g. when user wants 1500MiB volume, while AWS EBS allocates volumes in gibibyte-sized chunks, RoundUpSize(1500 * 1024*1024, 1024*1024*1024) returns '2' (2 GiB is the smallest allocatable volume that can hold 1500MiB)
func StringListEqual ¶
StringListEqual compares two string list, returns true if they have the same items, order doesn't matter
Types ¶
type MyDuration ¶ added in v1.21.0
MyDuration is the encoding.TextUnmarshaler interface for time.Duration
func (*MyDuration) UnmarshalText ¶ added in v1.21.0
func (d *MyDuration) UnmarshalText(text []byte) error
UnmarshalText is used to convert from text to Duration