Documentation ¶
Index ¶
- Constants
- func CheckServerConfig(server string)
- func ConcurrentRepositoryOperations(repos []string, fn RepoOperation) error
- func CreateManifest()
- func EditConfiguration(configFile string) error
- func ForEachRepo(fn RepoOperation) error
- func GetConfigPath(configFile string) string
- func GetConfigString() string
- func IsSameType(m Manifest, manifestType string) bool
- func LoadCredentialItem(item string, ptr *string, resetCredentials bool) (err error)
- func LoadCredentials(item string, username, password *string, resetCredentials bool) (err error)
- func LoadKeyringItem(item string, ptr *string) (err error)
- func MustSetupConfig()
- func ShowConfig(cfg *Configuration) error
- type ConcurrentResult
- type ConcurrentResults
- type Configuration
- type Dependency
- type Deploy
- type Documentation
- type Environment
- type Git
- func (g *Git) CheckoutBranch() error
- func (g *Git) Clone() (string, error)
- func (g *Git) CommitWithBranchName() error
- func (g *Git) CommitWithIssueKey(cfg *Configuration, message string, extraArgs []string) error
- func (g *Git) ContainedUncommittedChanges() bool
- func (g *Git) CreateBranch(name string) error
- func (g *Git) CurrentHEAD() (string, error)
- func (g *Git) Diff() (string, error)
- func (g *Git) Fetch() error
- func (g *Git) FetchTags() error
- func (g *Git) ForceCreateBranch(name string) error
- func (g *Git) GetCurrentBranch() string
- func (g *Git) GetCurrentRepositoryName() string
- func (g *Git) GetIssueIdRegex() *regexp.Regexp
- func (g *Git) GetIssueKeyFromBranch() string
- func (g *Git) GetIssueTypeFromBranch() string
- func (g *Git) GetIssueTypeRegex() *regexp.Regexp
- func (g *Git) GetPRRegex() *regexp.Regexp
- func (g *Git) GetRepositoryRootPath() (string, error)
- func (g *Git) GetTitleFromBranchName() string
- func (g *Git) ISDirty() bool
- func (g *Git) IsDifferentFromMaster() bool
- func (g *Git) ListFileChanged() []string
- func (g *Git) Log() (commits []*GitCommit)
- func (g *Git) LogNotInMasterBody() string
- func (g *Git) LogNotInMasterSubjects() []string
- func (g *Git) MustRunGitWithStdout(args ...string) string
- func (g *Git) PendingChanges(cfg *Configuration, manifest *Manifest, previousVersion, currentVersion string, ...)
- func (g *Git) PickCommit(commits []*GitCommit) (*GitCommit, error)
- func (g *Git) Push(cfg *Configuration) error
- func (g *Git) RunGit(args ...string) error
- func (g *Git) RunGitWithFullOutput(args ...string) (string, error)
- func (g *Git) RunGitWithStdout(args ...string) (string, error)
- func (g *Git) Sync(unStash bool) (string, error)
- type GitCommit
- type JIRATransition
- type Manifest
- type Manifests
- type Ownership
- type Protocol
- type RepoOperation
- type ServiceConfiguration
- type User
Constants ¶
View Source
const ( ConfigUserFile = "config.yml" )
Variables ¶
This section is empty.
Functions ¶
func CheckServerConfig ¶
func CheckServerConfig(server string)
func ConcurrentRepositoryOperations ¶
func ConcurrentRepositoryOperations(repos []string, fn RepoOperation) error
func CreateManifest ¶
func CreateManifest()
func EditConfiguration ¶
func ForEachRepo ¶
func ForEachRepo(fn RepoOperation) error
func GetConfigPath ¶
func GetConfigString ¶
func GetConfigString() string
func IsSameType ¶
func LoadCredentialItem ¶
func LoadCredentials ¶
func LoadKeyringItem ¶
func MustSetupConfig ¶
func MustSetupConfig()
func ShowConfig ¶
func ShowConfig(cfg *Configuration) error
Types ¶
type ConcurrentResult ¶
type ConcurrentResults ¶
type ConcurrentResults map[string]ConcurrentResult
type Configuration ¶
type Configuration struct { Git struct { NoVerify bool `yaml:"noVerify"` } GitHub struct { Organization, Username, Token string Reviewers []string } Users []User Confluence ServiceConfiguration JIRA struct { Server, Username, Password string Project, Board string Transitions []JIRATransition Enabled bool } ResetCredentials bool }
func LoadConfiguration ¶
func LoadConfiguration() (*Configuration, error)
func (*Configuration) PopulateUser ¶
func (cfg *Configuration) PopulateUser(u *User) error
type Dependency ¶
type Dependency struct { // name of the dependency Name string // optional, explicit name of the dependency. // if not defined the name will be <service>-<dependencyName> e.g. mainapp-mysql UniqueName string // e.g. postgres 9.6 Version string // e.g. why it depends on it Description string // service, database, front-end Type string // not managed / controlled by us on AWS or GCP Dedicated bool // not managed / controlled by us on AWS or GCP External bool // e.g. most services don't communicate directly with a service. // like the service relies on it on putting a message/event in the broadcast queue Implicit bool // out (default), in (as in inbound network requests), both Direction string }
type Documentation ¶
type Environment ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func MustInitGit ¶
func (*Git) CheckoutBranch ¶
func (*Git) CommitWithBranchName ¶
func (*Git) CommitWithIssueKey ¶
func (g *Git) CommitWithIssueKey(cfg *Configuration, message string, extraArgs []string) error
func (*Git) ContainedUncommittedChanges ¶
func (*Git) CreateBranch ¶
func (*Git) CurrentHEAD ¶
func (*Git) ForceCreateBranch ¶
func (*Git) GetCurrentBranch ¶
func (*Git) GetCurrentRepositoryName ¶
func (*Git) GetIssueIdRegex ¶
func (*Git) GetIssueKeyFromBranch ¶
func (*Git) GetIssueTypeFromBranch ¶
func (*Git) GetIssueTypeRegex ¶
func (*Git) GetPRRegex ¶
func (*Git) GetRepositoryRootPath ¶
func (*Git) GetTitleFromBranchName ¶
func (*Git) IsDifferentFromMaster ¶
func (*Git) ListFileChanged ¶
func (*Git) LogNotInMasterBody ¶
func (*Git) LogNotInMasterSubjects ¶
func (*Git) MustRunGitWithStdout ¶
func (*Git) PendingChanges ¶
func (*Git) Push ¶
func (g *Git) Push(cfg *Configuration) error
func (*Git) RunGitWithFullOutput ¶
type JIRATransition ¶
type JIRATransition struct {
Name, Alias string
}
type Manifest ¶
type Manifest struct { Name string Active bool Repository string LastUpdate int64 Platform string // what is it running on Platforms []string Language string Languages []string Types []string Dependencies []Dependency Protocols []Protocol Version string Branch string Deploy Deploy Documentation Documentation Readme string ChangeLog string Page string Owners Ownership }
func LoadManifest ¶
type RepoOperation ¶
type ServiceConfiguration ¶
type ServiceConfiguration struct {
Server, Username, Password string
}
Click to show internal directories.
Click to hide internal directories.