Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) AddPodEventHandler(handler cache.ResourceEventHandler)
- func (m *Manager) GetNamespace(name string) (*v1.Namespace, error)
- func (m *Manager) GetSelector(namespace, name string) (*v1.ConfigMap, error)
- func (m *Manager) HasSynced() bool
- func (m *Manager) ListSelectors(namespace, name string) ([]*Selector, error)
- func (m *Manager) Run(stopChan <-chan struct{})
- type Selector
- type SelectorSpec
- type SideEffect
Constants ¶
View Source
const ( SELECTORS = "selectors" ObjectSelector = "objectSelector" NamespaceSelector = "namespaceSelector" MatchLabels = "matchLabels" Effect = "effect" Annotations = "annotations" Labels = "labels" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(k8sClient *kubernetes.Clientset) *Manager
func (*Manager) AddPodEventHandler ¶
func (m *Manager) AddPodEventHandler(handler cache.ResourceEventHandler)
func (*Manager) GetSelector ¶
func (*Manager) ListSelectors ¶
type Selector ¶
type Selector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SelectorSpec `json:"spec"` }
func MakeSelectors ¶
type SelectorSpec ¶
type SelectorSpec struct { NamespaceLabels *metav1.LabelSelector `json:"namespaceLabels,omitempty"` ObjectLabels *metav1.LabelSelector `json:"objectLabels,omitempty"` Effect *SideEffect `json:"effect,omitempty"` }
Click to show internal directories.
Click to hide internal directories.