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
Click to show internal directories.
Click to hide internal directories.