subnetwork

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSubnetwork

func GenerateSubnetwork(name string, in v1beta1.SubnetworkParameters, subnet *compute.Subnetwork)

GenerateSubnetwork populates the supplied compute.Subnetwork with the supplied SubnetworkParameters.

func GenerateSubnetworkForUpdate

func GenerateSubnetworkForUpdate(s v1beta1.Subnetwork, name string) *compute.Subnetwork

GenerateSubnetworkForUpdate creates a *googlecompute.Subnetwork object using SubnetworkParameters with fields disallowed by the GCP API removed. If a field can be included in the GCP API but will result in an error if the value is changed, it will still be included here such that users are notified of invalid updates.

func GenerateSubnetworkObservation

func GenerateSubnetworkObservation(in compute.Subnetwork) v1beta1.SubnetworkObservation

GenerateSubnetworkObservation creates a SubnetworkObservation object using *googlecompute.Subnetwork.

func IsUpToDate

func IsUpToDate(name string, in *v1beta1.SubnetworkParameters, observed *compute.Subnetwork) (upToDate bool, privateAccess bool, err error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

func LateInitializeSpec

func LateInitializeSpec(spec *v1beta1.SubnetworkParameters, in compute.Subnetwork)

LateInitializeSpec fills unassigned fields with the values in compute.Subnetwork object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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