config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	// contains filtered or unexported fields
}

func NewDependency

func NewDependency(targetDir string) *Dependency

func (*Dependency) Load

func (d *Dependency) Load() (*ProtoDep, error)

type ProtoDep

type ProtoDep struct {
	ProtoOutdir  string               `toml:"proto_outdir"`
	Dependencies []ProtoDepDependency `toml:"dependencies"`
}

func (*ProtoDep) Validate

func (d *ProtoDep) Validate() error

type ProtoDepDependency

type ProtoDepDependency struct {
	Target      string   `toml:"target"`
	LocalFolder string   `toml:"local_folder"`
	Subgroup    string   `toml:"subgroup"`
	Revision    string   `toml:"revision"`
	Branch      string   `toml:"branch"`
	Path        string   `toml:"path"`
	Ignores     []string `toml:"ignores"`
	Includes    []string `toml:"includes"`
	Protocol    string   `toml:"protocol"`
	UsernameEnv string   `toml:"username_env"`
	PasswordEnv string   `toml:"password_env"`
}

func (*ProtoDepDependency) Directory

func (d *ProtoDepDependency) Directory() string

func (*ProtoDepDependency) Machine

func (d *ProtoDepDependency) Machine() string

func (*ProtoDepDependency) Repository

func (d *ProtoDepDependency) Repository() string

Jump to

Keyboard shortcuts

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