Documentation
¶
Index ¶
- Constants
- func DoAppRepoCLIAuth(url string, w io.Writer) (string, error)
- type AddParams
- type App
- func (a *App) Add(params AddParams) error
- func (a *App) Get(name types.NamespacedName) (*wego.Application, error)
- func (a *App) GetCommits(params CommitParams) ([]gitprovider.Commit, error)
- func (a *App) Pause(params PauseParams) error
- func (a *App) Remove(params RemoveParams) error
- func (a *App) Status(params StatusParams) (string, string, error)
- func (a *App) Unpause(params UnpauseParams) error
- type AppResourceInfo
- type AppService
- type CommitParams
- type ConfigMode
- type ConfigType
- type PauseParams
- type RemoveParams
- type ResourceKind
- type ResourceRef
- type StatusParams
- type UnpauseParams
Constants ¶
View Source
const ( ConfigTypeUserRepo ConfigType = "" ConfigTypeNone ConfigType = "NONE" ConfigModeClusterOnly ConfigMode = "clusterOnly" ConfigModeUserRepo ConfigMode = "userRepo" ConfigModeExternalRepo ConfigMode = "externalRepo" ResourceKindApplication ResourceKind = "Application" ResourceKindSecret ResourceKind = "Secret" ResourceKindGitRepository ResourceKind = "GitRepository" ResourceKindHelmRepository ResourceKind = "HelmRepository" ResourceKindKustomization ResourceKind = "Kustomization" ResourceKindHelmRelease ResourceKind = "HelmRelease" WeGOAppIdentifierLabelKey = "wego.weave.works/app-identifier" )
View Source
const ( DefaultPath = "./" DefaultBranch = "main" DefaultDeploymentType = "kustomize" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) Get ¶
func (a *App) Get(name types.NamespacedName) (*wego.Application, error)
func (*App) GetCommits ¶ added in v0.2.3
func (a *App) GetCommits(params CommitParams) ([]gitprovider.Commit, error)
GetCommits gets a list of commits from the repo/branch saved in the app manifest
func (*App) Pause ¶ added in v0.2.2
func (a *App) Pause(params PauseParams) error
func (*App) Remove ¶ added in v0.2.3
func (a *App) Remove(params RemoveParams) error
Remove removes the Weave GitOps automation for an application
func (*App) Status ¶ added in v0.2.1
func (a *App) Status(params StatusParams) (string, string, error)
func (*App) Unpause ¶ added in v0.2.2
func (a *App) Unpause(params UnpauseParams) error
type AppResourceInfo ¶ added in v0.2.2
type AppResourceInfo struct { wego.Application // contains filtered or unexported fields }
type AppService ¶
type AppService interface { // Add adds a new application to the cluster Add(params AddParams) error // Get returns a given applicaiton Get(name types.NamespacedName) (*wego.Application, error) // Remove removes an application from the cluster Remove(params RemoveParams) error // Status returns flux resources status and the last successful reconciliation time Status(params StatusParams) (string, string, error) // Pause pauses the gitops automation for an app Pause(params PauseParams) error // Unpause resumes the gitops automation for an app Unpause(params UnpauseParams) error }
AppService entity that manages applications
type CommitParams ¶ added in v0.2.3
type ConfigMode ¶ added in v0.2.3
type ConfigMode string
type ConfigType ¶
type ConfigType string
type PauseParams ¶ added in v0.2.2
type RemoveParams ¶ added in v0.2.3
type ResourceKind ¶ added in v0.2.3
type ResourceKind string
type ResourceRef ¶ added in v0.2.2
type ResourceRef struct {
// contains filtered or unexported fields
}
type StatusParams ¶ added in v0.2.1
type UnpauseParams ¶ added in v0.2.2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.