Documentation ¶
Index ¶
- Constants
- func AssetRootCmd(creator Creator, short string) *cobra.Command
- func DefaultConfig() (distgo.DisterConfig, error)
- func NewDisterFactory(providedDisterCreators ...Creator) (distgo.DisterFactory, error)
- func NewManualDisterFromConfig(cfgYML []byte) (distgo.Dister, error)
- func NewOSArchBinDister(osArchs ...osarch.OSArch) distgo.Dister
- func NewOSArchBinDisterFromConfig(cfgYML []byte) (distgo.Dister, error)
- type Creator
- type CreatorFunction
- type ManualDistConfig
- type OSArchBinDistConfig
Constants ¶
View Source
const ManualDistTypeName = "manual" // distribution that consists of a distribution whose output is created by the distribution script
View Source
const OSArchBinDistTypeName = "os-arch-bin" // distribution that consists of the binaries for a specific OS/Architecture
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func DefaultConfig() (distgo.DisterConfig, error)
func NewDisterFactory ¶
func NewDisterFactory(providedDisterCreators ...Creator) (distgo.DisterFactory, error)
Types ¶
type Creator ¶
type Creator interface { TypeName() string Creator() CreatorFunction }
func AssetDisterCreators ¶
func NewCreator ¶
func NewCreator(typeName string, creatorFn CreatorFunction) Creator
type ManualDistConfig ¶
type ManualDistConfig struct { // Extension is the extension used by the target output generated by the dist script: for example, "tgz", // "zip", etc. Extension is used to locate the output generated by the dist script. The output should be a file // of the form "{{product-name}}-{{version}}.{{Extension}}". If Extension is empty, it is assumed that the // output has no extension and is of the form "{{product-name}}-{{version}}". Extension string `yaml:"extension" json:"extension"` }
func (*ManualDistConfig) ToDister ¶
func (cfg *ManualDistConfig) ToDister() distgo.Dister
type OSArchBinDistConfig ¶
type OSArchBinDistConfig struct { // OSArchs specifies the GOOS and GOARCH pairs for which TGZ distributions are created. If blank, defaults to // the GOOS and GOARCH of the host system at runtime. OSArchs []osarch.OSArch `yaml:"os-archs"` }
func (*OSArchBinDistConfig) ToDister ¶
func (cfg *OSArchBinDistConfig) ToDister() distgo.Dister
Click to show internal directories.
Click to hide internal directories.