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 ¶
func (c *DeploymentContextCollector) Collect(ctx context.Context) (dataplane.DeploymentContext, error)
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.
Click to show internal directories.
Click to hide internal directories.