util

package
v0.0.0-...-2e0f28a Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldSpec

type FieldSpec struct {
	FieldType  reflect.Type
	FieldIndex uint16
	Package    Package

	Inline, Omitempty, Primitive, Pointer, Slice bool // TODO(wdamron): pack flags into a uint8
}

type Package

type Package byte
const (
	None Package = iota
	Core
	Apps
	Authentication
	Authorization
	Autoscaling
	Batch
	Networking
	Rbac
	Storage
	Resource
	Meta
	Types
	Intstr
	Apiextensions
)

func PackageForPath

func PackageForPath(path string) Package

func (Package) Path

func (p Package) Path() string

Path returns the import path for p

type TypeSpec

type TypeSpec struct {
	Type           reflect.Type
	Fields, Inline map[string]FieldSpec
	GVK            metav1.GroupVersionKind
}

Jump to

Keyboard shortcuts

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