git

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	CheckRepo(endpoint, username, password string) bool
	GetFile(endpoint, branch, path, username, password string) []byte
}

Agent is the interface for git interaction

type DefaultAgent

type DefaultAgent struct{}

DefaultAgent is the default implementaiton of the Agent interface

func (DefaultAgent) CheckRepo

func (a DefaultAgent) CheckRepo(endpoint, username, password string) bool

CheckRepo tries to fetch from the endpoint to check if it is valid

func (DefaultAgent) GetFile

func (a DefaultAgent) GetFile(endpoint, branch, path, username, password string) []byte

GetFile gets a single file from the repo

Jump to

Keyboard shortcuts

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