git

package
Version: v0.0.0-...-e07cd09 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(_type string, iconf interface{}) (git.Auth, error)

func New

func New(plugin puller.Config) (puller.Puller, error)

func NewAuthAccessToken

func NewAuthAccessToken(iconf interface{}) (git.Auth, error)

func NewAuthDeployKey

func NewAuthDeployKey(iconf interface{}) (git.Auth, error)

func NewAuthSSH

func NewAuthSSH(iconf interface{}) (git.Auth, error)

Types

type AuthAccessToken

type AuthAccessToken struct {
	Username string
	Token    string
}

type AuthDeployKey

type AuthDeployKey struct {
	PublicKey  string
	PrivateKey string
}

type AuthSSH

type AuthSSH struct {
	PublicKey  string
	PrivateKey string
}

type Git

type Git struct {
	Address string
	Ref     string
	Dir     string
	Auth    struct {
		Type   string
		Config interface{}
	}
}

func (Git) Pull

func (g Git) Pull(ctx context.Context) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL