types

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group string

func (Group) NonEmpty

func (g Group) NonEmpty() string

func (Group) String

func (g Group) String() string

type GroupVersion

type GroupVersion struct {
	Group   Group
	Version Version
}

func ToGroupVersion

func ToGroupVersion(gv string) (GroupVersion, error)

ToGroupVersion turns "group/version" string into a GroupVersion struct. It reports error if it cannot parse the string.

type GroupVersionPackage

type GroupVersionPackage struct {
	Group   Group
	Version Version
	// If a user calls a group client without specifying the version (e.g.,
	// c.Core(), instead of c.CoreV1()), the default version will be returned.
	IsDefaultVersion bool
	GroupVersion     string
	PackageName      string
}

GroupVersionPackage contains group name, version name, and the package name client-gen will generate for this group version.

func ToGroupVersionPackages

func ToGroupVersionPackages(groups []GroupVersions) []GroupVersionPackage

ToGroupVersionPackages is a helper function used by generators for groups.

type GroupVersions

type GroupVersions struct {
	Group    Group
	Versions []Version
}

type Version

type Version string

func (Version) NonEmpty

func (v Version) NonEmpty() string

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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