subnet

package
v0.0.0-...-1737087 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 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)
	CreateOrUpdate(ctx context.Context, subnetID string, subnet *mgmtnetwork.Subnet) 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