Documentation
¶
Index ¶
- Constants
- type Auth
- type Option
- func AddAll() Option[gogit.AddOptions]
- func AddMask(m string) Option[gogit.AddOptions]
- func AddPath(p string) Option[gogit.AddOptions]
- func CommitAll() Option[gogit.CommitOptions]
- func ForceCheckout() Option[gogit.CheckoutOptions]
- func ForcePush() Option[gogit.PushOptions]
- func KeepCheckout() Option[gogit.CheckoutOptions]
- func WithAtomic() Option[gogit.PushOptions]
- func WithAuth(auth Auth) Option[gogit.CloneOptions]
- func WithAuthor(user, email string, t time.Time) Option[gogit.CommitOptions]
- func WithBranch(branch string) Option[gogit.CloneOptions]
- func WithCommiter(user, email string, t time.Time) Option[gogit.CommitOptions]
- func WithCreate() Option[gogit.CheckoutOptions]
- func WithOpts(opts map[string]string) Option[gogit.PushOptions]
- func WithRemote(r string) Option[gogit.PushOptions]
- func WithRemoteURL(rurl string) Option[gogit.PushOptions]
- func WithTag(tag string) Option[gogit.CloneOptions]
- func WithTags() Option[gogit.PushOptions]
- func WithURI(uri string) Option[gogit.CloneOptions]
- type OptionType
- type Ref
- type Repo
- type TokenName
Constants ¶
View Source
const ( ErrWrongRepoPath = errors.Const("wrong repo path") ErrRepoPathNotEmpty = errors.Const("repo path directory is not empty") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option[T OptionType] func(*T)
func AddAll ¶
func AddAll() Option[gogit.AddOptions]
func CommitAll ¶
func CommitAll() Option[gogit.CommitOptions]
func ForceCheckout ¶
func ForceCheckout() Option[gogit.CheckoutOptions]
func ForcePush ¶
func ForcePush() Option[gogit.PushOptions]
func KeepCheckout ¶
func KeepCheckout() Option[gogit.CheckoutOptions]
func WithAtomic ¶
func WithAtomic() Option[gogit.PushOptions]
func WithAuthor ¶
func WithBranch ¶ added in v1.0.4
func WithBranch(branch string) Option[gogit.CloneOptions]
func WithCommiter ¶
func WithCreate ¶
func WithCreate() Option[gogit.CheckoutOptions]
func WithRemote ¶
func WithRemote(r string) Option[gogit.PushOptions]
func WithRemoteURL ¶
func WithRemoteURL(rurl string) Option[gogit.PushOptions]
func WithTags ¶
func WithTags() Option[gogit.PushOptions]
type OptionType ¶ added in v1.0.2
type OptionType interface {
gogit.CloneOptions |
gogit.CheckoutOptions |
gogit.AddOptions |
gogit.CommitOptions |
gogit.PushOptions
}
type Repo ¶
type Repo interface {
Pull() (Repo, error)
Head() (Ref, error)
Checkout(target string, options ...Option[gogit.CheckoutOptions]) error
Add(opts ...Option[gogit.AddOptions]) error
Commit(message string, opts ...Option[gogit.CommitOptions]) (string, error)
Push(options ...Option[gogit.PushOptions]) error
Remotes() map[string][]string
}
Click to show internal directories.
Click to hide internal directories.