inboundnatrules

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InboundNatScope

type InboundNatScope interface {
	azure.ClusterDescriber
	azure.AsyncStatusUpdater
	APIServerLBName() string
	InboundNatSpecs() []azure.ResourceSpecGetter
}

InboundNatScope defines the scope interface for an inbound NAT service.

type InboundNatSpec added in v1.2.0

type InboundNatSpec struct {
	Name                      string
	LoadBalancerName          string
	ResourceGroup             string
	FrontendIPConfigurationID *string
	SSHFrontendPort           *int32
}

InboundNatSpec defines the specification for an inbound NAT rule.

func (*InboundNatSpec) OwnerResourceName added in v1.2.0

func (s *InboundNatSpec) OwnerResourceName() string

OwnerResourceName returns the name of the load balancer associated with an inbound NAT rule.

func (*InboundNatSpec) Parameters added in v1.2.0

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

Parameters returns the parameters for the inbound NAT rule.

func (*InboundNatSpec) ResourceGroupName added in v1.2.0

func (s *InboundNatSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*InboundNatSpec) ResourceName added in v1.2.0

func (s *InboundNatSpec) ResourceName() string

ResourceName returns the name of the inbound NAT rule.

type Service

type Service struct {
	Scope InboundNatScope

	async.Reconciler
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope InboundNatScope) *Service

New creates a new service.

func (*Service) Delete

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

Delete deletes the inbound NAT rule with the provided name.

func (*Service) IsManaged added in v1.3.0

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

IsManaged returns always returns true as CAPZ does not support BYO inbound NAT rules.

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 an inbound NAT rule.

Directories

Path Synopsis
Package mock_inboundnatrules is a generated GoMock package.
Package mock_inboundnatrules is a generated GoMock package.

Jump to

Keyboard shortcuts

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