types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package types contains some type definitions that are used in various places.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSelector

type NodeSelector map[string]string

NodeSelector is a set of unique keys and their values.

func (*NodeSelector) MatchesLabels

func (n *NodeSelector) MatchesLabels(labels map[string]string) bool

MatchesLabels returns true if all key/value pairs in the selector are set in the labels.

func (*NodeSelector) Set

func (n *NodeSelector) Set(value string) error

Set converts a JSON representation into a NodeSelector.

func (*NodeSelector) String

func (n *NodeSelector) String() string

String converts into the JSON representation expected by Set.

Jump to

Keyboard shortcuts

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