cache

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(writer io.Writer, npmEncoder npm.NetworkPolicyManagerEncoder) error

Encode returns encoded NPMCache data. TODO(jungukcho): This Encode has tight ordering for encoding data due to dependency with Decode function. It needs to find a way of relaxing this strong ordering.

Types

type NPMCache

type NPMCache struct {
	Nodename string
	NsMap    map[string]*npm.Namespace
	PodMap   map[string]*npm.NpmPod
	ListMap  map[string]*ipsm.Ipset
	SetMap   map[string]*ipsm.Ipset
}

func Decode

func Decode(reader io.Reader) (*NPMCache, error)

Decode returns NPMCache object after decoding data. TODO(jungukcho): This Decode has tight ordering for decoding data due to dependency with Encode function. It needs to find a way of relaxing this strong ordering.

Jump to

Keyboard shortcuts

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