Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func CreateContainerRegistrySecret(obj *ContainerRegistryAuth) (string, error)
- func InitializeGitProvider(p *GitInitParameters) error
- func NewGitHub() *github.Client
- func PrepareGitEnvironment(cluster *pkgtypes.Cluster, gitopsDir string) error
- func PrepareGitOpsCatalog(gitopsCatalogDir string) error
- func PrepareMgmtCluster(cluster pkgtypes.Cluster) error
- func PullWithAuth(repo *git.Repository, remote string, branch string, auth transport.AuthMethod) error
- type ContainerRegistryAuth
- type GitHubClient
- func (gh *GitHubClient) GetGitopsCatalogRepo() (*github.Repository, error)
- func (gh *GitHubClient) ReadGitopsCatalogAppDirectory(contents []*github.RepositoryContent, applicationName string) ([][]byte, error)
- func (gh *GitHubClient) ReadGitopsCatalogIndex(contents []*github.RepositoryContent) ([]byte, error)
- func (gh *GitHubClient) ReadGitopsCatalogRepoContents() ([]*github.RepositoryContent, error)
- func (gh *GitHubClient) ReadGitopsCatalogRepoDirectory(path string) ([]*github.RepositoryContent, error)
- type GitInitParameters
Constants ¶
const ( KubefirstGitHubOrganization = "kubefirst" KubefirstGitopsCatalogRepository = "gitops-catalog" )
Variables ¶
This section is empty.
Functions ¶
func CreateContainerRegistrySecret ¶
func CreateContainerRegistrySecret(obj *ContainerRegistryAuth) (string, error)
CreateContainerRegistrySecret
func InitializeGitProvider ¶
func InitializeGitProvider(p *GitInitParameters) error
InitializeGitProvider
func PrepareGitEnvironment ¶
func PrepareGitOpsCatalog ¶
func PrepareMgmtCluster ¶
func PullWithAuth ¶
func PullWithAuth(repo *git.Repository, remote string, branch string, auth transport.AuthMethod) error
PullWithAuth
Types ¶
type ContainerRegistryAuth ¶
type GitHubClient ¶
GitHubClient acts as a receiver for interacting with GitHub's API
func (*GitHubClient) GetGitopsCatalogRepo ¶
func (gh *GitHubClient) GetGitopsCatalogRepo() (*github.Repository, error)
GetGitopsCatalogRepo returns an object detailing the Kubefirst gitops catalog GitHub repository
func (*GitHubClient) ReadGitopsCatalogAppDirectory ¶
func (gh *GitHubClient) ReadGitopsCatalogAppDirectory(contents []*github.RepositoryContent, applicationName string) ([][]byte, error)
ReadGitopsCatalogAppDirectory reads the file content in a gitops catalog app directory
func (*GitHubClient) ReadGitopsCatalogIndex ¶
func (gh *GitHubClient) ReadGitopsCatalogIndex(contents []*github.RepositoryContent) ([]byte, error)
ReadGitopsCatalogIndex reads the gitops catalog repository index
func (*GitHubClient) ReadGitopsCatalogRepoContents ¶
func (gh *GitHubClient) ReadGitopsCatalogRepoContents() ([]*github.RepositoryContent, error)
ReadGitopsCatalogRepoContents reads the file and directory contents of the Kubefirst gitops catalog GitHub repository
func (*GitHubClient) ReadGitopsCatalogRepoDirectory ¶
func (gh *GitHubClient) ReadGitopsCatalogRepoDirectory(path string) ([]*github.RepositoryContent, error)
ReadGitopsCatalogRepoDirectory reads the files in a gitops catalog repo directory