Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsVPNGatewayConnectionNotFound(err error) bool
- func IsVPNGatewayNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- type Config
- type Resource
- func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error
- func (r *Resource) ApplyDeleteChange(ctx context.Context, azureConfig, change interface{}) error
- func (r *Resource) ApplyUpdateChange(ctx context.Context, azureConfig, change interface{}) error
- func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) GetDesiredState(ctx context.Context, azureConfig interface{}) (interface{}, error)
- func (r *Resource) Name() string
- func (r *Resource) NewDeletePatch(ctx context.Context, azureConfig, current, desired interface{}) (*crud.Patch, error)
- func (r *Resource) NewUpdatePatch(ctx context.Context, azureConfig, current, desired interface{}) (*crud.Patch, error)
Constants ¶
const (
Name = "vpnconnection"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsVPNGatewayConnectionNotFound ¶
IsVPNGatewayConnectionNotFound asserts vpnGatewayConnectionNotFoundError.
func IsVPNGatewayNotFound ¶
IsVPNGatewayNotFound asserts vpnGatewayNotFoundError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
Types ¶
type Config ¶
type Config struct { Azure setting.Azure Logger micrologger.Logger CPVirtualNetworkGatewaysClient network.VirtualNetworkGatewaysClient CPVirtualNetworkGatewayConnectionsClient network.VirtualNetworkGatewayConnectionsClient }
Config is the configuration required by Resource.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource manages Azure virtual network peering.
func (*Resource) ApplyCreateChange ¶
ApplyCreateChange is noop. Creation goes through ApplyUpdateChange.
func (*Resource) ApplyDeleteChange ¶
ApplyDeleteChange perform deletion of vpn gateway connection against azure.
func (*Resource) ApplyUpdateChange ¶
ApplyUpdateChange perform the host cluster vpn gateway connections update against azure.
func (*Resource) GetCurrentState ¶
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.