surveys

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepositories

func CloneRepositories(selectedReleaseProfiles []string, allConfig ReleaseProfile, tmp string)

func InstallBinaries

func InstallBinaries(selectedInstallProfiles []string, allConfig Profile, tmpDownloadDir, bin string)

func RenderInstallScript

func RenderInstallScript(selectedScriptProfiles []string, allConfig Profile, scriptDir string)

Types

type Install

type Install struct {
	Url string `mapstructure:"url"`
	Bin string `mapstructure:"bin"`
}

type Profile

type Profile struct {
	BinaryProfile []map[string]Install `mapstructure:"binary"`
	ScriptProfile []map[string]Script  `mapstructure:"script"`
}

func SelectInstallProfiles

func SelectInstallProfiles(yamlFile string) (selectedBinariesProfiles, selectedScriptProfiles []string, allConfig Profile)

type ReleaseProfile

type ReleaseProfile struct {
	RepositoryProfile []map[string]ReleaseRepository `mapstructure:"repositories"`
}

func SelectReleaseProfiles

func SelectReleaseProfiles(yamlFile string) (selectedReleaseProfiles []string, allReleaseProfiles ReleaseProfile)

type ReleaseRepository

type ReleaseRepository struct {
	Url     string `mapstructure:"url"`
	Branch  string `mapstructure:"branch"`
	Version string `mapstructure:"version"`
}

RELEASE

type Script

type Script struct {
	Script string `mapstructure:"script"`
}

Jump to

Keyboard shortcuts

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