types

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 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

func (GroupVersion) WithKind added in v0.31.0

func (gv GroupVersion) WithKind(kind Kind) GroupVersionKind

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 GroupVersionKind added in v0.31.0

type GroupVersionKind struct {
	Group   Group
	Version Version
	Kind    Kind
}

type GroupVersions

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

type Kind added in v0.31.0

type Kind string

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