shared

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool = sync.Pool{
	New: func() interface{} {
		return new(bytes.Buffer)
	},
}

Functions

func IsPod added in v0.0.6

func IsPod(gvr schema.GroupVersionResource) bool

func RenderTemplate added in v0.0.6

func RenderTemplate(text string, data interface{}, buf *bytes.Buffer) (string, error)

Types

type GroupKindSelector

type GroupKindSelector struct {
	// contains filtered or unexported fields
}

func NewGroupKindSelector

func NewGroupKindSelector(s labels.Selector) GroupKindSelector

func (GroupKindSelector) Matches

func (s GroupKindSelector) Matches(gk schema.GroupKind) bool

Jump to

Keyboard shortcuts

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