Documentation ¶
Index ¶
- func BoolValue(v *bool) bool
- func GetAuthInfo(ctx context.Context, c client.Client, mg resource.Managed) (token string, err error)
- func IgnoreNotFound(err error, response *godo.Response) error
- func Int64Value(v *int64) int64
- func IntValue(v *int) int
- func LateInitializeBool(b *bool, from bool) *bool
- func LateInitializeInt64(i *int64, from int64) *int64
- func LateInitializeString(s *string, from string) *string
- func LateInitializeStringMap(s map[string]string, from map[string]string) map[string]string
- func LateInitializeStringSlice(s []string, from []string) []string
- func StringValue(v *string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolValue ¶
BoolValue converts the supplied bool pointer to an bool, returning false if the pointer is nil.
func GetAuthInfo ¶
func GetAuthInfo(ctx context.Context, c client.Client, mg resource.Managed) (token string, err error)
GetAuthInfo returns the necessary authentication information that is necessary to use when the controller connects to DigitalOcean API in order to reconcile the managed resource.
func IgnoreNotFound ¶ added in v0.2.0
IgnoreNotFound checks for response of DigitalOcean GET API call and the content of returned error to ignore it if the response is a '404 not found' error otherwise bubble up the error.
func Int64Value ¶
Int64Value converts the supplied int64 pointer to an int, returning zero if the pointer is nil.
func IntValue ¶
IntValue converts the supplied int pointer to an int, returning zero if the pointer is nil.
func LateInitializeBool ¶
LateInitializeBool implements late initialization for bool type.
func LateInitializeInt64 ¶
LateInitializeInt64 implements late initialization for int64 type.
func LateInitializeString ¶
LateInitializeString implements late initialization for string type.
func LateInitializeStringMap ¶
LateInitializeStringMap implements late initialization for string map type.
func LateInitializeStringSlice ¶
LateInitializeStringSlice implements late initialization for string slice type.
func StringValue ¶
StringValue converts the supplied string pointer to a string, returning the empty string if the pointer is nil.
Types ¶
This section is empty.