flux

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MPL-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFluxBinPath

func GetFluxBinPath() (string, error)

GetFluxBinPath -

func GetFluxExePath

func GetFluxExePath() (string, error)

GetFluxExePath -

func GetLatestStatusAllNamespaces

func GetLatestStatusAllNamespaces() ([]string, error)

GetLast log for each flux namespace

func SetupFluxBin

func SetupFluxBin()

SetupFluxBin creates flux binary from embedded file if it doesnt already exist

Types

type Flux added in v0.1.0

type Flux interface {
	Install(namespace string, export bool) ([]byte, error)
	Uninstall(namespace string, export bool) error
	CreateSourceGit(name string, url string, branch string, secretRef string, namespace string) ([]byte, error)
	CreateSourceHelm(name string, url string, namespace string) ([]byte, error)
	CreateKustomization(name string, source string, path string, namespace string) ([]byte, error)
	CreateHelmReleaseGitRepository(name string, source string, path string, namespace string) ([]byte, error)
	CreateHelmReleaseHelmRepository(name string, chart string, namespace string) ([]byte, error)
	CreateSecretGit(name string, url string, namespace string) ([]byte, error)
}

type FluxClient added in v0.1.0

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

func New added in v0.1.0

func New(cliRunner runner.Runner) *FluxClient

func (*FluxClient) CreateHelmReleaseGitRepository added in v0.1.0

func (f *FluxClient) CreateHelmReleaseGitRepository(name string, source string, chartPath string, namespace string) ([]byte, error)

func (*FluxClient) CreateHelmReleaseHelmRepository added in v0.1.0

func (f *FluxClient) CreateHelmReleaseHelmRepository(name string, chart string, namespace string) ([]byte, error)

func (*FluxClient) CreateKustomization added in v0.1.0

func (f *FluxClient) CreateKustomization(name string, source string, path string, namespace string) ([]byte, error)

func (*FluxClient) CreateSecretGit added in v0.1.0

func (f *FluxClient) CreateSecretGit(name string, url string, namespace string) ([]byte, error)

CreatSecretGit Creates a Git secret returns the deploy key

func (*FluxClient) CreateSourceGit added in v0.1.0

func (f *FluxClient) CreateSourceGit(name string, url string, branch string, secretRef string, namespace string) ([]byte, error)

func (*FluxClient) CreateSourceHelm added in v0.1.0

func (f *FluxClient) CreateSourceHelm(name string, url string, namespace string) ([]byte, error)

func (*FluxClient) Install added in v0.1.0

func (f *FluxClient) Install(namespace string, export bool) ([]byte, error)

func (*FluxClient) Uninstall added in v0.1.0

func (f *FluxClient) Uninstall(namespace string, dryRun bool) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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