types

package
v0.23.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 335

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) PackageName added in v0.21.0

func (g Group) PackageName() 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.

func (GroupVersion) ToAPIVersion added in v0.21.0

func (gv GroupVersion) ToAPIVersion() 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) PackageName added in v0.21.0

func (v Version) PackageName() 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