Documentation ¶
Index ¶
- Variables
- func CreateAllFolders(folder string) error
- func DownloadAll(folder string, createFolder bool) error
- func DownloadFileTo(owner, repo, file, output string) error
- func GetFile(owner, repo, file string) ([]byte, error)
- func GetGithubClient() *github.Client
- func IsValidToken(token string) bool
- func PushFile(owner, repo, file string) error
- func PushFiles(owner, repo string, files ...string) error
- type BlobFile
- type ConfigModel
- func (this *ConfigModel) AddOrReplaceFile(blobFile BlobFile)
- func (this *ConfigModel) FindBlobFile(blobFileToFind BlobFile) *BlobFile
- func (this *ConfigModel) FindBlobFilesWithFileName(fileName string) []BlobFile
- func (this *ConfigModel) FindIndexBlobFile(blobFileToFind BlobFile) int
- func (this *ConfigModel) GetBlobFiles() []BlobFile
- func (this *ConfigModel) GetToken() string
- func (this *ConfigModel) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
View Source
var CONFIG_FILE = ".github-blob-sender"
View Source
var ConfigPath string
View Source
var GITHUB_TOKEN_ENV = "GITHUB_TOKEN"
Functions ¶
func CreateAllFolders ¶
func DownloadAll ¶
func DownloadFileTo ¶
func GetGithubClient ¶
func IsValidToken ¶
Types ¶
type ConfigModel ¶
type ConfigModel struct { Token string `json:"token"` BlobFiles []BlobFile `json:"blob_files,omitempty"` }
var Config *ConfigModel
func (*ConfigModel) AddOrReplaceFile ¶
func (this *ConfigModel) AddOrReplaceFile(blobFile BlobFile)
func (*ConfigModel) FindBlobFile ¶
func (this *ConfigModel) FindBlobFile(blobFileToFind BlobFile) *BlobFile
func (*ConfigModel) FindBlobFilesWithFileName ¶
func (this *ConfigModel) FindBlobFilesWithFileName(fileName string) []BlobFile
func (*ConfigModel) FindIndexBlobFile ¶
func (this *ConfigModel) FindIndexBlobFile(blobFileToFind BlobFile) int
func (*ConfigModel) GetBlobFiles ¶
func (this *ConfigModel) GetBlobFiles() []BlobFile
func (*ConfigModel) GetToken ¶
func (this *ConfigModel) GetToken() string
func (*ConfigModel) SetToken ¶
func (this *ConfigModel) SetToken(token string)
Click to show internal directories.
Click to hide internal directories.