publicips

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClient

type AzureClient struct {
	// contains filtered or unexported fields
}

AzureClient contains the Azure go-sdk Client.

func NewClient

func NewClient(auth azure.Authorizer) *AzureClient

NewClient creates a new public IP client from subscription ID.

func (*AzureClient) CreateOrUpdate

func (ac *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ipName string, ip network.PublicIPAddress) error

CreateOrUpdate creates or updates a static or dynamic public IP address.

func (*AzureClient) Delete

func (ac *AzureClient) Delete(ctx context.Context, resourceGroupName, ipName string) error

Delete deletes the specified public IP address.

func (*AzureClient) Get

func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, ipName string) (network.PublicIPAddress, error)

Get gets the specified public IP address in a specified resource group.

type Client

Client wraps go-sdk.

type PublicIPScope

type PublicIPScope interface {
	azure.ClusterDescriber
	PublicIPSpecs() []azure.PublicIPSpec
}

PublicIPScope defines the scope interface for a public IP service.

type Service

type Service struct {
	Scope PublicIPScope
	Client
}

Service provides operations on Azure resources.

func New

func New(scope PublicIPScope) *Service

New creates a new service.

func (*Service) Delete

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

Delete deletes the public IP with the provided scope.

func (*Service) IsManaged added in v1.3.0

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

IsManaged returns always returns true as public IPs are managed on a one-by-one basis.

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 gets/creates/updates a public ip.

Directories

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

Jump to

Keyboard shortcuts

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