Documentation ¶
Index ¶
Constants ¶
const ( PeeringStateActive = "ACTIVE" PeeringStateInactive = "INACTIVE" )
VPC Network peering states.
const PeeringName = "servicenetworking-googleapis-com"
PeeringName of the peering created when a service networking connection is added to a VPC network.
Variables ¶
This section is empty.
Functions ¶
func FromParameters ¶
func FromParameters(p v1beta1.ConnectionParameters) *servicenetworking.Connection
FromParameters converts the supplied ConnectionParameters into a Connection suitable for use with the Google Compute API.
func IsUpToDate ¶
func IsUpToDate(p v1beta1.ConnectionParameters, observed *servicenetworking.Connection) bool
IsUpToDate returns true if the observed Connection is up to date with the supplied ConnectionParameters.
func UpdateStatus ¶
func UpdateStatus(s *v1beta1.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.