config

package
v0.0.0-...-9331f55 Latest Latest
Warning

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

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

Documentation

Overview

Package config provides structs for parsing object-propagation controller configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Source Source `json:"source"`
	Target Target `json:"target"`
}

func Parse

func Parse(bytes []byte) ([]*Entry, error)

type Source

type Source struct {
	Namespace     string `json:"namespace"`
	APIVersion    string `json:"apiVersion"`
	Kind          string `json:"kind"`
	LabelSelector string `json:"labelSelector"`
}

type Target

type Target struct {
	NamespaceLabelSelector      string `json:"namespaceLabelSelector"`
	DetectAndReplaceSourceNSRef bool   `json:"detectAndReplaceSourceNSRef"`
}

Jump to

Keyboard shortcuts

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