Documentation ¶
Index ¶
- type Git
- func (g *Git) Add(files []string) error
- func (g *Git) Checkout() error
- func (g *Git) Clean() error
- func (g *Git) Clone() (string, error)
- func (g *Git) Commit(message string) error
- func (g *Git) GetDirectory() (directory string)
- func (g *Git) Init(source string, pipelineID string) (err error)
- func (g *Git) Push() error
- func (g *Git) PushTag(tag string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct { URL string Username string Password string Branch string User string Email string Directory string Version string Force bool // Force is used during the git push phase to run `git push --force`. CommitMessage commit.Commit // CommitMessage contains conventional commit metadata as type or scope, used to generate the final commit message. // contains filtered or unexported fields }
Git contains settings to manipulate a git repository.
func (*Git) GetDirectory ¶
GetDirectory returns the working git directory.
Click to show internal directories.
Click to hide internal directories.