Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2018 Microsoft. All rights reserved. MIT License

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMarshalNPMCache     = errors.New("failed to marshal NPM Cache")
	ErrInformerSyncFailure = errors.New("informer sync failure")
)

Functions

func GetNodeName

func GetNodeName() string

Types

type AzureConfig

type AzureConfig struct {
	K8sServerVersion *version.Info
	NodeName         string
	Version          string
	TelemetryEnabled bool
}

AzureConfig captures the Azure specific configurations and fields

type CacheKey

type CacheKey string

Cache is the cache lookup key for the NPM cache

const (
	NodeName CacheKey = "NodeName"

	NsMap   CacheKey = "NsMap"
	PodMap  CacheKey = "PodMap"
	ListMap CacheKey = "ListMap"
	SetMap  CacheKey = "SetMap"

	EnvNodeName = "HOSTNAME"
)

type Informers

type Informers struct {
	InformerFactory    informers.SharedInformerFactory //nolint:structcheck //ignore this error
	PodInformerFactory informers.SharedInformerFactory
	PodInformer        coreinformers.PodInformer                 //nolint:structcheck // false lint error
	NsInformer         coreinformers.NamespaceInformer           //nolint:structcheck // false lint error
	NpInformer         networkinginformers.NetworkPolicyInformer //nolint:structcheck // false lint error
}

Informers are the informers for the k8s controllers

type K8SControllersV1

type K8SControllersV1 struct {
	PodControllerV1       *controllersv1.PodController           //nolint:structcheck //ignore this error
	NamespaceControllerV1 *controllersv1.NamespaceController     //nolint:structcheck // false lint error
	NpmNamespaceCacheV1   *controllersv1.NpmNamespaceCache       //nolint:structcheck // false lint error
	NetPolControllerV1    *controllersv1.NetworkPolicyController //nolint:structcheck // false lint error
}

K8SControllerV1 are the legacy k8s controllers

type K8SControllersV2

type K8SControllersV2 struct {
	PodControllerV2       *controllersv2.PodController           //nolint:structcheck //ignore this error
	NamespaceControllerV2 *controllersv2.NamespaceController     //nolint:structcheck // false lint error
	NpmNamespaceCacheV2   *controllersv2.NpmNamespaceCache       //nolint:structcheck // false lint error
	NetPolControllerV2    *controllersv2.NetworkPolicyController //nolint:structcheck // false lint error
}

K8SControllerV2 are the optimized k8s controllers that replace the legacy controllers

Jump to

Keyboard shortcuts

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