git

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMountedSecretGitKeychain

func NewMountedSecretGitKeychain(volumeName string, basicAuthSecrets, sshAuthSecrets []string, sshTrustUnknownHosts bool) (*secretGitKeychain, error)

Types

type Fetcher

type Fetcher struct {
	Logger               *log.Logger
	Keychain             GitKeychain
	InitializeSubmodules bool
}

func (Fetcher) Fetch

func (f Fetcher) Fetch(dir, gitURL, gitRevision, metadataDir string) error

type GitKeychain

type GitKeychain interface {
	Resolve(url string) (transport.AuthMethod, error)
}

type Metadata added in v0.13.0

type Metadata struct {
	Repository string `toml:"repository"`
	Revision   string `toml:"revision"`
}

type Project added in v0.13.0

type Project struct {
	Source Source `toml:"source"`
}

type Resolver

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

func NewResolver

func NewResolver(k8sClient k8sclient.Interface, sshTrustUnknownHosts bool) *Resolver

func (*Resolver) CanResolve

func (*Resolver) CanResolve(sourceResolver *buildapi.SourceResolver) bool

func (*Resolver) Resolve

type Source added in v0.13.0

type Source struct {
	Type     string   `toml:"type"`
	Metadata Metadata `toml:"metadata"`
	Version  Version  `toml:"version"`
}

type Version added in v0.13.0

type Version struct {
	Commit string `toml:"commit"`
}

Jump to

Keyboard shortcuts

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