Documentation ¶
Index ¶
- type Flux
- type FluxClient
- func (f *FluxClient) CreateHelmReleaseGitRepository(name, source, chartPath, namespace, targetNamespace string) ([]byte, error)
- func (f *FluxClient) CreateHelmReleaseHelmRepository(name, chart, namespace, targetNamespace string) ([]byte, error)
- func (f *FluxClient) CreateKustomization(name string, source string, path string, namespace string) ([]byte, error)
- func (f *FluxClient) CreateSecretGit(name string, repoUrl gitproviders.RepoURL, namespace string) ([]byte, error)
- func (f *FluxClient) CreateSourceGit(name string, repoUrl gitproviders.RepoURL, branch string, secretRef string, ...) ([]byte, error)
- func (f *FluxClient) CreateSourceHelm(name string, url string, namespace string) ([]byte, error)
- func (f *FluxClient) GetAllResourcesStatus(name string, namespace string) ([]byte, error)
- func (f *FluxClient) GetBinPath() (string, error)
- func (f *FluxClient) GetExePath() (string, error)
- func (f *FluxClient) GetLatestStatusAllNamespaces() ([]string, error)
- func (f *FluxClient) GetVersion() (string, error)
- func (f *FluxClient) Install(namespace string, export bool) ([]byte, error)
- func (f *FluxClient) SetupBin()
- func (f *FluxClient) SuspendOrResumeApp(suspend wego.SuspendActionType, name, namespace string, deploymentType string) ([]byte, error)
- func (f *FluxClient) Uninstall(namespace string, dryRun bool) error
Constants ¶
This section is empty.
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) }
type FluxClient ¶ added in v0.1.0
type FluxClient struct {
// contains filtered or unexported fields
}
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 (*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 (*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) 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)
Click to show internal directories.
Click to hide internal directories.