code-generator: Index | Files

package types

import ""


Package Files

helpers.go types.go

type Group Uses

type Group string

func (Group) NonEmpty Uses

func (g Group) NonEmpty() string

func (Group) String Uses

func (g Group) String() string

type GroupInstallPackage Uses

type GroupInstallPackage struct {
    Group               Group
    InstallPackageAlias string

func ToGroupInstallPackages Uses

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

type GroupVersion Uses

type GroupVersion struct {
    Group   Group
    Version Version

func ToGroupVersion Uses

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 Uses

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

GroupVersionInfo contains all the info around a group version.

func ToGroupVersionInfo Uses

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

ToGroupVersionInfo is a helper function used by generators for groups.

type GroupVersions Uses

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

type PackageVersion Uses

type PackageVersion struct {
    // The fully qualified package, e.g., where the types.go is found.
    Package string

type Version Uses

type Version string

func (Version) NonEmpty Uses

func (v Version) NonEmpty() string

func (Version) String Uses

func (v Version) String() string

Package types imports 5 packages (graph) and is imported by 17 packages. Updated 2019-03-31. Refresh now. Tools for package owners.