gitops

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNamespaceNotFound = errors.New("namespace not found")

Functions

This section is empty.

Types

type Gitops

type Gitops struct {
	// contains filtered or unexported fields
}

func (*Gitops) Install

func (g *Gitops) Install(params InstallParams) (map[string][]byte, error)

func (*Gitops) StoreManifests added in v0.5.0

func (g *Gitops) StoreManifests(gitClient git.Git, gitProvider gitproviders.GitProvider, params InstallParams, systemManifests map[string][]byte) (map[string][]byte, error)

func (*Gitops) Uninstall

func (g *Gitops) Uninstall(params UninstallParams) error

type GitopsService

type GitopsService interface {
	Install(params InstallParams) (map[string][]byte, error)
	StoreManifests(gitClient git.Git, gitProvider gitproviders.GitProvider, params InstallParams, systemManifests map[string][]byte) (map[string][]byte, error)
	Uninstall(params UninstallParams) error
}

func New

func New(logger logger.Logger, flux flux.Flux, kube kube.Kube) GitopsService

type InstallParams

type InstallParams struct {
	Namespace  string
	DryRun     bool
	ConfigRepo string
}

type UninstallError added in v0.2.5

type UninstallError struct{}

func (UninstallError) Error added in v0.2.5

func (e UninstallError) Error() string

type UninstallParams added in v0.3.0

type UninstallParams struct {
	Namespace string
	DryRun    bool
}

Jump to

Keyboard shortcuts

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