Documentation ¶
Index ¶
- Variables
- func IsCodeCommitURL(url string) bool
- func ParseRegion(host string) (string, error)
- type CloneURL
- type CodeCommitCredentials
- type RepoWrapper
- func (r *RepoWrapper) AddAll(repo *git.Repository, dir string) error
- func (r *RepoWrapper) Clone(cloneURL string, destDir string) (*git.Repository, bool, error)
- func (r *RepoWrapper) Commit(w *git.Worktree, name, email, message string, force bool) (*plumbing.Hash, error)
- func (r *RepoWrapper) GetDestPath(path string) string
- func (r *RepoWrapper) Pull(path string) error
- func (r *RepoWrapper) PullR(repo *git.Repository) error
- func (r *RepoWrapper) Push(path string) error
- func (r *RepoWrapper) PushR(repo *git.Repository) error
- type SigningCtx
Constants ¶
This section is empty.
Variables ¶
View Source
var RegionRe *regexp.Regexp
Functions ¶
func IsCodeCommitURL ¶
IsCodeCommitURL return true if the url is for a CodeCommit Git repo.
func ParseRegion ¶ added in v0.2.3
Types ¶
type CloneURL ¶
type CloneURL struct { RawURL string CredValues credentials.Value // contains filtered or unexported fields }
func NewCloneURL ¶
NewCloneURL return CloneURL object for CodeCommit
func (*CloneURL) GetCodeCommitCredentials ¶
func (c *CloneURL) GetCodeCommitCredentials() (*CodeCommitCredentials, error)
GetCodeCommitCredentials return CodeCommitCredentials for URL
type CodeCommitCredentials ¶
type RepoWrapper ¶
type RepoWrapper struct { }
RepoWrapper wraps basic go-git comands
func (*RepoWrapper) AddAll ¶ added in v0.2.4
func (r *RepoWrapper) AddAll(repo *git.Repository, dir string) error
AddAll stages all the files within the provided dir for a commit
func (*RepoWrapper) Clone ¶
func (r *RepoWrapper) Clone(cloneURL string, destDir string) (*git.Repository, bool, error)
Clone a Git repo, return true if the repo is up to date or was from an empty clone.
func (*RepoWrapper) Commit ¶
func (r *RepoWrapper) Commit(w *git.Worktree, name, email, message string, force bool) (*plumbing.Hash, error)
Commit to a Git repo
func (*RepoWrapper) GetDestPath ¶
func (r *RepoWrapper) GetDestPath(path string) string
GetDestPath returns get the dest from either last element of args or the basename of the url (with the .git suffix stripped).
func (*RepoWrapper) PullR ¶
func (r *RepoWrapper) PullR(repo *git.Repository) error
PullR a Git repo.
func (*RepoWrapper) PushR ¶
func (r *RepoWrapper) PushR(repo *git.Repository) error
PushR a Git repo.
type SigningCtx ¶
type SigningCtx struct { ServiceName string Region string Time time.Time CredValues credentials.Value // contains filtered or unexported fields }
func NewSigningContext ¶
func NewSigningContext(u *nurl.URL, region, serviceName string, credValues credentials.Value, signTime time.Time) SigningCtx
Click to show internal directories.
Click to hide internal directories.