Documentation
¶
Index ¶
- type Flux
- type FluxClient
- func (f *FluxClient) CreateHelmReleaseGitRepository(name string, source string, chartPath string, namespace string) ([]byte, error)
- func (f *FluxClient) CreateHelmReleaseHelmRepository(name string, chart string, namespace string) ([]byte, error)
- func (f *FluxClient) CreateKustomization(name string, source string, path string, namespace string) ([]byte, error)
- func (f *FluxClient) CreateSecretGit(name string, url string, namespace string) ([]byte, error)
- func (f *FluxClient) CreateSourceGit(name string, url string, branch string, secretRef string, namespace 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, 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)
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 (*FluxClient) CreateHelmReleaseHelmRepository ¶ added in v0.1.0
func (*FluxClient) CreateKustomization ¶ added in v0.1.0
func (*FluxClient) CreateSecretGit ¶ added in v0.1.0
CreatSecretGit Creates a Git secret returns the deploy key
func (*FluxClient) CreateSourceGit ¶ added in v0.1.0
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.