distribution

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name                 string              `yaml:"name"`
	ProtoPackages        []proto.PackageName `yaml:"protoPackages"`
	DistributionPackages []Package           `yaml:"distributionPackages"`
	Mount                string              `yaml:"mount"`
}

Encapsulates multiple targets for a set of packages

func (Config) ToStrategies

func (c Config) ToStrategies() []Strategy

type Package

type Package struct {
	Target             core.BuildTarget `yaml:"target"`
	ProtoPackageOption string           `yaml:"packageOption"`
	ProtoPlugins       []proto.Plugin   `yaml:"plugins"`
}

func NewPackage

func NewPackage(target core.BuildTarget, packageOption string) Package

type RepoName

type RepoName string

Name of the repository (e.g

type Strategy

type Strategy struct {
	Name     string
	Packages []proto.PackageName
	Target   core.BuildTarget
	// Set of paths to mount to target repo (generated stubs)
	Mount           []core.MountPath
	IgnoreRepoFiles []string
	PackageOption   string
	Plugins         []proto.Plugin
}

func NewStrategy

func NewStrategy(name string, packages []proto.PackageName, target core.BuildTarget, mountPaths []core.MountPath, ignoreRepoFiles []string, packageOption string, plugins []proto.Plugin) Strategy

func (Strategy) GetDistributionRepoName

func (s Strategy) GetDistributionRepoName() RepoName

Jump to

Keyboard shortcuts

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