networkinterfaces

package
v1.1.616 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPConfiguration added in v1.1.11

type IPConfiguration struct {
	Name    string
	Primary bool
}

Spec specification for ip configuration

type IPConfigurations added in v1.1.11

type IPConfigurations []*IPConfiguration

type Service

type Service struct {
	Client networkinterface.InterfaceClient
	Scope  scope.ScopeInterface
}

Service provides operations on network interfaces

func NewService

func NewService(scope scope.ScopeInterface) *Service

NewService creates a new network interfaces service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, spec interface{}) error

Delete deletes the network interface with the provided name.

func (*Service) Get

func (s *Service) Get(ctx context.Context, spec interface{}) (interface{}, error)

Get provides information about a network interface.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context, spec interface{}) error

Reconcile gets/creates/updates a network interface.

type Spec

type Spec struct {
	Name             string
	SubnetName       string
	VnetName         string
	StaticIPAddress  string
	MacAddress       string
	BackendPoolNames []string
	IPConfigurations IPConfigurations
}

Spec specification for network interface

Jump to

Keyboard shortcuts

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