Documentation ¶
Index ¶
- Constants
- func CheckNotExist(src string) bool
- func DetermineIdlType(idlPid string) (int32, error)
- func FigureOutListenOn(listenOn string) string
- func FindRootPath(absoluteFilePath, relativeFilePath string) string
- func GetGitHubTokenInfo(client *github.Client) (owner string, ownerId int64, tokenType int32, expirationTime time.Time, ...)
- func GetGitLabTokenInfo(client *gitlab.Client) (owner string, ownerId int64, tokenType int32, expirationTime time.Time, ...)
- func GetRepoFullUrl(repoType int32, repoUrl, ref, filePid string) string
- func GetRepoFullUrlGitHub(repoUrl, ref, filePid string) string
- func GetRepoFullUrlGitLab(repoUrl, ref, filePid string) string
- func InternalIp() string
- func IsFileNotFoundError(err error) bool
- func IsNetworkError(err error) bool
- func IsNotExistMkDir(src string) error
- func IsTokenError(err error) bool
- func MkDir(src string) error
- func NewGithubClient(token string) (client *github.Client, err error)
- func NewGitlabClient(token, baseURL string) (client *gitlab.Client, err error)
- func NewNetAddr(network, address string) net.Addr
- func NewServiceId() (string, error)
- func NewTaskId() (string, error)
- func ParseAddr(addr net.Addr) (host string, port int, err error)
- func ParseRepoFileUrl(repoType int32, url string) (filePid, owner, repoName string, err error)
- func ParseRepoFileUrlGitHub(url string) (filePid, owner, repoName string, err error)
- func ParseRepoFileUrlGitLab(url string) (filePid, owner, repoName string, err error)
- func ParseRepoUrl(url string) (domain, owner, repoName string, err error)
- func ProcessFolders(fileContentMap map[string][]byte, tempDir string, paths ...string) error
- func UnTar(archiveData []byte, tempDir string, IsTarball bool) (string, error)
- func ValidateTokenForRepoGitHub(client *github.Client, owner, repoName string) (bool, error)
- func ValidateTokenForRepoGitLab(client *gitlab.Client, owner, repoName string) (bool, error)
- type NetAddr
Constants ¶
View Source
const (
RegRepoURL = "https?:\\/\\/([^\\/]+)\\/([^\\/]+)\\/([^\\/]+)"
)
Variables ¶
This section is empty.
Functions ¶
func CheckNotExist ¶
func DetermineIdlType ¶
func FigureOutListenOn ¶
func FindRootPath ¶
func GetGitHubTokenInfo ¶
func GetGitLabTokenInfo ¶
func GetRepoFullUrl ¶
func GetRepoFullUrlGitHub ¶
func GetRepoFullUrlGitLab ¶
func InternalIp ¶
func InternalIp() string
func IsFileNotFoundError ¶
IsFileNotFoundError Determine if it is file not found error issue
func IsNetworkError ¶
IsNetworkError Determine if it is a network timeout issue
func IsNotExistMkDir ¶
func IsTokenError ¶
IsTokenError Determine if it is a Token error issue
func NewGitlabClient ¶
func NewNetAddr ¶
NewNetAddr creates a new NetAddr object with the network and address provided.
func NewServiceId ¶
func ParseRepoFileUrl ¶
func ParseRepoFileUrlGitHub ¶
func ParseRepoFileUrlGitLab ¶
func ParseRepoUrl ¶
func ProcessFolders ¶
func UnTar ¶
UnTar Persist the tar compressed package to the specified disk. If using tarball, gzip decompression is required first
Types ¶
Click to show internal directories.
Click to hide internal directories.