subnet

package
v0.0.0-...-6997415 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeManager

type KubeManager interface {
	List(ctx context.Context) ([]Subnet, error)
}

KubeManager interface interact with kubernetes layer to extract required information

func NewKubeManager

func NewKubeManager(client client.Client, subscriptionID string) KubeManager

type Manager

type Manager interface {
	Get(ctx context.Context, subnetID string) (*mgmtnetwork.Subnet, error)
	GetAll(ctx context.Context, subnetIds []string) ([]*mgmtnetwork.Subnet, error)
	GetHighestFreeIP(ctx context.Context, subnetID string) (string, error)
	CreateOrUpdate(ctx context.Context, subnetID string, subnet *mgmtnetwork.Subnet) error
	CreateOrUpdateFromIds(ctx context.Context, subnetIds []string, gatewayEnabled bool) error
}

func NewManager

func NewManager(environment *azureclient.AROEnvironment, subscriptionID string, spAuthorizer autorest.Authorizer) Manager

type Subnet

type Subnet struct {
	ResourceID string
	IsMaster   bool
}

Jump to

Keyboard shortcuts

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