commands

package
v0.4.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 36 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultApplicationSetGeneratorInterval int64 = 20
)

used for mocking

Functions

func NewAppCommand

func NewAppCommand() *cobra.Command

func NewAppCreateCommand

func NewAppCreateCommand() *cobra.Command

func NewAppDeleteCommand

func NewAppDeleteCommand() *cobra.Command

func NewAppListCommand

func NewAppListCommand() *cobra.Command

func NewProjectCommand

func NewProjectCommand() *cobra.Command

func NewProjectCreateCommand

func NewProjectCreateCommand() *cobra.Command

func NewProjectDeleteCommand

func NewProjectDeleteCommand() *cobra.Command

func NewProjectListCommand

func NewProjectListCommand() *cobra.Command

func NewRepoBootstrapCommand

func NewRepoBootstrapCommand() *cobra.Command

func NewRepoCommand

func NewRepoCommand() *cobra.Command

func NewRepoUninstallCommand added in v0.2.9

func NewRepoUninstallCommand() *cobra.Command

func NewRoot

func NewRoot() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

func RunAppCreate

func RunAppCreate(ctx context.Context, opts *AppCreateOptions) error

func RunAppDelete

func RunAppDelete(ctx context.Context, opts *AppDeleteOptions) error

func RunAppList

func RunAppList(ctx context.Context, opts *AppListOptions) error

func RunProjectCreate

func RunProjectCreate(ctx context.Context, opts *ProjectCreateOptions) error

func RunProjectDelete

func RunProjectDelete(ctx context.Context, opts *ProjectDeleteOptions) error

func RunProjectList

func RunProjectList(ctx context.Context, opts *ProjectListOptions) error

func RunRepoBootstrap

func RunRepoBootstrap(ctx context.Context, opts *RepoBootstrapOptions) error

func RunRepoUninstall added in v0.2.9

func RunRepoUninstall(ctx context.Context, opts *RepoUninstallOptions) error

Types

type AppCreateOptions

type AppCreateOptions struct {
	CloneOpts       *git.CloneOptions
	AppsCloneOpts   *git.CloneOptions
	ProjectName     string
	KubeContextName string
	AppOpts         *application.CreateOptions
	KubeFactory     kube.Factory
	Timeout         time.Duration
	Labels          map[string]string
	Annotations     map[string]string
	Include         string
	Exclude         string
}

type AppDeleteOptions

type AppDeleteOptions struct {
	CloneOpts   *git.CloneOptions
	ProjectName string
	AppName     string
	Global      bool
}

type AppListOptions added in v0.2.0

type AppListOptions struct {
	CloneOpts   *git.CloneOptions
	ProjectName string
}

type GenerateProjectOptions

type GenerateProjectOptions struct {
	Name               string
	Namespace          string
	DefaultDestServer  string
	DefaultDestContext string
	RepoURL            string
	Revision           string
	InstallationPath   string
	Labels             map[string]string
	Annotations        map[string]string
}

type ProjectCreateOptions

type ProjectCreateOptions struct {
	CloneOpts       *git.CloneOptions
	ProjectName     string
	DestKubeServer  string
	DestKubeContext string
	DryRun          bool
	AddCmd          argocd.AddClusterCmd
	Labels          map[string]string
	Annotations     map[string]string
}

type ProjectDeleteOptions added in v0.2.0

type ProjectDeleteOptions struct {
	CloneOpts   *git.CloneOptions
	ProjectName string
}

type ProjectListOptions

type ProjectListOptions struct {
	CloneOpts *git.CloneOptions
	Out       io.Writer
}

type RepoBootstrapOptions

type RepoBootstrapOptions struct {
	AppSpecifier        string
	InstallationMode    string
	Namespace           string
	KubeConfig          string
	KubeContextName     string
	DryRun              bool
	HidePassword        bool
	Insecure            bool
	Recover             bool
	Timeout             time.Duration
	KubeFactory         kube.Factory
	CloneOptions        *git.CloneOptions
	ArgoCDLabels        map[string]string
	BootstrapAppsLabels map[string]string
	NamespaceLabels     map[string]string
}

type RepoUninstallOptions added in v0.2.9

type RepoUninstallOptions struct {
	Namespace       string
	KubeContextName string
	Timeout         time.Duration
	CloneOptions    *git.CloneOptions
	KubeFactory     kube.Factory
	Force           bool
	FastExit        bool
}

Jump to

Keyboard shortcuts

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