dependency

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT 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 interface {
	Load() (*ProtoDep, error)
	IsNeedWriteLockFile() bool
}

func NewDependency

func NewDependency(targetDir string, forceUpdate bool) Dependency

type DependencyImpl

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

func (*DependencyImpl) IsNeedWriteLockFile

func (d *DependencyImpl) IsNeedWriteLockFile() bool

func (*DependencyImpl) Load

func (d *DependencyImpl) 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"`
	Subgroup string   `toml:"subgroup"`
	Revision string   `toml:"revision"`
	Branch   string   `toml:"branch"`
	Path     string   `toml:"path"`
	Ignores  []string `toml:"ignores"`
	Protocol string   `toml:"protocol"`
}

func (*ProtoDepDependency) Directory

func (d *ProtoDepDependency) Directory() 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