vpnconnection

package
v4.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "vpnconnection"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsVPNGatewayConnectionNotFound

func IsVPNGatewayConnectionNotFound(err error) bool

IsVPNGatewayConnectionNotFound asserts vpnGatewayConnectionNotFoundError.

func IsVPNGatewayNotFound

func IsVPNGatewayNotFound(err error) bool

IsVPNGatewayNotFound asserts vpnGatewayNotFoundError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	Logger micrologger.Logger

	Azure                    setting.Azure
	HostAzureClientSetConfig client.AzureClientSetConfig
}

Config is the configuration required by Resource.

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

Resource manages Azure virtual network peering.

func New

func New(config Config) (*Resource, error)

func (*Resource) ApplyCreateChange

func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error

ApplyCreateChange is noop. Creation goes through ApplyUpdateChange.

func (*Resource) ApplyDeleteChange

func (r *Resource) ApplyDeleteChange(ctx context.Context, azureConfig, change interface{}) error

ApplyDeleteChange perform deletion of vpn gateway connection against azure.

func (*Resource) ApplyUpdateChange

func (r *Resource) ApplyUpdateChange(ctx context.Context, azureConfig, change interface{}) error

ApplyUpdateChange perform the host cluster vpn gateway connections update against azure.

func (*Resource) GetCurrentState

func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)

GetCurrentState retrieve current vpn gateway connection from host to tenant cluster.

func (*Resource) GetDesiredState

func (r *Resource) GetDesiredState(ctx context.Context, azureConfig interface{}) (interface{}, error)

GetDesiredState return desired vpn gateway connections.

func (*Resource) Name

func (r *Resource) Name() string

func (*Resource) NewDeletePatch

func (r *Resource) NewDeletePatch(ctx context.Context, azureConfig, current, desired interface{}) (*crud.Patch, error)

NewDeletePatch provide a crud.Patch holding connections to be deleted.

func (*Resource) NewUpdatePatch

func (r *Resource) NewUpdatePatch(ctx context.Context, azureConfig, current, desired interface{}) (*crud.Patch, error)

NewUpdatePatch provide a crud.Patch holding the needed connections update.

Jump to

Keyboard shortcuts

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