Documentation ¶
Index ¶
- Constants
- func IsHostAzure(host string) bool
- type AzureURL
- func (az *AzureURL) DownloadAllFiles() (map[string][]byte, map[string]error)
- func (az *AzureURL) DownloadFilesWithExtension(filesExtensions []string) (map[string][]byte, map[string]error)
- func (az *AzureURL) GetBranchName() string
- func (az *AzureURL) GetHostName() string
- func (az *AzureURL) GetHttpCloneURL() string
- func (az *AzureURL) GetLatestCommit() (*apis.Commit, error)
- func (az *AzureURL) GetOwnerName() string
- func (az *AzureURL) GetPath() string
- func (az *AzureURL) GetProjectName() string
- func (az *AzureURL) GetProvider() string
- func (az *AzureURL) GetRepoName() string
- func (az *AzureURL) GetTag() string
- func (az *AzureURL) GetToken() string
- func (az *AzureURL) GetTree() (*azureapi.Tree, error)
- func (az *AzureURL) GetURL() *url.URL
- func (az *AzureURL) ListAllNames() ([]string, error)
- func (az *AzureURL) ListDirsNames() ([]string, error)
- func (az *AzureURL) ListFilesNames() ([]string, error)
- func (az *AzureURL) ListFilesNamesWithExtension(filesExtensions []string) ([]string, error)
- func (az *AzureURL) Parse(fullURL string) error
- func (az *AzureURL) SetBranchName(branch string)
- func (az *AzureURL) SetDefaultBranchName() error
- func (az *AzureURL) SetOwnerName(o string)
- func (az *AzureURL) SetPath(p string)
- func (az *AzureURL) SetProjectName(project string)
- func (az *AzureURL) SetRepoName(r string)
- func (az *AzureURL) SetTag(tag string)
- func (az *AzureURL) SetToken(token string)
Constants ¶
View Source
const HOST = "azure.com"
View Source
const HOST_DEV = "dev.azure.com"
View Source
const HOST_PROD = "prod.azure.com"
Variables ¶
This section is empty.
Functions ¶
func IsHostAzure ¶
Types ¶
type AzureURL ¶
type AzureURL struct {
// contains filtered or unexported fields
}
func NewAzureParser ¶
func NewAzureParser() *AzureURL
NewAzureParser empty instance of a azure parser
func NewAzureParserWithURL ¶
NewAzureParserWithURL parsed instance of a azure parser
func (*AzureURL) DownloadAllFiles ¶ added in v0.0.21
DownloadAllFiles download files from git repo tree return map of (url:file, url:error)
func (*AzureURL) DownloadFilesWithExtension ¶ added in v0.0.21
func (az *AzureURL) DownloadFilesWithExtension(filesExtensions []string) (map[string][]byte, map[string]error)
DownloadFilesWithExtension download files from git repo tree based on file extension return map of (url:file, url:error)
func (*AzureURL) GetBranchName ¶
func (*AzureURL) GetHostName ¶
func (*AzureURL) GetHttpCloneURL ¶
func (*AzureURL) GetLatestCommit ¶ added in v0.0.21
ListAll list all directories and files in url tree
func (*AzureURL) GetOwnerName ¶
func (*AzureURL) GetProjectName ¶
func (*AzureURL) GetProvider ¶
func (*AzureURL) GetRepoName ¶
func (*AzureURL) ListAllNames ¶ added in v0.0.21
ListAllNames list all directories and files in url tree
func (*AzureURL) ListDirsNames ¶ added in v0.0.21
ListDirsNames list all directories in url tree
func (*AzureURL) ListFilesNames ¶ added in v0.0.21
ListAll list all files in url tree
func (*AzureURL) ListFilesNamesWithExtension ¶ added in v0.0.21
ListFilesNamesWithExtension list all files in path with the desired extension
func (*AzureURL) SetBranchName ¶
func (*AzureURL) SetDefaultBranchName ¶ added in v0.0.21
Set the default brach of the repo
func (*AzureURL) SetOwnerName ¶
func (*AzureURL) SetProjectName ¶
func (*AzureURL) SetRepoName ¶
Click to show internal directories.
Click to hide internal directories.