config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	//SshAuth         ssh.AuthMethod
	HttpAuth        http.AuthMethod
	ProtoOutDir     string
	GitCloneDir     string
	ProtoRepoDir    string
	ProtoImportPath []string
	GitAccessToken  string
	GitContext      GitContext
}

type GitConfig

type GitConfig struct {
	User         string
	Organization string
	Host         string
}

func (GitConfig) GetRepoBase

func (c GitConfig) GetRepoBase() string

func (GitConfig) GetRepoOwner

func (c GitConfig) GetRepoOwner() string

func (GitConfig) RepoOwner

func (g GitConfig) RepoOwner() string

type GitContext

type GitContext struct {
	Branch string
	Tag    string
}

type ProtodistConfig

type ProtodistConfig struct {
	Name         string
	Git          GitConfig
	Distribution []distribution.Config
}

func ParseProtodistConfig

func ParseProtodistConfig(configFile string) (ProtodistConfig, error)

Jump to

Keyboard shortcuts

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