cats

package
v0.0.0-...-9094c1a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(n string, g GetCat) (*v1alpha1.Cat, bool, error)

Find will call function g to get the Cat with name n. If the Cat no longer exists, it will return an error and a flag to indicate we should stop processing this Cat.

func IsValid

func IsValid(c *v1alpha1.Cat) error

IsValid will return an error if the Cat c is invalid

Types

type GetCat

type GetCat func(n string) (*v1alpha1.Cat, error)

GetCat is a function that will return the cat with name n if it exists. The error should have reason metav1.StatusReasonNotFound if the cat no longer exists and should no longer be processed.

Jump to

Keyboard shortcuts

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