Documentation
¶
Index ¶
- func CreateClient(ctx context.Context, accessToken string) *github.Client
- func ExtractAllCommandsFromDockerfile(data string) ([]dockerfile.Command, error)
- func ExtractRunCommandsFromDockerfile(data string) ([]dockerfile.Command, error)
- func GetRepoList(jsonFilePath string) ([]string, error)
- func LoadDockerfiles(ctx context.Context, client *github.Client, repoInfo *Repo)
- func LoadLanguages(ctx context.Context, client *github.Client, repoInfo *Repo) error
- func TranslateDockerfile(data string) ([]string, error)
- func TranslateShellScript(data string) ([]string, error)
- type Language
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
CreateClient authenticates and creates a client to use
func ExtractAllCommandsFromDockerfile ¶
func ExtractAllCommandsFromDockerfile(data string) ([]dockerfile.Command, error)
ExtractAllCommandsFromDockerfile
func ExtractRunCommandsFromDockerfile ¶
func ExtractRunCommandsFromDockerfile(data string) ([]dockerfile.Command, error)
ExtractRunCommandsFromDockerfile
func GetRepoList ¶
GetRepoList creates a list of repos from a json array file
func LoadDockerfiles ¶
LoadDockerfiles loads all files matching dockerfile in their path
func LoadLanguages ¶
LoadLanguages loads all the languages in the repository
func TranslateDockerfile ¶
func TranslateShellScript ¶
Types ¶
type Repo ¶
type Repo struct { URL string `json:"url"` Owner string `json:"owner"` Repo string `json:"repo"` Languages []Language `json:"languages"` Dockerfiles []string `json:"dockerfiles"` Images []string `json:"images"` }
Repos holds information about a GitHub repository
func LoadRepoCache ¶
LoadRepoCache will load a list of Repo objects from a json file.
Click to show internal directories.
Click to hide internal directories.