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 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 ¶
Click to show internal directories.
Click to hide internal directories.