securitygroups

package
v1.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSGScope

type NSGScope interface {
	azure.Authorizer
	azure.AsyncStatusUpdater
	NSGSpecs() []azure.ResourceSpecGetter
	IsVnetManaged() bool
}

NSGScope defines the scope interface for a security groups service.

type NSGSpec added in v1.3.0

type NSGSpec struct {
	Name           string
	SecurityRules  infrav1.SecurityRules
	Location       string
	ClusterName    string
	ResourceGroup  string
	AdditionalTags infrav1.Tags
}

NSGSpec defines the specification for a security group.

func (*NSGSpec) OwnerResourceName added in v1.3.0

func (s *NSGSpec) OwnerResourceName() string

OwnerResourceName is a no-op for security groups.

func (*NSGSpec) Parameters added in v1.3.0

func (s *NSGSpec) Parameters(existing interface{}) (interface{}, error)

Parameters returns the parameters for the security group.

func (*NSGSpec) ResourceGroupName added in v1.3.0

func (s *NSGSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*NSGSpec) ResourceName added in v1.3.0

func (s *NSGSpec) ResourceName() string

ResourceName returns the name of the security group.

type Service

type Service struct {
	Scope NSGScope
	async.Reconciler
}

Service provides operations on Azure resources.

func New

func New(scope NSGScope) *Service

New creates a new service.

func (*Service) Delete

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

Delete deletes network security groups.

func (*Service) IsManaged added in v1.3.0

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

IsManaged returns true if the security groups' lifecycles are managed.

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 network security groups.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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