rules

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string

EventType is used to reperesent the type of event produced by the kubernetes api server

const (
	// ADDED is the event type for added events
	ADDED EventType = "added"
	// MODIFIED is the event type for deleted events
	MODIFIED EventType = "modified"
	// DELETED is the event type for modified events
	DELETED EventType = "deleted"
	// NONE is the event type for null events
	NONE EventType = "none"
)

type Filter

type Filter struct {
	LabelFilter string `default:"" json:"labelFilter"`
	FieldFilter string `default:"" json:"fieldFilter"`
}

Filter will be used to filter specific events based on labels and fields selectors All default kubernetes field selectors should work

type Rule

type Rule struct {
	Filter
	schema.GroupVersionResource
	ID         RuleID      `json:"id"`
	Namespaces []string    `json:"namespaces"`
	EventTypes []EventType `json:"eventTypes"`
	UpdatesOn  []string    `json:"updatesOn"`
}

Rule struct is used to represent a rule that will be used to filter events

type RuleID

type RuleID string

RuleID represents an unique identifier for a rule

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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