model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PbufConfigFilename = "pbuf.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version  string    `yaml:"version,omitempty"`
	Name     string    `yaml:"name,omitempty"`
	Registry Registry  `yaml:"registry,omitempty"`
	Export   Export    `yaml:"export,omitempty"`
	Modules  []*Module `yaml:"modules,omitempty"`
}

func (*Config) HasRegistry

func (c *Config) HasRegistry() bool

func (*Config) Save added in v0.2.3

func (c *Config) Save() error

type Export added in v0.3.1

type Export struct {
	Paths []string `yaml:"paths,omitempty"`
}

type Module

type Module struct {
	Name                 string `yaml:"name,omitempty"`
	Repository           string `yaml:"repository,omitempty"`
	Path                 string `yaml:"path,omitempty"`
	Branch               string `yaml:"branch,omitempty"`
	Tag                  string `yaml:"tag,omitempty"`
	OutputFolder         string `yaml:"out,omitempty"`
	GenerateOutputFolder string `yaml:"gen_out,omitempty"`
}

type Registry added in v0.3.1

type Registry struct {
	Addr     string `yaml:"addr,omitempty"`
	Insecure bool   `yaml:"insecure,omitempty"`
}

Jump to

Keyboard shortcuts

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