kls

package
v0.9.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package kls provides a light-weight parser for Kubernetes label selectors.

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

This section is empty.

Types

type Requirement

type Requirement struct {
	Label  string
	Op     string
	Values []string
	// contains filtered or unexported fields
}

A Requirement represents one predicate parsed from a selector. For example, selector "x=y,z" has two requirements: "x=y" and "z". Op is the literal operator, or "exists" (p) or "notexists" (!p).

func Parse

func Parse(selector string) ([]Requirement, error)

Jump to

Keyboard shortcuts

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