networkinterfaces

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(auth azure.Authorizer, apiCallTimeout time.Duration) (*azureClient, error)

NewClient creates a new network interfaces client from an authorizer.

Types

type IPConfig added in v1.7.0

type IPConfig struct {
	PrivateIP       *string
	PublicIPAddress *string
}

IPConfig defines the specification for an IP address configuration.

type NICScope

type NICScope interface {
	azure.ClusterDescriber
	azure.AsyncStatusUpdater
	NICSpecs() []azure.ResourceSpecGetter
}

NICScope defines the scope interface for a network interfaces service.

type NICSpec added in v1.2.0

type NICSpec struct {
	Name                      string
	ResourceGroup             string
	Location                  string
	ExtendedLocation          *infrav1.ExtendedLocationSpec
	SubscriptionID            string
	MachineName               string
	SubnetName                string
	VNetName                  string
	VNetResourceGroup         string
	StaticIPAddress           string
	PublicLBName              string
	PublicLBAddressPoolName   string
	PublicLBNATRuleName       string
	InternalLBName            string
	InternalLBAddressPoolName string
	PublicIPName              string
	AcceleratedNetworking     *bool
	IPv6Enabled               bool
	EnableIPForwarding        bool
	SKU                       *resourceskus.SKU
	DNSServers                []string
	AdditionalTags            infrav1.Tags
	ClusterName               string
	IPConfigs                 []IPConfig
}

NICSpec defines the specification for a Network Interface.

func (*NICSpec) OwnerResourceName added in v1.2.0

func (s *NICSpec) OwnerResourceName() string

OwnerResourceName is a no-op for network interfaces.

func (*NICSpec) Parameters added in v1.2.0

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

Parameters returns the parameters for the network interface.

func (*NICSpec) ResourceGroupName added in v1.2.0

func (s *NICSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*NICSpec) ResourceName added in v1.2.0

func (s *NICSpec) ResourceName() string

ResourceName returns the name of the network interface.

type Service

type Service struct {
	Scope NICScope
	async.Reconciler
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope NICScope, skuCache *resourceskus.Cache) (*Service, error)

New creates a new service.

func (*Service) Delete

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

Delete deletes the network interface 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 network interfaces.

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 network interface.

Directories

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

Jump to

Keyboard shortcuts

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