1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00
kube-arangodb/deps/k8s.io/gengo
2018-02-13 16:06:36 +01:00
..
args Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
boilerplate Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
examples Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
generator Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
namer Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
parser Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
testdata/a Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
types Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
.import-restrictions Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
.travis.yml Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
code-of-conduct.md Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
LICENSE Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
OWNERS Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00
README.md Extending Spec object, moved vendor to deps for test support 2018-02-13 16:06:36 +01:00

gengo

Travis Widget GoDoc Widget GoReport

A package for generating things based on go files. This mechanism was first used in Kubernetes and is split out here for ease of reuse and maintainability.

go get k8s.io/gengo

Examples

A set generator, deep-copy generator, defaulter generator and go-to-protobuf generator are included here. Also, import-boss will enforce arbitrary rules about import trees.

args/

Package args defines common arguments for a generator binary.

generator/

Package generator defines interfaces for code generators to implement, and machinery that will execute those code generators.

types/

Package types contains the type system definition. It is modeled after Go's type system, but it's intended that you could produce these types by parsing something else, if you want to write the parser/converter.

We don't directly use the go types in the go typecheck library because they are based on implementing differing interfaces. A struct-based format is more convenient input for template driven output.

parser/

Package parser parses go source files.

namer/

Package namer defines a naming system, for:

  • helping you reference go objects in a syntactically correct way
  • keeping track of what you reference, for importing the right packages
  • and defining parallel tracks of names, for making public interfaces and private implementations.