Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RemoteConfigUtils

Hierarchy

  • RemoteConfigUtils

Index

Properties

Static MAX_SIZE

MAX_SIZE: number = 1000000

Methods

Static checkDownloadSize

  • checkDownloadSize(httpService: HttpService, url: string): Promise<boolean>

Static downloadRulesFile

  • downloadRulesFile(dataAccessService: DataAccessService, httpService: HttpService, githubService: GithubService, gitlabService: GitlabService, projectURL: string, filename: string, branch?: string, defaultBranch?: string): Promise<string>
  • Download the .rulesrc from the repository associate to the projectURL.

    Parameters

    • dataAccessService: DataAccessService
    • httpService: HttpService
    • githubService: GithubService
    • gitlabService: GitlabService
    • projectURL: string
    • filename: string
    • Default value branch: string = "master"
    • Optional defaultBranch: string

    Returns Promise<string>

    the location of the .hygie repo

Static getAccessToken

  • getAccessToken(result: string): string

Static getGitRawPath

  • getGitRawPath(whichGit: GitTypeEnum, projectURL: string, filePath: string, branch?: string): string

Static getGitType

Static getGitlabProjectId

  • getGitlabProjectId(httpService: HttpService, gitApi: string, repositoryFullName: string): Promise<string>
  • Parameters

    • httpService: HttpService
    • gitApi: string
    • repositoryFullName: string

    Returns Promise<string>

Static registerConfigEnv

  • Create the config.env file with gitApi URL and the corresponding gitToken

    Parameters

    Returns Promise<any>

    an Object with the success status (true if registration succeed, false otherwise) and if the file already exist

Generated using TypeDoc