Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct {
URL string
Site string
Username string
Repo string
Token string
Branch string
Commit string
Path string
NoPrint bool
PrintTree bool
Check bool
PrintInfo bool
Output string
Formats []string
}
Args represents command-line arguments
type GitHubContent ¶
type GitHubContent struct {
Name string `json:"name"`
Path string `json:"path"`
Type string `json:"type"` // file or dir
Size int `json:"size"`
DownloadURL *string `json:"download_url"` // Pointer to handle null
Sha string `json:"sha"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
GitURL string `json:"git_url"`
}
GitHubContent represents an item in a GitHub repository's contents
type ParsedURL ¶
type ParsedURL struct {
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Username string `json:"username"`
Repo string `json:"repo"`
Branch string `json:"branch"`
Commit string `json:"commit"`
Path string `json:"path"`
ParentPath string `json:"parent_path"`
RequestPath string `json:"request_path"`
RequestType string `json:"request_type"` // file or dir
}
ParsedURL represents parsed components of a platform URL
type Platform ¶
type Platform struct {
Name string `json:"name"`
ID string `json:"id"`
PublicToken string `json:"public_token"`
URL URL `json:"URL"`
URLStruc URLStruc `json:"URLStruc"`
RawURLStruc RawURLStruc `json:"rawURLStruc"`
}
Platform represents a platform configuration
type RawURLStruc ¶
type RawURLStruc struct {
Site string `json:"site"`
Commit string `json:"commit"`
Branch string `json:"branch"`
}
RawURLStruc represents the raw URL structure templates for a platform
type RepositoryStructure ¶
type RepositoryStructure struct {
Files []string `json:"files"`
FilesName []string `json:"files_name"`
FilesSha []string `json:"files_sha"`
FilesHTMLURL []string `json:"files_html_url"`
FilesGitURL []string `json:"files_git_url"`
FilesURL []string `json:"files_url"`
FilesSize []int `json:"files_size"`
Folders []string `json:"folders"`
DownloadURLs []string `json:"download_urls"`
FilesRequest []string `json:"files_request"`
}
RepositoryStructure represents the categorized structure of a repository
Click to show internal directories.
Click to hide internal directories.