Documentation
¶
Index ¶
- func Base64Encode(s1, s2 string) string
- func CheckDate(t string) error
- func Marshal(payload any) ([]byte, error)
- func MarshalIndent(payload any) ([]byte, error)
- func TruncateString(s string, n int) string
- func Unmarshal[T any](payload []byte) (T, error)
- func ValidateInstanceID(InstanceID string) error
- func ValidateSnapshotID(snapshotID string) error
- func ValidateTenantID(tenantID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶
Returns base64 encoding of two strings for use with Basic Auth
func MarshalIndent ¶ added in v1.6.3
Takes a payload and returns indented JSON
func TruncateString ¶ added in v1.6.0
Takes a string, s, and returns n bytes of it. If s is of n bytes or less, then s is returned back
func ValidateInstanceID ¶ added in v1.1.0
ValidateInstanceID checks if the instance ID is valid and returns an error if not
func ValidateSnapshotID ¶ added in v1.8.0
ValidateSnapshotID checks if the tenant ID is valid and returns an error if not
func ValidateTenantID ¶ added in v1.0.5
ValidateTenantID checks if the tenant ID is valid and returns an error if not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.