policy

package
v0.0.0-...-3047eb5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPortsToPgFunc

type AddPortsToPgFunc func(string, []string) error

type CallBacks

type CallBacks struct {
	AddPg             CreatePgFunc
	DeletePg          DeletePgFunc
	AddPortsToPg      AddPortsToPgFunc
	DeletePortsFromPg DeletePortsFromPgFunc
}

type CreatePgFunc

type CreatePgFunc func(string, string) (string, string, error)

type DeletePgFunc

type DeletePgFunc func(string) error

type DeletePortsFromPgFunc

type DeletePortsFromPgFunc func(string) error

type PgMap

type PgMap map[string]api.PgInfo

map of label selector for a policy group to policy group info

type PolicyPgMap

type PolicyPgMap map[string]PgMap

map of policy name to policy group map

type ResourceManager

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

func NewResourceManager

func NewResourceManager(callBacks *CallBacks, clusterCbs *api.ClusterClientCallBacks, vsdMeta *VsdMetaData) (*ResourceManager, error)

func (*ResourceManager) GetPolicyGroupsForPod

func (rm *ResourceManager) GetPolicyGroupsForPod(podName string, podNs string) (*[]string, error)

func (*ResourceManager) HandleNsEvent

func (rm *ResourceManager) HandleNsEvent(nsEvent *api.NamespaceEvent) error

func (*ResourceManager) HandlePolicyEvent

func (rm *ResourceManager) HandlePolicyEvent(pe *api.NetworkPolicyEvent) error

func (*ResourceManager) Init

func (rm *ResourceManager) Init(callBacks *CallBacks, clusterCbs *api.ClusterClientCallBacks, vsdMeta *VsdMetaData) error

func (*ResourceManager) InitPolicyImplementer

func (rm *ResourceManager) InitPolicyImplementer() error

type VsdMetaData

type VsdMetaData map[string]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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