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) GetChangedFiles(workingDir string) ([]string, error)
- func (g *Git) GetDirectory() (directory string)
- func (g *Git) Push() error
- func (g *Git) PushTag(tag string) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) GetDirectory ¶
GetDirectory returns the working git directory.
type Spec ¶ added in v0.26.0
type Spec struct { // URL specifies the git url URL string `jsonschema:"required"` // Username specifies the username for http authentication Username string // Password specifies the password for http authentication Password string // Branch specifies the git branch Branch string // User specifies the git commit author User string // Email specifies the git commit email Email string // Directory specifies the directory to use for cloning the repository Directory string // Force is used during the git push phase to run `git push --force`. Force bool // CommitMessage contains conventional commit metadata as type or scope, used to generate the final commit message. CommitMessage commit.Commit // GPG key and passphrased used for commit signing GPG sign.GPGSpec }
Spec contains settings to manipulate a git repository.
Click to show internal directories.
Click to hide internal directories.