configuration

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Deployment            Resource
	StatefulSet           Resource
	ReplicationController Resource
	ReplicaSet            Resource
	DaemonSet             Resource
	Services              Resource
	Pod                   Resource
	Job                   Resource
	PersistentVolume      Resource
	Namespace             Resource
	Secret                Resource
	ConfigMap             Resource
	Ingress               Resource

	Properties map[string]string `yaml:"-,omitempty"`
}

func NewFromYaml

func NewFromYaml(d []byte) (*Configuration, error)

type EventConfig

type EventConfig struct {
	Category string
	Source   string
}

type ObjectFiler

type ObjectFiler struct {
	Name        string
	Namespace   []string
	Labels      map[string]string
	Annotations map[string]string
}

func (*ObjectFiler) IsExcluded

func (o *ObjectFiler) IsExcluded(obj interface{}) bool

func (ObjectFiler) MatchAnnotations

func (o ObjectFiler) MatchAnnotations(m map[string]string) bool

func (ObjectFiler) MatchLabels

func (o ObjectFiler) MatchLabels(m map[string]string) bool

func (ObjectFiler) MatchName

func (o ObjectFiler) MatchName(name string) bool

func (ObjectFiler) MatchNamespace

func (o ObjectFiler) MatchNamespace(namespace string) bool

type Resource

type Resource struct {
	Enabled       bool
	Namespace     string
	EventConfig   EventConfig `yaml:"eventConfig,omitempty"`
	FilterOptions ObjectFiler `yaml:"exclude,omitempty"`
}

func (*Resource) UnmarshalYAML

func (r *Resource) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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