git

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGitCommitMessage = `` /* 149-byte string literal not displayed */

DefaultGitCommitMessage is the default commit message build with the changes detected in the app

Variables

This section is empty.

Functions

func UserAndPasswordNotProvided added in v0.1.0

func UserAndPasswordNotProvided(repoURL string) error

UserAndPasswordNotProvided return an error used when username or password are not provided for generate and credentials

Types

type Conf

type Conf struct {
	RepoURL string
	Branch  string
	File    string
	Message *template.Template
}

Conf is the configuration for the git client

type Credentials

type Credentials struct {
	Username             string
	Password             string
	Email                string
	SSHPrivKey           string
	SSHPrivKeyFileInline bool
}

Credentials is a git credential config

func (Credentials) NewGitCreds added in v0.1.0

func (c Credentials) NewGitCreds(repoURL string, password string) (transport.AuthMethod, error)

NewGitCreds returns credentials for use with go-git library

Jump to

Keyboard shortcuts

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