Documentation ¶
Index ¶
- Constants
- func Delete(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- func Deploy(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- func Run(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- func RunStop(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- func Shell(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- type App
- func (a *App) Close() error
- func (a *App) Delete(ctx context.Context) error
- func (a *App) DeleteDevspace(ctx context.Context) error
- func (a *App) Deploy(ctx context.Context) error
- func (a *App) DeployDevspace(ctx context.Context) error
- func (a *App) Dev(ctx context.Context, opts RunOptions) error
- func (a *App) RunStop(ctx context.Context) error
- func (a *App) Shell(ctx context.Context, deploymentProfile string) error
- type RunOptions
- type Type
Constants ¶
View Source
const ( TypeBootstrap Type = "bootstrap" TypeLegacy Type = "legacy" DeleteJobAnnotation = "outreach.io/db-migration-delete" AppVersionLocal = "local" AppVersionLatest = "latest" )
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config, appNameOrPath string, kr kubernetesruntime.RuntimeConfig, useDevspace bool) error
func Deploy ¶
func Deploy(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config, appNameOrPath string, kr kubernetesruntime.RuntimeConfig, useDevspace bool) error
Deploy is a wrapper around NewApp().Deploy() that automatically closes the app and deploys it into the devenv
func Run ¶ added in v1.38.0
func Run(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config, appNameOrPath string, kr kubernetesruntime.RuntimeConfig, opts RunOptions) error
Run is a wrapper around NewApp().Run()
func RunStop ¶ added in v1.38.0
func RunStop(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config, appNameOrPath string, kr kubernetesruntime.RuntimeConfig) error
RunStop is a wrapper around NewApp().RunStop()
func Shell ¶ added in v1.38.0
func Shell(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, b *box.Config, conf *rest.Config, appNameOrPath string, kr kubernetesruntime.RuntimeConfig, deploymentProfile string) error
Run is a wrapper around NewApp().Run()
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
Close cleans up all resources of this application outside of the application itself.
func (*App) DeleteDevspace ¶ added in v1.38.0
DeleteDevspace deletes the application using devspace purge commnad
func (*App) DeployDevspace ¶ added in v1.38.0
Deploy deploys the application into the devenv using devspace deploy command
func (*App) Dev ¶ added in v1.38.0
func (a *App) Dev(ctx context.Context, opts RunOptions) error
Dev starts the development mode for the application.
type RunOptions ¶ added in v1.38.0
Click to show internal directories.
Click to hide internal directories.