apps

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSrcImageBuilder

func DefaultSrcImageBuilder(dir, srcImage string, filter sourceimage.FileFilter) (string, error)

DefaultSrcImageBuilder is the default image builder that implements SrcImageBuilderFunc.

func NewAppsCommand

func NewAppsCommand(p *config.KfParams) *cobra.Command

NewAppsCommand allows users to list apps.

func NewDeleteCommand

func NewDeleteCommand(p *config.KfParams) *cobra.Command

NewDeleteCommand creates a delete command.

func NewEnvCommand

func NewEnvCommand(p *config.KfParams, appClient apps.Client) *cobra.Command

NewEnvCommand creates a Env command.

func NewGetAppCommand

func NewGetAppCommand(p *config.KfParams) *cobra.Command

NewGetAppCommand creates a command to get details about a single application.

func NewProxyCommand

func NewProxyCommand(p *config.KfParams, appsClient apps.Client) *cobra.Command

NewProxyCommand creates a command capable of proxying a remote server locally.

func NewPushCommand

func NewPushCommand(
	p *config.KfParams,
	pusher apps.Pusher,
	b SrcImageBuilder,
) *cobra.Command

NewPushCommand creates a push command.

func NewRestageCommand

func NewRestageCommand(
	p *config.KfParams,
	client apps.Client,
) *cobra.Command

NewRestageCommand creates a command capable of restaging an app.

func NewRestartCommand

func NewRestartCommand(
	p *config.KfParams,
	client apps.Client,
) *cobra.Command

NewRestartCommand creates a command capable of restarting an app.

func NewSSHCommand

func NewSSHCommand(p *config.KfParams) *cobra.Command

NewSSHCommand sets up a mock SSH connection to an App that mimics cf SSH

func NewScaleCommand

func NewScaleCommand(
	p *config.KfParams,
	client apps.Client,
) *cobra.Command

NewScaleCommand creates a command capable of scaling an app.

func NewSetEnvCommand

func NewSetEnvCommand(p *config.KfParams, client apps.Client) *cobra.Command

NewSetEnvCommand creates a SetEnv command.

func NewStartCommand

func NewStartCommand(
	p *config.KfParams,
	client apps.Client,
) *cobra.Command

NewStartCommand creates a command capable of starting an app.

func NewStopCommand

func NewStopCommand(
	p *config.KfParams,
	client apps.Client,
) *cobra.Command

NewStopCommand creates a command capable of stopping an app.

func NewUnsetEnvCommand

func NewUnsetEnvCommand(p *config.KfParams, client apps.Client) *cobra.Command

NewUnsetEnvCommand creates a SetEnv command.

func NewXargsAppsCommand added in v2.11.18

func NewXargsAppsCommand(p *config.KfParams, client spaces.Client) *cobra.Command

NewXargsAppsCommand allows users to list apps.

Types

type SrcImageBuilder

type SrcImageBuilder interface {
	BuildSrcImage(dir, srcImage string, filter sourceimage.FileFilter) (string, error)
}

SrcImageBuilder creates and uploads a container image that contains the contents of the argument 'dir'.

type SrcImageBuilderFunc

type SrcImageBuilderFunc func(dir, srcImage string, filter sourceimage.FileFilter) (string, error)

SrcImageBuilderFunc converts a func into a SrcImageBuilder.

func (SrcImageBuilderFunc) BuildSrcImage

func (f SrcImageBuilderFunc) BuildSrcImage(dir, srcImage string, filter sourceimage.FileFilter) (string, error)

BuildSrcImage implements SrcImageBuilder.

Jump to

Keyboard shortcuts

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