flux

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MPL-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PartOfLabelKey   = "app.kubernetes.io/part-of"
	PartOfLabelValue = "flux"
	VersionLabelKey  = "app.kubernetes.io/version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Flux added in v0.1.0

type Flux interface {
	SetupBin()
	GetBinPath() (string, error)
	GetExePath() (string, error)
	Install(namespace string, export bool) ([]byte, error)
	Uninstall(namespace string, export bool) error
	CreateSourceGit(name string, repoUrl gitproviders.RepoURL, 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, source, path, namespace, targetNamespace string) ([]byte, error)
	CreateHelmReleaseHelmRepository(name, chart, namespace, targetNamespace string) ([]byte, error)
	CreateSecretGit(name string, repoUrl gitproviders.RepoURL, namespace string) ([]byte, error)
	GetVersion() (string, error)
	GetAllResourcesStatus(name string, namespace string) ([]byte, error)
	SuspendOrResumeApp(pause wego.SuspendActionType, name, namespace, deploymentType string) ([]byte, error)
	GetLatestStatusAllNamespaces() ([]string, error)
	PreCheck() (string, 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(osysClient osys.Osys, cliRunner runner.Runner) *FluxClient

func (*FluxClient) CreateHelmReleaseGitRepository added in v0.1.0

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

func (*FluxClient) CreateHelmReleaseHelmRepository added in v0.1.0

func (f *FluxClient) CreateHelmReleaseHelmRepository(name, chart, namespace, targetNamespace 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, repoUrl gitproviders.RepoURL, 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, repoUrl gitproviders.RepoURL, 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) GetAllResourcesStatus added in v0.2.1

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

func (*FluxClient) GetBinPath added in v0.2.2

func (f *FluxClient) GetBinPath() (string, error)

GetFluxBinPath -

func (*FluxClient) GetExePath added in v0.2.2

func (f *FluxClient) GetExePath() (string, error)

GetFluxExePath -

func (*FluxClient) GetLatestStatusAllNamespaces added in v0.2.2

func (f *FluxClient) GetLatestStatusAllNamespaces() ([]string, error)

GetLast log for each flux namespace

func (*FluxClient) GetVersion added in v0.2.2

func (f *FluxClient) GetVersion() (string, error)

func (*FluxClient) Install added in v0.1.0

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

func (*FluxClient) PreCheck added in v0.6.1

func (f *FluxClient) PreCheck() (string, error)

func (*FluxClient) SetupBin added in v0.2.2

func (f *FluxClient) SetupBin()

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

func (*FluxClient) SuspendOrResumeApp added in v0.2.2

func (f *FluxClient) SuspendOrResumeApp(suspend wego.SuspendActionType, name, namespace string, deploymentType string) ([]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