subnetwork

package
v0.6.0-rc Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 8 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 creates a *googlecompute.Subnetwork object using SubnetworkParameters.

func GenerateSubnetworkForUpdate added in v0.6.0

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 added in v0.6.0

func GenerateSubnetworkObservation(in compute.Subnetwork) v1beta1.SubnetworkObservation

GenerateSubnetworkObservation creates a SubnetworkObservation object using *googlecompute.Subnetwork.

func IsUpToDate added in v0.6.0

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 added in v0.6.0

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