gcp

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(p bool) *bool

BoolPtr converts the supplied bool to a pointer to that bool

func BoolValue

func BoolValue(v *bool) bool

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) (projectID string, opts option.ClientOption, err error)

GetAuthInfo returns the necessary authentication information that is necessary to use when the controller connects to GCP API in order to reconcile the managed resource.

func Int64Ptr

func Int64Ptr(p int64) *int64

Int64Ptr converts the supplied int64 to a pointer to that int64.

func Int64Value

func Int64Value(v *int64) int64

Int64Value converts the supplied int64 pointer to an int, returning zero if the pointer is nil.

func IsErrorAlreadyExists

func IsErrorAlreadyExists(err error) bool

IsErrorAlreadyExists gets a value indicating whether the given error represents a "conflict" response from the Google API

func IsErrorBadRequest

func IsErrorBadRequest(err error) bool

IsErrorBadRequest gets a value indicating whether the given error represents a "bad request" response from the Google API

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound gets a value indicating whether the given error represents a "not found" response from the Google API

func IsErrorNotFoundGRPC

func IsErrorNotFoundGRPC(err error) bool

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

func LateInitializeBool(b *bool, from bool) *bool

LateInitializeBool implements late initialization for bool type.

func LateInitializeInt64

func LateInitializeInt64(i *int64, from int64) *int64

LateInitializeInt64 implements late initialization for int64 type.

func LateInitializeString

func LateInitializeString(s *string, from string) *string

LateInitializeString implements late initialization for string type.

func LateInitializeStringMap

func LateInitializeStringMap(s map[string]string, from map[string]string) map[string]string

LateInitializeStringMap implements late initialization for string map type.

func LateInitializeStringSlice

func LateInitializeStringSlice(s []string, from []string) []string

LateInitializeStringSlice implements late initialization for string slice type.

func StringPtr

func StringPtr(p string) *string

StringPtr converts the supplied string to a pointer to that string.

func StringValue

func StringValue(v *string) string

StringValue converts the supplied string pointer to a string, returning the empty string if the pointer is nil.

func UseProvider

func UseProvider(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts option.ClientOption, err error)

UseProvider to return GCP authentication information. Deprecated: Use UseProviderConfig

func UseProviderConfig

func UseProviderConfig(ctx context.Context, c client.Client, mg resource.Managed) (projectID string, opts option.ClientOption, err error)

UseProviderConfig to return GCP authentication information.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL