connection

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

View Source
const (
	PeeringStateActive   = "ACTIVE"
	PeeringStateInactive = "INACTIVE"
)

VPC Network peering states.

View Source
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

FromParameters converts the supplied ConnectionParameters into a Connection suitable for use with the Google Compute API.

func IsUpToDate

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.

Jump to

Keyboard shortcuts

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