argocd

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(
	creds *RepoCreds,
	repoUrl string,
	repoBranch string,
) (repo *gogit.Repository, tmpDir string, auth *http.BasicAuth, err error)

CloneRepo clones a git repo registered with argocd into a local repository

func NewArgocdClient added in v0.10.0

func NewArgocdClient(argocdConfigPath string) (apiclient.Client, error)

func NewArgocdClientOrDie

func NewArgocdClientOrDie(argocdConfigPath string) apiclient.Client

Types

type RepoCreds

type RepoCreds struct {
	Url      string
	Username string
	Password string
}

func GetKubeclientAndRepoCreds added in v0.9.0

func GetKubeclientAndRepoCreds(
	config *rest.Config,
	argocdNs string,
	repoUrl string,
) (
	kubeClient *kubernetes.Clientset,
	creds *RepoCreds,
	err error,
)

func GetRepoCredsFromArgoCd added in v0.9.0

func GetRepoCredsFromArgoCd(
	kubeClient *kubernetes.Clientset,
	argocdNs string,
	repoUrl string,
) (creds *RepoCreds, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL