app

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

Deploy is a wrapper around NewApp().Deploy() that automatically closes the app and deploys it into the devenv

Types

type App

type App struct {

	// Type is the type of application this is
	Type Type

	// Path, if set, is the path that should be used to deploy this application
	// this will be used over the github repository
	Path string

	// Local is wether this app was downloaded or is local
	Local bool

	// RepositoryName is the repository name for this application
	RepositoryName string

	// Version is the version of this application that should be deployed.
	// This is only used if RepositoryName is set and being used. This has no
	// effect when Path is set.
	Version string
	// contains filtered or unexported fields
}

func NewApp

func NewApp(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config,
	appNameOrPath string, kr *kubernetesruntime.RuntimeConfig) (*App, error)

NewApp creates a new App for interaction with in a devenv

func (*App) Close added in v1.32.0

func (a *App) Close() error

Close cleans up all resources of this application outside of the application itself.

func (*App) Delete

func (a *App) Delete(ctx context.Context) error

func (*App) Deploy

func (a *App) Deploy(ctx context.Context) error

Deploy deploys the application into the devenv

type Type

type Type string
const (
	TypeBootstrap Type = "bootstrap"
	TypeLegacy    Type = "legacy"

	DeleteJobAnnotation = "outreach.io/db-migration-delete"
)

Jump to

Keyboard shortcuts

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