config

package
v0.0.0-...-526c146 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiKey           string
	DataDir          string
	Owner            string
	TargetRepository string
	SshKey           string
	SshKeyPassphrase string
	Repositories     []Repository
	Server           string
	WebhookSecret    string
}

func NewConfigFromViper

func NewConfigFromViper(workingDirectory string) *Config

func (*Config) EnsureDirsExist

func (config *Config) EnsureDirsExist()

func (*Config) GetArtifactPath

func (config *Config) GetArtifactPath(artifact string) string

func (*Config) GetRepoPath

func (config *Config) GetRepoPath(dir string) string

func (*Config) GetRepository

func (config *Config) GetRepository(ssh string) (Repository, error)

type Repository

type Repository struct {
	Url           string
	PublishSource bool
}

Jump to

Keyboard shortcuts

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