util

package
v0.0.0-...-55ce2e8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package util contains utility function and constants used in other packages.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownVerb = errors.New("unknown API verb")

ErrUnknownVerb for unknown verbs, not exported as a constant.

Functions

func ToUnstructured

func ToUnstructured(name, kind string, obj interface{}) (*unstructured.Unstructured, error)

ToUnstructured converts informed object to unstructured, using informed name and kind.

Types

type APIVerb

type APIVerb string

APIVerb verb name, to be called against any given resource.

const (
	// Create create api verb.
	Create APIVerb = "create"
	// Update update api verb.
	Update APIVerb = "update"
	// Delete delete api verb.
	Delete APIVerb = "delete"
)

Jump to

Keyboard shortcuts

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