model

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 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 struct {
		Addr     string `yaml:"addr,omitempty"`
		Insecure bool   `yaml:"insecure,omitempty"`
	} `yaml:"registry,omitempty"`
	Export struct {
		Paths []string `yaml:"paths,omitempty"`
	} `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 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"`
}

Jump to

Keyboard shortcuts

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