Documentation
¶
Overview ¶
The basher package contains the interface for and implementation of the shell commands that will eventually be exucted for each build. Not technically bash, but basher sounds cool and is descriptive.
Index ¶
- Constants
- type Bashable
- type Basher
- func (b *Basher) CDAndRunCmds(cmds []string, commitHash string) []string
- func (b *Basher) CloneDir(hash string) string
- func (b *Basher) DownloadCodebase(werk *pb.WerkerTask) []string
- func (b *Basher) DownloadKubectl(werkerPort string) []string
- func (b *Basher) DownloadSSHKey(vaultKey, vaultPath string) []string
- func (b *Basher) DownloadTemplateFiles(werkerPort string) []string
- func (b *Basher) GetBbDownloadURL() string
- func (b *Basher) GetGithubDownloadURL() string
- func (b *Basher) InstallPackageDeps() []string
- func (b *Basher) OcelotDir() string
- func (b *Basher) PrefixDir() string
- func (b *Basher) SetBbDownloadURL(downloadURL string)
- func (b *Basher) SetGithubDownloadURL(downloadURL string)
- func (b *Basher) SleeplessDownloadTemplateFiles(werkerIp string, werkerPort string) string
Constants ¶
View Source
const DefaultBitbucketURL = "https://x-token-auth:%s@bitbucket.org/%s.git"
View Source
const DefaultGithubURL = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basher ¶
type Basher struct {
BbDownloadURL string
GithubDownloadURL string
LoopbackIp string
// contains filtered or unexported fields
}
func (*Basher) CDAndRunCmds ¶
CDAndRunCmds will cd into the root directory of the codebase and execute commands passed in
func (*Basher) DownloadCodebase ¶
func (b *Basher) DownloadCodebase(werk *pb.WerkerTask) []string
DownloadCodebase builds bash commands to be executed for downloading the codebase
func (*Basher) DownloadKubectl ¶
func (*Basher) DownloadSSHKey ¶
DownloadSSHKey will using the vault token to try to download the ssh key located at the path + `/ssh`
func (*Basher) DownloadTemplateFiles ¶
DownloadTemplateFiles will download template files necessary to build containers from werker
func (*Basher) GetBbDownloadURL ¶
func (*Basher) GetGithubDownloadURL ¶
func (*Basher) InstallPackageDeps ¶
func (*Basher) SetBbDownloadURL ¶
func (*Basher) SetGithubDownloadURL ¶
Click to show internal directories.
Click to hide internal directories.