cache

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetAttachDefCache

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

func (*NetAttachDefCache) Get

func (nc *NetAttachDefCache) Get(namespace, networkName string) map[string]string

Get returns annotations map for the given namespace and network name, if it's not available return nil

func (*NetAttachDefCache) Start

func (nc *NetAttachDefCache) Start()

Start creates informer for NetworkAttachmentDefinition events and populate the local cache

func (*NetAttachDefCache) Stop

func (nc *NetAttachDefCache) Stop()

Stop teardown the NetworkAttachmentDefinition informer

type NetAttachDefCacheService

type NetAttachDefCacheService interface {
	Start()
	Stop()
	Get(namespace string, networkName string) map[string]string
}

func Create

func Create() NetAttachDefCacheService

Jump to

Keyboard shortcuts

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