git

package
v0.0.0-...-cdc044f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(user string, token string) *Client

func (*Client) Initialize

func (c *Client) Initialize(ctx context.Context, repoConfigs []config.Repository) (map[string]*Repository, error)

type Repository

type Repository struct {
	URL string
	Dir string
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(url string, dir string) *Repository

func (*Repository) Add

func (r *Repository) Add(ctx context.Context) error

func (*Repository) Clean

func (r *Repository) Clean() error

func (*Repository) Clone

func (r *Repository) Clone(ctx context.Context, basicAuthURL string) error

func (*Repository) Commit

func (r *Repository) Commit(ctx context.Context) error

func (*Repository) CopyRepositoryToTempDir

func (r *Repository) CopyRepositoryToTempDir(ctx context.Context) (*Repository, error)

func (*Repository) Fetch

func (r *Repository) Fetch(ctx context.Context) error

func (*Repository) Pull

func (r *Repository) Pull(ctx context.Context) error

func (*Repository) Push

func (r *Repository) Push(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL