Documentation ¶
Index ¶
- Variables
- func ArtifactCommitMessage(service, artifactID, author string) string
- func Checkout(r *git.Repository, hash plumbing.Hash) error
- func Clone(ctx context.Context, repoURL, destination, sshPrivateKeyPath string) (*git.Repository, error)
- func CloneDepth(ctx context.Context, repoURL, destination, sshPrivateKeyPath string, depth int) (*git.Repository, error)
- func Commit(ctx context.Context, repo *git.Repository, ...) error
- func CommitterDetails() (string, string, error)
- func GlobalConfig() (config.Config, error)
- func LocateArtifact(r *git.Repository, artifactID string) (plumbing.Hash, error)
- func LocateRelease(r *git.Repository, artifactID string) (plumbing.Hash, error)
- func LocateServiceRelease(r *git.Repository, env, service string) (plumbing.Hash, error)
- func LocateServiceReleaseRollbackSkip(r *git.Repository, env, service string, n uint) (plumbing.Hash, error)
- func PolicyUpdateApplyCommitMessage(env, service, branch, policy string) string
- func PolicyUpdateDeleteCommitMessage(service string) string
- func ReleaseCommitMessage(env, service, artifactID string) string
- func RollbackCommitMessage(env, service, oldArtifactID, newArtifactID string) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ArtifactCommitMessage ¶ added in v0.0.4
ArtifactCommitMessage returns an artifact commit message.
func CloneDepth ¶
func CommitterDetails ¶
func GlobalConfig ¶
GlobalConfig returns the global Git configuration read from the user home directory.
func LocateArtifact ¶ added in v0.0.2
LocateArtifact traverses the git log to find an artifact commit with id artifactID.
It expects the commit to have a commit messages as the one returned by ArtifactCommitMessage.
func LocateRelease ¶
LocateRelease traverses the git log to find a release commit with id artifactID.
It expects the commit to have a commit messages as the one returned by ReleaseCommitMessage.
func LocateServiceRelease ¶ added in v0.0.10
LocateServiceRelease traverses the git log to find a release commit for a specified service and environment.
It expects the commit to have a commit messages as the one returned by ReleaseCommitMessage.
func LocateServiceReleaseRollbackSkip ¶ added in v0.0.10
func LocateServiceReleaseRollbackSkip(r *git.Repository, env, service string, n uint) (plumbing.Hash, error)
LocateServiceReleaseRollbackSkip traverses the git log to find a release or rollback commit for a specified service and environment.
It expects the commit to have a commit messages as the one returned by ReleaseCommitMessage or RollbackCommitMessage.
func PolicyUpdateApplyCommitMessage ¶ added in v0.0.4
PolicyUpdateApplyCommitMessage returns an apply policy commit message.
func PolicyUpdateDeleteCommitMessage ¶ added in v0.0.4
PolicyUpdateDeleteCommitMessage returns a delete policy commit message.
func ReleaseCommitMessage ¶ added in v0.0.4
ReleaseCommitMessage returns an artifact release commit message.
func RollbackCommitMessage ¶ added in v0.0.10
RollbackCommitMessage returns an artifact rollback commit message.
Types ¶
This section is empty.