Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoChanges = errors.New("no changes made in repo")
)
View Source
var KeySize = 4096
KeySize is the size of generated private keys.
View Source
var NoRepoError = flux.UserConfigProblem{&flux.BaseError{ Err: errors.New("no repo in user config"), Help: `No Git repository URL in your config We need to clone a git repo to proceed, and you haven't supplied one. Please upload a config file, including a git repository URL, as described in https://github.com/weaveworks/flux/blob/master/site/using.md `, }}
Functions ¶
func CloningError ¶
Types ¶
type KeyGenerator ¶
func NewKeyGenerator ¶
func NewKeyGenerator() KeyGenerator
type Repo ¶
type Repo struct { // The URL to the config repo that holds the resource definition files. For // example, "https://github.com/myorg/conf.git", "git@foo.com:myorg/conf". URL string // The branch of the config repo that holds the resource definition files. Branch string // The private key (e.g., the contents of an id_rsa file) with // permissions to clone and push to the config repo. Key string // The path within the config repo where files are stored. Path string }
Repo represents a remote git repo
func (Repo) CommitAndPush ¶
Click to show internal directories.
Click to hide internal directories.