prompt

package
v0.0.0-...-152d858 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BUILD_CONF_VERSION = 1
View Source
const USE_ARTIFACTORY = "useArtifactory"

Variables

This section is empty.

Functions

func GetRepositories

func GetRepositories(resolveRes *viper.Viper, repoTypes ...utils.RepoType) ([]string, error)

func ReadArtifactoryServer

func ReadArtifactoryServer(msg string) (*viper.Viper, error)

func ReadRepo

func ReadRepo(msg string, repos []string) (string, error)

func VerifyConfigFile

func VerifyConfigFile(configFilePath string) error

Types

type CommonConfig

type CommonConfig struct {
	Version    int    `yaml:"version,omitempty"`
	ConfigType string `yaml:"type,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	ServerId string `yaml:"serverID,omitempty"`
	User     string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
	Url      string `yaml:"url,omitempty"`
}

func (*ServerConfig) Set

func (server *ServerConfig) Set(config *viper.Viper) error

Jump to

Keyboard shortcuts

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