natgateways

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatGatewayScope

type NatGatewayScope interface {
	azure.ClusterScoper
	azure.AsyncStatusUpdater
	SetNatGatewayIDInSubnets(natGatewayName string, natGatewayID string)
	NatGatewaySpecs() []azure.ResourceSpecGetter
}

NatGatewayScope defines the scope interface for NAT gateway service.

type NatGatewaySpec added in v1.1.0

type NatGatewaySpec struct {
	Name           string
	ResourceGroup  string
	SubscriptionID string
	Location       string
	NatGatewayIP   infrav1.PublicIPSpec
	ClusterName    string
	AdditionalTags infrav1.Tags
}

NatGatewaySpec defines the specification for a NAT gateway.

func (*NatGatewaySpec) OwnerResourceName added in v1.1.0

func (s *NatGatewaySpec) OwnerResourceName() string

OwnerResourceName is a no-op for NAT gateways.

func (*NatGatewaySpec) Parameters added in v1.1.0

func (s *NatGatewaySpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters returns the parameters for the NAT gateway.

func (*NatGatewaySpec) ResourceGroupName added in v1.1.0

func (s *NatGatewaySpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*NatGatewaySpec) ResourceName added in v1.1.0

func (s *NatGatewaySpec) ResourceName() string

ResourceName returns the name of the NAT gateway.

type Service

type Service struct {
	Scope NatGatewayScope
	async.Reconciler
}

Service provides operations on azure resources.

func New

func New(scope NatGatewayScope) (*Service, error)

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the NAT gateway with the provided name.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns true if the NAT gateways' lifecycles are managed.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile idempotently creates or updates a NAT gateway. Only when the NAT gateway 'Name' property is defined we create the NAT gateway: it's opt-in.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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