config

package
v0.5.6-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoList

func GetRepoList() []string

func PrintRepos

func PrintRepos(repos []Repo)

func PrintStageResults

func PrintStageResults(results []internaltypes.Result)

func PrintWorkflows

func PrintWorkflows(workflows []internaltypes.Workflow)

func SaveToConfig

func SaveToConfig(r RepoFile)

func StringInSlice

func StringInSlice(a string, list []string) bool

func TrimSuffix

func TrimSuffix(s, suffix string) string

Types

type Location

type Location struct {
	Path      string `json:"path" xml:"path" form:"path" query:"path" mapstructure:"path" validate:"nonzero"`
	Type      string `json:"type" xml:"type" form:"type" query:"type" mapstructure:"type" validate:"nonzero"`
	Subfolder string `json:"subfolder" xml:"subfolder" form:"subfolder" query:"subfolder" mapstructure:"subfolder,omitempty"`
	Branch    string `json:"branch" xml:"branch" form:"branch" query:"branch" mapstructure:"branch,omitempty"`
}

type Repo

type Repo struct {
	Name        string   `json:"name" xml:"name" form:"name" query:"name" mapstructure:"name" validate:"nonzero"`
	Description string   `json:"description" xml:"description" form:"description" query:"description" mapstructure:"description"`
	Location    Location `json:"location" xml:"location" form:"location" query:"location" mapstructure:"location" validate:"nonzero"`
}

func GetConfig

func GetConfig() []Repo

type RepoFile

type RepoFile struct {
	Repositories []Repo `mapstructure:"repositories" validate:"nonzero"`
}
var C RepoFile

func GetConfigFile

func GetConfigFile() *RepoFile

Jump to

Keyboard shortcuts

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