Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultOrigin = "origin" DefaultBranch = "master" DefaultPublicKeyAuthUser = "git" )
Variables ¶
View Source
var KexAlgos []string
List of custom key exchange algorithms to be used for ssh connections.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶ added in v0.17.0
type AuthOptions struct { Transport TransportType Host string Username string Password string Identity []byte KnownHosts []byte CAFile []byte }
AuthOptions are the authentication options for the Transport of communication with a remote origin.
func AuthOptionsFromSecret ¶ added in v0.17.0
func AuthOptionsFromSecret(URL string, secret *v1.Secret) (*AuthOptions, error)
AuthOptionsFromSecret constructs an AuthOptions object from the given Secret, and then validates the result. It returns the AuthOptions, or an error.
func AuthOptionsWithoutSecret ¶ added in v0.22.0
func AuthOptionsWithoutSecret(URL string) (*AuthOptions, error)
AuthOptionsWithoutSecret constructs a minimal AuthOptions object from the given URL and then validates the result. It returns the AuthOptions, or an error.
func (AuthOptions) Validate ¶ added in v0.17.0
func (o AuthOptions) Validate() error
Validate the AuthOptions against the defined Transport.
type CheckoutOptions ¶ added in v0.11.0
type CheckoutOptions struct { // Branch to checkout, can be combined with Branch with some // Implementations. Branch string // Tag to checkout, takes precedence over Branch. Tag string // SemVer tag expression to checkout, takes precedence over Tag. SemVer string `json:"semver,omitempty"` // Commit SHA1 to checkout, takes precedence over Tag and SemVer, // can be combined with Branch with some Implementations. Commit string // RecurseSubmodules defines if submodules should be checked out, // not supported by all Implementations. RecurseSubmodules bool }
CheckoutOptions are the options used for a Git checkout.
type CheckoutStrategy ¶
type Commit ¶ added in v0.8.0
type Commit struct { // Hash is the SHA1 hash of the commit. Hash Hash // Reference is the original reference of the commit, for example: // 'refs/tags/foo'. Reference string // Author is the original author of the commit. Author Signature // Committer is the one performing the commit, might be different from // Author. Committer Signature // Signature is the PGP signature of the commit. Signature string // Encoded is the encoded commit, without any signature. Encoded []byte // Message is the commit message, contains arbitrary text. Message string }
func (*Commit) ShortMessage ¶ added in v0.22.0
ShortMessage returns the first 50 characters of a commit subject.
type Implementation ¶ added in v0.17.0
type Implementation string
type TransportType ¶ added in v0.17.0
type TransportType string
const ( SSH TransportType = "ssh" HTTPS TransportType = "https" HTTP TransportType = "http" )
Click to show internal directories.
Click to hide internal directories.