kubernetesk8s.io/kubernetes/cmd/libs/go2idl/import-boss/generators Index | Files

package generators

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

Package generators has the generators for the import-boss utility.

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 Packages

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

Packages makes the sets package definition.

Types

type Rule

type Rule struct {
	// All import paths that match this regexp...
	SelectorRegexp string
	// ... must have one of these prefixes ...
	AllowedPrefixes []string
	// ... and must not have one of these prefixes.
	ForbiddenPrefixes []string
}

A single import restriction rule.

Source Files

import_restrict.go

Version
v1.4.5
Published
Oct 29, 2016
Platform
js/wasm
Imports
14 packages
Last checked
5 minutes ago

Tools for package owners.