controller

package
v1.4.53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2018 Microsoft. All rights reserved. MIT License

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInformerFactoryNil      = errors.New("informer factory is nil")
	ErrTransportManagerNil     = errors.New("transport manager is nil")
	ErrK8SServerVersionNil     = errors.New("k8s server version is nil")
	ErrDataplaneNotInitialized = errors.New("dataplane is not initialized")
)

Functions

This section is empty.

Types

type NetworkPolicyServer

type NetworkPolicyServer struct {

	// Informers are the Kubernetes Informer
	// https://pkg.go.dev/k8s.io/client-go/informers
	models.Informers

	// Controllers for handling Kubernetes resource watcher events
	models.K8SControllersV2

	// Azure-specific variables
	models.AzureConfig
	// contains filtered or unexported fields
}

func NewNetworkPolicyServer

func NewNetworkPolicyServer(
	config npmconfig.Config,
	informerFactory informers.SharedInformerFactory,
	mgr *transport.EventsServer,
	dp dataplane.GenericDataplane,
	npmVersion string,
	k8sServerVersion *version.Info,
) (*NetworkPolicyServer, error)

func (*NetworkPolicyServer) GetAppVersion

func (n *NetworkPolicyServer) GetAppVersion() string

func (*NetworkPolicyServer) MarshalJSON

func (n *NetworkPolicyServer) MarshalJSON() ([]byte, error)

func (*NetworkPolicyServer) Start

func (n *NetworkPolicyServer) Start(config npmconfig.Config, stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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