common

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSelectorLabels

func GetSelectorLabels(s kubernetes.IstioObject) map[string]string

func GetWorkloadSelectorLabels

func GetWorkloadSelectorLabels(s kubernetes.IstioObject) map[string]string

func HasSelector

func HasSelector(s kubernetes.IstioObject) bool

func HasWorkloadSelector

func HasWorkloadSelector(s kubernetes.IstioObject) bool

Types

type GenericMultiMatchChecker

type GenericMultiMatchChecker struct {
	SubjectType       string
	Subjects          []kubernetes.IstioObject
	WorkloadList      models.WorkloadList
	HasSelector       func(s kubernetes.IstioObject) bool
	GetSelectorLabels func(s kubernetes.IstioObject) map[string]string
	Path              string
}

func SelectorMultiMatchChecker

func SelectorMultiMatchChecker(subjectType string, subjects []kubernetes.IstioObject, workloadList models.WorkloadList) GenericMultiMatchChecker

func WorkloadSelectorMultiMatchChecker

func WorkloadSelectorMultiMatchChecker(subjectType string, subjects []kubernetes.IstioObject, workloadList models.WorkloadList) GenericMultiMatchChecker

func (GenericMultiMatchChecker) Check

type GenericNoWorkloadFoundChecker

type GenericNoWorkloadFoundChecker struct {
	SubjectType       string
	Subject           kubernetes.IstioObject
	WorkloadList      models.WorkloadList
	GetSelectorLabels func(s kubernetes.IstioObject) map[string]string
	Path              string
}

func SelectorNoWorkloadFoundChecker

func SelectorNoWorkloadFoundChecker(subjectType string, subject kubernetes.IstioObject, workloadList models.WorkloadList) GenericNoWorkloadFoundChecker

func WorkloadSelectorNoWorkloadFoundChecker

func WorkloadSelectorNoWorkloadFoundChecker(subjectType string, subject kubernetes.IstioObject, workloadList models.WorkloadList) GenericNoWorkloadFoundChecker

func (GenericNoWorkloadFoundChecker) Check

type KeyWithIndex

type KeyWithIndex struct {
	Index int
	Key   *models.IstioValidationKey
}

type ReferenceMap

func (ReferenceMap) Add

func (ws ReferenceMap) Add(wk, sk models.IstioValidationKey)

func (ReferenceMap) Get

func (ReferenceMap) HasMultipleReferences

func (ws ReferenceMap) HasMultipleReferences(wk models.IstioValidationKey) bool

Jump to

Keyboard shortcuts

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