Documentation
¶
Index ¶
- Constants
- func AddWegoIgnore(sourceManifest []byte) ([]byte, error)
- func AppAutomationDeployPath(a models.Application) string
- func AppAutomationKustomizePath(a models.Application) string
- func AppAutomationSourcePath(a models.Application) string
- func AppDeployName(a models.Application) string
- func AppToWegoApp(app models.Application) wego.Application
- func AppYamlDir(a models.Application) string
- func AppYamlPath(a models.Application) string
- func AutomationUserKustomizePath(clusterName string) string
- func GenerateResourceName(url gitproviders.RepoURL) string
- func GetAppHash(a models.Application) string
- func GetOrCreateKustomize(filename, name, namespace string) (types.Kustomization, error)
- func WegoAppToApp(app wego.Application) (models.Application, error)
- type ApplicationAutomation
- type AutomationGen
- type AutomationGenerator
- type ConfigMode
- type ResourceKind
- type ResourceRef
- type SourceType
Constants ¶
View Source
const (
WeGOAppIdentifierLabelKey = "wego.weave.works/app-identifier"
)
Variables ¶
This section is empty.
Functions ¶
func AddWegoIgnore ¶
func AppAutomationDeployPath ¶
func AppAutomationDeployPath(a models.Application) string
func AppAutomationKustomizePath ¶
func AppAutomationKustomizePath(a models.Application) string
func AppAutomationSourcePath ¶
func AppAutomationSourcePath(a models.Application) string
func AppDeployName ¶
func AppDeployName(a models.Application) string
func AppToWegoApp ¶
func AppToWegoApp(app models.Application) wego.Application
func AppYamlDir ¶
func AppYamlDir(a models.Application) string
func AppYamlPath ¶
func AppYamlPath(a models.Application) string
func GenerateResourceName ¶
func GenerateResourceName(url gitproviders.RepoURL) string
func GetAppHash ¶
func GetAppHash(a models.Application) string
func GetOrCreateKustomize ¶
func GetOrCreateKustomize(filename, name, namespace string) (types.Kustomization, error)
func WegoAppToApp ¶
func WegoAppToApp(app wego.Application) (models.Application, error)
Types ¶
type ApplicationAutomation ¶ added in v0.6.1
type ApplicationAutomation struct { AppYaml models.Manifest AppAutomation models.Manifest AppSource models.Manifest AppKustomize models.Manifest }
func (ApplicationAutomation) Manifests ¶ added in v0.6.1
func (aa ApplicationAutomation) Manifests() []models.Manifest
type AutomationGen ¶
type AutomationGen struct { GitProvider gitproviders.GitProvider Flux flux.Flux Logger logger.Logger }
func (*AutomationGen) GenerateApplicationAutomation ¶ added in v0.6.1
func (a *AutomationGen) GenerateApplicationAutomation(ctx context.Context, app models.Application, clusterName string) (ApplicationAutomation, error)
func (*AutomationGen) GetSecretRefForPrivateGitSources ¶ added in v0.6.1
func (a *AutomationGen) GetSecretRefForPrivateGitSources(ctx context.Context, url gitproviders.RepoURL) (models.GeneratedSecretName, error)
type AutomationGenerator ¶
type AutomationGenerator interface { GenerateApplicationAutomation(ctx context.Context, app models.Application, clusterName string) (ApplicationAutomation, error) GetSecretRefForPrivateGitSources(ctx context.Context, url gitproviders.RepoURL) (models.GeneratedSecretName, error) }
func NewAutomationGenerator ¶
func NewAutomationGenerator(gp gitproviders.GitProvider, flux flux.Flux, logger logger.Logger) AutomationGenerator
type ConfigMode ¶
type ConfigMode string
type ResourceKind ¶
type ResourceKind string
const ( ResourceKindApplication ResourceKind = "Application" ResourceKindSecret ResourceKind = "Secret" ResourceKindGitRepository ResourceKind = "GitRepository" ResourceKindHelmRepository ResourceKind = "HelmRepository" ResourceKindKustomization ResourceKind = "Kustomization" ResourceKindHelmRelease ResourceKind = "HelmRelease" )
func DeployKind ¶
func DeployKind(a models.Application) ResourceKind
func SourceKind ¶
func SourceKind(a models.Application) ResourceKind
func (ResourceKind) ToGVR ¶
func (rk ResourceKind) ToGVR() (schema.GroupVersionResource, error)
type ResourceRef ¶
type ResourceRef struct { Kind ResourceKind Name string RepositoryPath string }
type SourceType ¶
type SourceType string
Click to show internal directories.
Click to hide internal directories.