Documentation ¶
Index ¶
- Constants
- func GenerateAuthStringObservation(r redis.InstanceAuthString) string
- func GenerateObservation(r redis.Instance) v1beta1.CloudMemorystoreInstanceObservation
- func GenerateRedisInstance(name string, s v1beta1.CloudMemorystoreInstanceParameters, r *redis.Instance)
- func GetFullyQualifiedName(project string, p v1beta1.CloudMemorystoreInstanceParameters, name string) string
- func GetFullyQualifiedParent(project string, p v1beta1.CloudMemorystoreInstanceParameters) string
- func IsUpToDate(name string, in *v1beta1.CloudMemorystoreInstanceParameters, ...) (bool, error)
- func LateInitializeSpec(spec *v1beta1.CloudMemorystoreInstanceParameters, r redis.Instance)
Constants ¶
const ( StateUnspecified = "STATE_UNSPECIFIED" StateCreating = "CREATING" StateReady = "READY" StateUpdating = "UPDATING" StateDeleting = "DELETING" StateRepairing = "REPAIRING" StateMaintenance = "MAINTENANCE" StateImporting = "IMPORTING" StateFailingOver = "FAILING_OVER" )
Valid states for a CloudMemorystore Instance.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuthStringObservation ¶
func GenerateAuthStringObservation(r redis.InstanceAuthString) string
GenerateAuthStringObservation is used to produce an observation object from GCP's Redis Instance AuthString data.
func GenerateObservation ¶
func GenerateObservation(r redis.Instance) v1beta1.CloudMemorystoreInstanceObservation
GenerateObservation is used to produce an observation object from GCP's Redis Instance object.
func GenerateRedisInstance ¶
func GenerateRedisInstance(name string, s v1beta1.CloudMemorystoreInstanceParameters, r *redis.Instance)
GenerateRedisInstance is used to convert Crossplane CloudMemorystoreInstanceParameters to GCP's Redis Instance object. Name must be a fully qualified name for the instance.
func GetFullyQualifiedName ¶
func GetFullyQualifiedName(project string, p v1beta1.CloudMemorystoreInstanceParameters, name string) string
GetFullyQualifiedName builds the fully qualified name of the instance.
func GetFullyQualifiedParent ¶
func GetFullyQualifiedParent(project string, p v1beta1.CloudMemorystoreInstanceParameters) string
GetFullyQualifiedParent builds the fully qualified name of the instance parent.
func IsUpToDate ¶
func IsUpToDate(name string, in *v1beta1.CloudMemorystoreInstanceParameters, observed *redis.Instance) (bool, error)
IsUpToDate returns true if the supplied Kubernetes resource differs from the supplied GCP resource. It considers only fields that can be modified in place without deleting and recreating the instance.
func LateInitializeSpec ¶
func LateInitializeSpec(spec *v1beta1.CloudMemorystoreInstanceParameters, r redis.Instance)
LateInitializeSpec fills empty spec fields with the data retrieved from GCP.
Types ¶
This section is empty.