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 CheckoutCreate() Option[gogit.CheckoutOptions]
- func CloneAuth(auth Auth) Option[gogit.CloneOptions]
- func CloneBranch(branch string) Option[gogit.CloneOptions]
- func CloneTag(tag string) Option[gogit.CloneOptions]
- func CloneURI(uri string) Option[gogit.CloneOptions]
- func CommitAll() Option[gogit.CommitOptions]
- func CommitAuthor(user, email string, t time.Time) Option[gogit.CommitOptions]
- func Commiter(user, email string, t time.Time) Option[gogit.CommitOptions]
- func ForceCheckout() Option[gogit.CheckoutOptions]
- func ForcePush() Option[gogit.PushOptions]
- func KeepCheckout() Option[gogit.CheckoutOptions]
- func PullBranch(branch string) Option[gogit.PullOptions]
- func PullRemote(name string) Option[gogit.PullOptions]
- func PullRemoteURL(uri string) Option[gogit.PullOptions]
- func PullTag(tag string) Option[gogit.PullOptions]
- func PushAtomic() Option[gogit.PushOptions]
- func PushOpts(opts map[string]string) Option[gogit.PushOptions]
- func PushRemote(r string) Option[gogit.PushOptions]
- func PushRemoteURL(uri string) Option[gogit.PushOptions]
- func PushTags() Option[gogit.PushOptions]
- 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 CheckoutCreate ¶ added in v1.0.6
func CheckoutCreate() Option[gogit.CheckoutOptions]
func CloneBranch ¶ added in v1.0.6
func CloneBranch(branch string) Option[gogit.CloneOptions]
func CommitAll ¶
func CommitAll() Option[gogit.CommitOptions]
func CommitAuthor ¶ added in v1.0.6
func ForceCheckout ¶
func ForceCheckout() Option[gogit.CheckoutOptions]
func ForcePush ¶
func ForcePush() Option[gogit.PushOptions]
func KeepCheckout ¶
func KeepCheckout() Option[gogit.CheckoutOptions]
func PullBranch ¶ added in v1.0.6
func PullBranch(branch string) Option[gogit.PullOptions]
func PullRemote ¶ added in v1.0.6
func PullRemote(name string) Option[gogit.PullOptions]
func PullRemoteURL ¶ added in v1.0.6
func PullRemoteURL(uri string) Option[gogit.PullOptions]
func PushAtomic ¶ added in v1.0.6
func PushAtomic() Option[gogit.PushOptions]
func PushRemote ¶ added in v1.0.6
func PushRemote(r string) Option[gogit.PushOptions]
func PushRemoteURL ¶ added in v1.0.6
func PushRemoteURL(uri string) Option[gogit.PushOptions]
func PushTags ¶ added in v1.0.6
func PushTags() Option[gogit.PushOptions]
type OptionType ¶ added in v1.0.2
type OptionType interface { gogit.CloneOptions | gogit.PullOptions | gogit.CheckoutOptions | gogit.AddOptions | gogit.CommitOptions | gogit.PushOptions }
type Repo ¶
type Repo interface { Pull(options ...Option[gogit.PullOptions]) 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.