Documentation ¶
Index ¶
- func GenerateCreateOptions(in *v1alpha1.VPCParameters) (ibmVPC.CreateVPCOptions, error)
- func GenerateObservation(in *ibmVPC.VPC) (v1alpha1.VPCObservation, error)
- func GetDummyCreateParams(addressNil bool, nameNil bool, resourceGroupIDNil bool) v1alpha1.VPCParameters
- func GetDummyObservation(createdAtNonNil bool, hrefNonNil bool, statusNonNil bool, ...) ibmVPC.VPC
- func IsUpToDate(crossplane *v1alpha1.VPCParameters, observed *ibmVPC.VPC, l logging.Logger) (bool, error)
- func LateInitializeSpec(spec *v1alpha1.VPCParameters, fromIBMCloud *ibmVPC.VPC) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCreateOptions ¶
func GenerateCreateOptions(in *v1alpha1.VPCParameters) (ibmVPC.CreateVPCOptions, error)
GenerateCreateOptions returns a cloud-compliant version of the VPC creation parameters
Params
in - the creation options, crossplane style Returns the struct to use in the cloud call
func GenerateObservation ¶
func GenerateObservation(in *ibmVPC.VPC) (v1alpha1.VPCObservation, error)
GenerateObservation returns a crossplane version of the cloud observation results parameters
Params
in - the create options, in IBM-cloud-style
Returns
the status, crossplane-style
func GetDummyCreateParams ¶
func GetDummyCreateParams(addressNil bool, nameNil bool, resourceGroupIDNil bool) v1alpha1.VPCParameters
GetDummyCreateParams returns a dummy object, ready to be used in a create-VPC-in-k8s request. Non-nil values will be the ones of the local variables declared above.
Params
addressNil - whether to set the 'AddressPrefixManagement' member to nil nameNil - whether to set the 'Name' member to nil resourceGroupIDNil - whether to set the 'resourceGroupIDNil' member to nil
Returns
an object appropriately populated
func GetDummyObservation ¶
func GetDummyObservation( createdAtNonNil bool, hrefNonNil bool, statusNonNil bool, cseSourceIpsIPAdressNonNil bool, cseSourceIpsZoneNonNil bool, cseSourceIpsZoneHrefNonNil bool, cseSourceIpsZoneNameNonNil bool, defaultNetworkACLNonNil bool, defaultNetworkACLCRNNonNil bool, defaultNetworkACLDeletedNonNil bool, defaultNetworkACLDeletedMoreInfoNonNil bool, defaultNetworkACLHrefNonNil bool, defaultNetworkACLIDNonNil bool, defaultNetworkACLNameNonNil bool, defaultRoutingTableNonNil bool, defaultRoutingTableDeletedNonNil bool, defaultRoutingTableDeletedMoreInfoNonNil, defaultRoutingTableHrefNonNil bool, defaultRoutingTableIDNonNil bool, defaultRoutingTableNameNonNil bool, defaultRoutingTableResourceTypeNonNil bool, defaultSecurityGroupNonNil bool, defaultSecurityGroupCRNNonNil bool, defaultSecurityGroupDeletedNonNil bool, defaultSecurityGroupDeletedMoreInfoNonNil bool, defaultSecurityGroupHrefNonNil bool, defaultSecurityGroupIDNonNil bool, defaultSecurityGroupNameNonNil bool, resourceGroupNonNil bool, resourceGroupNameNonNil bool, resourceGroupHrefNonNil bool, resourceGroupIDNonNil bool) ibmVPC.VPC
GetDummyObservation returns a dummy object. Non-nil values will be the ones of the variables declared above.
Params
each param is used in controlling the value of the similarly-named field in the returned structure
Returns
an object appropriately populated
func IsUpToDate ¶
func IsUpToDate(crossplane *v1alpha1.VPCParameters, observed *ibmVPC.VPC, l logging.Logger) (bool, error)
IsUpToDate checks whether the current VPC config (in the cloud) is up-to-date compared to the crossplane one (only the name is checked, as this is the only one that can be updated).
No error is currently returned
func LateInitializeSpec ¶
LateInitializeSpec fills optional and unassigned fields with the values in the spec, from the info that comes from the cloud
Params
spec - what we get from k8s fromIBMCloud - ...what comes from the cloud
Returns
whether late initialization happened currently, always nil
Types ¶
This section is empty.