app

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeployTypeKustomize DeploymentType = "kustomize"
	DeployTypeHelm      DeploymentType = "helm"

	SourceTypeGit  SourceType = "git"
	SourceTypeHelm SourceType = "helm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddParams

type AddParams struct {
	Dir            string
	Name           string
	Url            string
	Path           string
	Branch         string
	PrivateKey     string
	DeploymentType string
	Chart          string
	SourceType     string
	AppConfigUrl   string
	Namespace      string
	DryRun         bool
	AutoMerge      bool
}

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(logger logger.Logger, git git.Git, flux flux.Flux, kube kube.Kube, gitProviders gitproviders.GitProviderHandler) *App

func (*App) Add

func (a *App) Add(params AddParams) error

func (*App) Get

func (a *App) Get(name types.NamespacedName) (*wego.Application, error)

func (*App) Status added in v0.2.1

func (a *App) Status(params StatusParams) (string, string, error)

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)
	// Status returns flux resources status and the last successful reconciliation time
	Status(params StatusParams) (string, string, error)
}

AppService entity that manages applications

type ConfigType

type ConfigType string
const (
	ConfigTypeUserRepo ConfigType = ""
	ConfigTypeNone     ConfigType = "NONE"

	WeGOAppIdentifierLabelKey = "weave-gitops.weave.works/app-identifier"
)

type DeploymentType

type DeploymentType string

type SourceType

type SourceType string

type StatusParams added in v0.2.1

type StatusParams struct {
	Namespace string
	Name      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL