v1

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func IsHostAzure(host string) bool

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

func NewAzureParserWithURL(fullURL string) (*AzureURL, error)

NewAzureParserWithURL parsed instance of a azure parser

func (*AzureURL) DownloadAllFiles added in v0.0.21

func (az *AzureURL) DownloadAllFiles() (map[string][]byte, map[string]error)

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 (az *AzureURL) GetBranchName() string

func (*AzureURL) GetHostName

func (az *AzureURL) GetHostName() string

func (*AzureURL) GetHttpCloneURL

func (az *AzureURL) GetHttpCloneURL() string

func (*AzureURL) GetLatestCommit added in v0.0.21

func (az *AzureURL) GetLatestCommit() (*apis.Commit, error)

ListAll list all directories and files in url tree

func (*AzureURL) GetOwnerName

func (az *AzureURL) GetOwnerName() string

func (*AzureURL) GetPath

func (az *AzureURL) GetPath() string

func (*AzureURL) GetProjectName

func (az *AzureURL) GetProjectName() string

func (*AzureURL) GetProvider

func (az *AzureURL) GetProvider() string

func (*AzureURL) GetRepoName

func (az *AzureURL) GetRepoName() string

func (*AzureURL) GetTag

func (az *AzureURL) GetTag() string

func (*AzureURL) GetToken

func (az *AzureURL) GetToken() string

func (*AzureURL) GetTree added in v0.0.21

func (az *AzureURL) GetTree() (*azureapi.Tree, error)

ListAll list all directories and files in url tree

func (*AzureURL) GetURL

func (az *AzureURL) GetURL() *url.URL

func (*AzureURL) ListAllNames added in v0.0.21

func (az *AzureURL) ListAllNames() ([]string, error)

ListAllNames list all directories and files in url tree

func (*AzureURL) ListDirsNames added in v0.0.21

func (az *AzureURL) ListDirsNames() ([]string, error)

ListDirsNames list all directories in url tree

func (*AzureURL) ListFilesNames added in v0.0.21

func (az *AzureURL) ListFilesNames() ([]string, error)

ListAll list all files in url tree

func (*AzureURL) ListFilesNamesWithExtension added in v0.0.21

func (az *AzureURL) ListFilesNamesWithExtension(filesExtensions []string) ([]string, error)

ListFilesNamesWithExtension list all files in path with the desired extension

func (*AzureURL) Parse

func (az *AzureURL) Parse(fullURL string) error

Parse URL

func (*AzureURL) SetBranchName

func (az *AzureURL) SetBranchName(branch string)

func (*AzureURL) SetDefaultBranchName added in v0.0.21

func (az *AzureURL) SetDefaultBranchName() error

Set the default brach of the repo

func (*AzureURL) SetOwnerName

func (az *AzureURL) SetOwnerName(o string)

func (*AzureURL) SetPath

func (az *AzureURL) SetPath(p string)

func (*AzureURL) SetProjectName

func (az *AzureURL) SetProjectName(project string)

func (*AzureURL) SetRepoName

func (az *AzureURL) SetRepoName(r string)

func (*AzureURL) SetTag

func (az *AzureURL) SetTag(tag string)

func (*AzureURL) SetToken

func (az *AzureURL) SetToken(token string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL