protogen

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*Generator) Run

func (g *Generator) Run() error

Run executes the protobuf generation process

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

func (*Options) Validate

func (o *Options) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL