Documentation ¶
Index ¶
- func BoolPtr(p bool) *bool
- func BoolValue(v *bool) bool
- func EquateComputeURLs() cmp.Option
- func GetConnectionInfo(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts []option.ClientOption, err error)
- func Int64Ptr(p int64) *int64
- func Int64Value(v *int64) int64
- func IsErrorAlreadyExists(err error) bool
- func IsErrorBadRequest(err error) bool
- func IsErrorForbidden(err error) bool
- func IsErrorNotFound(err error) bool
- func IsErrorNotFoundGRPC(err error) bool
- 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 StringPtr(p string) *string
- func StringValue(v *string) string
- func UseProvider(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts []option.ClientOption, err error)
- func UseProviderConfig(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts []option.ClientOption, err error)
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 EquateComputeURLs ¶
EquateComputeURLs considers compute APIs to be equal whether they are fully qualified, partially qualified, or unqualified. The compute API will accept unqualified or partially qualified URLs for certain fields, but return fully qualified URLs. For example it may accept 'us-central1' but return 'https://www.googleapis.com/compute/v1/projects/example/regions/us-central1'. 'projects/example/global/networks/eg' is also valid, but the API may return 'https://www.googleapis.com/compute/v1/projects/example/global/networks/eg'.
func GetConnectionInfo ¶
func GetConnectionInfo(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts []option.ClientOption, err error)
GetConnectionInfo returns the necessary connection information that is necessary to use when the controller connects to GCP API in order to reconcile the managed resource.
func Int64Value ¶
Int64Value converts the supplied int64 pointer to an int, returning zero if the pointer is nil.
func IsErrorAlreadyExists ¶
IsErrorAlreadyExists gets a value indicating whether the given error represents a "conflict" response from the Google API
func IsErrorBadRequest ¶
IsErrorBadRequest gets a value indicating whether the given error represents a "bad request" response from the Google API
func IsErrorForbidden ¶
IsErrorForbidden gets a value indicating whether the given error represents a "forbidden" response from the Google API
func IsErrorNotFound ¶
IsErrorNotFound gets a value indicating whether the given error represents a "not found" response from the Google API
func IsErrorNotFoundGRPC ¶
IsErrorNotFoundGRPC gets a value indicating whether the given error represents a "not found" response from the Google API. It works only for the clients that use gRPC as protocol.
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.