kubernetes/staging/src/k8s.io/code-generator/cmd/client-gen/types/helpers.go

// ToGroupVersion turns "group/version" string into a GroupVersion struct. It reports error
// if it cannot parse the string.
func ToGroupVersion(gv string) (GroupVersion, error) {}

type sortableSliceOfVersions

func (a sortableSliceOfVersions) Len() int      {}

func (a sortableSliceOfVersions) Swap(i, j int) {}

func (a sortableSliceOfVersions) Less(i, j int) bool {}

// Determine the default version among versions. If a user calls a group client
// without specifying the version (e.g., c.CoreV1(), instead of c.CoreV1()), the
// default version will be returned.
func defaultVersion(versions []PackageVersion) Version {}

// ToGroupVersionInfo is a helper function used by generators for groups.
func ToGroupVersionInfo(groups []GroupVersions, groupGoNames map[GroupVersion]string) []GroupVersionInfo {}

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