git

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicClient

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

BasicClient connects to git using ssh

func NewHTTPSBasicClient

func NewHTTPSBasicClient(user, pass string, opts ...Option) (BasicClient, error)

NewHTTPSBasicClient creates a new https based git client

func NewSSHBasicClient

func NewSSHBasicClient(sshPemFile string, opts ...Option) (BasicClient, error)

NewSSHBasicClient creates a new ssh based git client

func (BasicClient) GetManifestFile

func (g BasicClient) GetManifestFile(repository, commitHash, path string) ([]byte, error)

type Client

type Client interface {
	GetManifestFile(repository, commitHash, path string) ([]byte, error)
}

Client allows for retrieving data from git repo

type Option

type Option func(*BasicClient)

Option is a function for configuring the BasicClient

func WithProgressWriter

func WithProgressWriter(w io.Writer) Option

Jump to

Keyboard shortcuts

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