kubernetes/staging/src/k8s.io/code-generator/cmd/go-to-protobuf/protobuf/cmd.go

type Generator

func New() *Generator {}

func (g *Generator) BindFlags(flag *flag.FlagSet) {}

// This roughly models gengo/v2.Execute.
func Run(g *Generator) {}

func deps(c *generator.Context, pkgs []*protobufPackage) map[string][]string {}

// given a set of pkg->[]deps, return the order that ensures all deps are processed before the things that depend on them
func importOrder(deps map[string][]string) ([]string, error) {}

type edge

// findAndRemoveNodesWithoutDependencies finds nodes in the given set which are not pointed to by any edges in the graph,
// removes them from the set of nodes, and returns them in sorted order
func findAndRemoveNodesWithoutDependencies(nodes map[string]struct{}

// removeEdgesFrom removes any edges from the graph where edge.from == node
func removeEdgesFrom(node string, graph map[edge]struct{}

type positionOrder

func (o positionOrder) Len() int {}

func (o positionOrder) Less(i, j int) bool {}

func (o positionOrder) Swap(i, j int) {}