licensing

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Collect collects the licensing information for N+ and returns it in the deployment context.
	Collect(ctx context.Context) (dataplane.DeploymentContext, error)
}

Collector collects licensing information for N+.

type DeploymentContextCollector

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

DeploymentContextCollector collects the deployment context information needed for N+ licensing.

func NewDeploymentContextCollector

func NewDeploymentContextCollector(
	cfg DeploymentContextCollectorConfig,
) *DeploymentContextCollector

NewDeploymentContextCollector returns a new instance of DeploymentContextCollector.

func (*DeploymentContextCollector) Collect

Collect collects all the information needed to create the deployment context for N+ licensing.

type DeploymentContextCollectorConfig

type DeploymentContextCollectorConfig struct {
	// K8sClientReader is a Kubernetes API client Reader.
	K8sClientReader client.Reader
	// PodUID is the UID of the NGF Pod.
	PodUID string
	// Logger is the logger.
	Logger logr.Logger
}

DeploymentContextCollectorConfig contains the configuration for the DeploymentContextCollector.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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