git

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 9 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, token string) bool
	GetFile(endpoint, token, branch, path 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, token string) bool

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

func (DefaultAgent) GetFile

func (a DefaultAgent) GetFile(endpoint, token, branch, path 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