virtualnetworks

package
v1.1.7-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OWNER = "owner" //name used in tag
	CAPH  = "CAPH"  //value of "owner" tag
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client virtualnetwork.VirtualNetworkClient
	Scope  scope.ScopeInterface
}

Service provides operations on virtual networks.

func NewService

func NewService(scope scope.ScopeInterface) *Service

NewService creates a new virtual networks service.

func (*Service) Delete

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

Delete deletes the virtual network with the provided name.

func (*Service) Get

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

Get provides information about a virtual network.

func (*Service) Reconcile

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

Reconcile gets/creates/updates a virtual network.

type Spec

type Spec struct {
	Name  string
	Group string
	CIDR  string
}

Spec input specification for Get/CreateOrUpdate/Delete calls

Jump to

Keyboard shortcuts

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