Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(rawDefinitions map[string]common.OpenAPIDefinition) (*Generator, error)
NewGenerator returns a new Generator instance and an error. rawDefinitions is a value returned by GetOpenAPIDefinitions functions created by openapi-gen from k8s.io/kube-openapi.
func (*Generator) AddDefinition ¶
func (g *Generator) AddDefinition(name string, rawDef common.OpenAPIDefinition) error
AddDefinition is a helper for adding default definitions. This should not be needed in day to day usage, useful for testing.
func (*Generator) MissingDefinitions ¶
MissingDefinitions is a simple getter for g.missingDefinitions.
func (*Generator) ResolveRefs ¶
ResolveRefs calls resolveRefsForPackage for each package which has not been resolved yet
func (*Generator) SetNamePrefix ¶
SetNamePrefix sets the namePrefix used in name creation. This should not be needed in day to day usage, useful for testing.
func (*Generator) UpdateYAMLs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.