Documentation ¶
Index ¶
- type Generator
- func (g *Generator) AddDir(dir string, allStructs bool) error
- func (g *Generator) AddImport(imports ...string)
- func (g *Generator) SetAPIDomain(d, s string)
- func (g *Generator) SetAPIVersion(v string)
- func (g *Generator) SetGoPackage(p string)
- func (g *Generator) SetImportPrefix(v string)
- func (g *Generator) SetKubeprotoPackage(v string)
- func (g *Generator) SetProtoPackage(p string)
- func (g *Generator) WriteFile(outputFilePath string) error
- type ProtobufField
- type ProtobufFile
- type ProtobufMessage
- type ProtobufMessageOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) SetAPIDomain ¶
func (*Generator) SetAPIVersion ¶
func (*Generator) SetGoPackage ¶
func (*Generator) SetImportPrefix ¶
func (*Generator) SetKubeprotoPackage ¶
func (*Generator) SetProtoPackage ¶
type ProtobufField ¶
type ProtobufFile ¶
type ProtobufMessage ¶
type ProtobufMessage struct { Name string Fields []*ProtobufField UseFieldsOf string Option *ProtobufMessageOption }
func (*ProtobufMessage) IsRuntimeObject ¶
func (m *ProtobufMessage) IsRuntimeObject() bool
type ProtobufMessageOption ¶
type ProtobufMessageOption struct {
ClusterScope bool
}
Click to show internal directories.
Click to hide internal directories.