connection

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

VPC Network peering states.

Variables

This section is empty.

Functions

func FromParameters

FromParameters converts the supplied ConnectionParameters into an Address suitable for use with the Google Compute API.

func UpToDate

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.

Jump to

Keyboard shortcuts

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