kubernetesk8s.io/kubernetes/cmd/libs/go2idl/conversion-gen/generators Index | Files

package generators

import "k8s.io/kubernetes/cmd/libs/go2idl/conversion-gen/generators"

Index

Functions

func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func NewGenConversion

func NewGenConversion(sanitizedName, targetPackage string, manualConversions conversionFuncMap, peerPkgs []string, useUnsafe TypesEqual) generator.Generator

func Packages

func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Types

type CustomArgs

type CustomArgs struct {
	ExtraPeerDirs []string // Always consider these as last-ditch possibilities for conversions.
	// Skipunsafe indicates whether to generate unsafe conversions to improve the efficiency
	// of these operations. The unsafe operation is a direct pointer assignment via unsafe
	// (within the allowed uses of unsafe) and is equivalent to a proposed Golang change to
	// allow structs that are identical to be assigned to each other.
	SkipUnsafe bool
}

CustomArgs is used tby the go2idl framework to pass args specific to this generator.

type TypesEqual

type TypesEqual interface {
	Equal(a, b *types.Type) bool
}

Source Files

conversion.go

Version
v1.5.4-beta.0
Published
Feb 15, 2017
Platform
js/wasm
Imports
12 packages
Last checked
11 minutes ago

Tools for package owners.