modules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Vendor

func Vendor(config *Config) error

Vendor function that iterate over the modules and vendor proto files from git repositories

Types

type Config

type Config struct {
	Version string `yaml:"version"`
	Modules []struct {
		Repository   string `yaml:"repository"`
		Path         string `yaml:"path"`
		Branch       string `yaml:"branch"`
		Tag          string `yaml:"tag"`
		OutputFolder string `yaml:"out"`
	} `yaml:"modules"`
}

func NewConfig

func NewConfig(contents []byte) (*Config, error)

NewConfig create a struct for bytes array

Jump to

Keyboard shortcuts

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