Documentation ¶
Index ¶
Constants ¶
View Source
const ( PeeringStateActive = "ACTIVE" PeeringStateInactive = "INACTIVE" )
VPC Network peering states.
Variables ¶
This section is empty.
Functions ¶
func FromParameters ¶
func FromParameters(p v1alpha2.ConnectionParameters) *servicenetworking.Connection
FromParameters converts the supplied ConnectionParameters into an Address suitable for use with the Google Compute API.
func UpToDate ¶
func UpToDate(p v1alpha2.ConnectionParameters, observed *servicenetworking.Connection) bool
UpToDate returns true if the observed Connection is up to date with the supplied ConnectionParameters.
func UpdateStatus ¶
func UpdateStatus(s *v1alpha2.ConnectionStatus, o Observation)
UpdateStatus updates any fields of the supplied ConnectionStatus to reflect the state of the supplied Address.
Types ¶
type Observation ¶
type Observation struct { Connection *servicenetworking.Connection Network *compute.Network }
An Observation of a service networking Connection and the Network it pertains to. We require both to determine the Connection's availability, because a Connection is a thin abstraction around a Network's VPC peerings.
Click to show internal directories.
Click to hide internal directories.