pkg

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolRule

type BoolRule struct {
	Exclude bool
}

func (*BoolRule) Enabled

func (r *BoolRule) Enabled() bool

type ContainerRule

type ContainerRule struct {
	ExcludeRules []ContainerRuleExclude
}

func (*ContainerRule) Enabled

func (r *ContainerRule) Enabled(object storage.StoreObject, container *corev1.Container) bool

type ContainerRuleExclude

type ContainerRuleExclude struct {
	Kind      string
	Name      string
	Container string
}

func (*ContainerRuleExclude) Enabled

func (e *ContainerRuleExclude) Enabled(object storage.StoreObject, container *corev1.Container) bool

type KindRule

type KindRule struct {
	ExcludeRules []KindRuleExclude
}

func (*KindRule) Enabled

func (r *KindRule) Enabled(kind, name string) bool

type KindRuleExclude

type KindRuleExclude struct {
	Kind string
	Name string
}

func (*KindRuleExclude) Enabled

func (e *KindRuleExclude) Enabled(kind, name string) bool

type Level

type Level int
const (
	Warn Level = iota
	Error
	Critical
)

func ParseStringToLevel

func ParseStringToLevel(str string) Level

func (Level) String added in v0.1.10

func (l Level) String() string

type LinterError

type LinterError struct {
	LinterID    string
	ModuleID    string
	RuleID      string
	ObjectID    string
	ObjectValue any
	Text        string
	FilePath    string
	LineNumber  int
	Level       Level
}

type PathRule added in v0.1.3

type PathRule struct {
	ExcludeStringRules []StringRuleExclude
	ExcludePrefixRules []PrefixRuleExclude
}

func (*PathRule) Enabled added in v0.1.3

func (r *PathRule) Enabled(name string) bool

type PrefixRule added in v0.1.3

type PrefixRule struct {
	ExcludeRules []PrefixRuleExclude
}

func (*PrefixRule) Enabled added in v0.1.3

func (r *PrefixRule) Enabled(str string) bool

type PrefixRuleExclude added in v0.1.3

type PrefixRuleExclude string

func (PrefixRuleExclude) Enabled added in v0.1.3

func (e PrefixRuleExclude) Enabled(str string) bool

type RuleMeta

type RuleMeta struct {
	Name string
}

func (*RuleMeta) GetName

func (m *RuleMeta) GetName() string

type ServicePortExclude

type ServicePortExclude struct {
	Name string
	Port string
}

func (*ServicePortExclude) Enabled

func (e *ServicePortExclude) Enabled(name, port string) bool

type ServicePortRule

type ServicePortRule struct {
	ExcludeRules []ServicePortExclude
}

func (*ServicePortRule) Enabled

func (r *ServicePortRule) Enabled(name, port string) bool

type StringRule

type StringRule struct {
	ExcludeRules []StringRuleExclude
}

func (*StringRule) Enabled

func (r *StringRule) Enabled(str string) bool

type StringRuleExclude

type StringRuleExclude string

func (StringRuleExclude) Enabled

func (e StringRuleExclude) Enabled(str string) bool

Jump to

Keyboard shortcuts

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