Documentation
¶
Index ¶
- func ClientSet(kubeConfigPath string) *kubernetes.Clientset
- func ExtractJson(value interface{}, s string) (interface{}, error)
- func GetFileContent(client *github.Client, file *github.CommitFile, owner, repo string) (string, error)
- func GetPullRequestFiles(client *github.Client, o, r string, n int) ([]*github.CommitFile, *github.Response, error)
- func GitHubClient(token string) *github.Client
- func NamespaceConfigMaps(clientset *kubernetes.Clientset) ([]*v1.ConfigMapList, error)
- func SelectFile(pull int, file *github.CommitFile) *github.CommitFile
- type ConfigMaps
- type JSON
- type YAML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientSet ¶
func ClientSet(kubeConfigPath string) *kubernetes.Clientset
func ExtractJson ¶
func GetFileContent ¶
func GetPullRequestFiles ¶
func GetPullRequestFiles(client *github.Client, o, r string, n int) ([]*github.CommitFile, *github.Response, error)
ListFiles retrieves a list of commit files for each pull request in a GitHub repository. It takes a GitHub client and a context as input parameters. It returns a slice of commit files, and an error if any.
func GitHubClient ¶
func NamespaceConfigMaps ¶
func NamespaceConfigMaps(clientset *kubernetes.Clientset) ([]*v1.ConfigMapList, error)
func SelectFile ¶
func SelectFile(pull int, file *github.CommitFile) *github.CommitFile
Types ¶
type ConfigMaps ¶
type YAML ¶
type YAML struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` Labels struct { GrafanaDashboard string `yaml:"grafana_dashboard"` } `yaml:"labels"` } `yaml:"metadata"` Data map[string]interface{} `yaml:"data"` }
func ExtractYaml ¶
Click to show internal directories.
Click to hide internal directories.