securitygroups

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 13 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
	UpdateAnnotationJSON(string, map[string]interface{}) error
}

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
	LastAppliedSecurityRules map[string]interface{}
}

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(ctx context.Context, 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, error)

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 idempotently creates or updates a set of 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