types

package
v0.21.0-alpha.1...-f969c93 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 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 GroupInstallPackage

type GroupInstallPackage struct {
	Group               Group
	InstallPackageAlias string
}

func ToGroupInstallPackages

func ToGroupInstallPackages(groups []GroupVersions, groupGoNames map[GroupVersion]string) []GroupInstallPackage

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 GroupVersionInfo

type GroupVersionInfo struct {
	Group                Group
	Version              Version
	PackageAlias         string
	GroupGoName          string
	LowerCaseGroupGoName string
}

GroupVersionInfo contains all the info around a group version.

func ToGroupVersionInfo

func ToGroupVersionInfo(groups []GroupVersions, groupGoNames map[GroupVersion]string) []GroupVersionInfo

ToGroupVersionInfo is a helper function used by generators for groups.

type GroupVersions

type GroupVersions struct {
	// The name of the package for this group, e.g. apps.
	PackageName string
	Group       Group
	Versions    []PackageVersion
}

type PackageVersion

type PackageVersion struct {
	Version
	// The fully qualified package, e.g. k8s.io/kubernetes/pkg/apis/apps, where the types.go is found.
	Package string
}

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