subnet

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultReservedIPCount is the number of IP addresses to reserve in the subnet (usually the first and the last)
	DefaultReservedIPCount = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManageSubnet

type ManageSubnet struct {
	// contains filtered or unexported fields
}

ManageSubnet is an activity wrapper for managing Subnet lifecycle that allows injecting DB access

func NewManageSubnet

func NewManageSubnet(dbSession *cdb.Session, siteClientPool *sc.ClientPool, tc client.Client) ManageSubnet

NewManageSubnet returns a new ManageSubnet activity

func (ManageSubnet) UpdateSubnetsInDB

func (ms ManageSubnet) UpdateSubnetsInDB(ctx context.Context, siteID uuid.UUID, subnetInventory *cwsv1.SubnetInventory) ([]cwm.InventoryObjectLifecycleEvent, error)

UpdateSubnetsInDB is a Temporal activity that takes a collection of Subnet/Network Segment data pushed by Site Agent and updates the DB

type ManageSubnetLifecycleMetrics

type ManageSubnetLifecycleMetrics struct {
	// contains filtered or unexported fields
}

ManageSubnetLifecycleMetrics is an activity wrapper for managing Subnet lifecycle metrics

func NewManageSubnetLifecycleMetrics

func NewManageSubnetLifecycleMetrics(reg prometheus.Registerer, dbSession *cdb.Session) ManageSubnetLifecycleMetrics

NewManageSubnetLifecycleMetrics returns a new ManageSubnetLifecycleMetrics activity

func (ManageSubnetLifecycleMetrics) RecordSubnetStatusTransitionMetrics

func (mslm ManageSubnetLifecycleMetrics) RecordSubnetStatusTransitionMetrics(ctx context.Context, siteID uuid.UUID, subnetLifecycleEvents []cwm.InventoryObjectLifecycleEvent) error

RecordSubnetStatusTransitionMetrics is a Temporal activity that records duration of important status transitions for Subnets

Jump to

Keyboard shortcuts

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