Documentation
¶
Overview ¶
Code generated by options-gen. DO NOT EDIT.
Index ¶
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
}
Generator handles the generation of protobuf files
func NewGenerator ¶
func NewGenerator(opts ...OptOptionsSetter) *Generator
NewGenerator creates a new protobuf generator with the given options
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithFormat ¶
func WithFormat(opt bool) OptOptionsSetter
Format is whether to format the generated files
func WithMetadataDir ¶
func WithMetadataDir(opt string) OptOptionsSetter
MetadataDir is the directory containing CloudStack API metadata
func WithOutputDir ¶
func WithOutputDir(opt string) OptOptionsSetter
OutputDir is the directory where generated files will be written
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( options ...OptOptionsSetter, ) Options
Click to show internal directories.
Click to hide internal directories.