up

package
v0.0.0-...-cce75fc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconnectingMessage = "Trying to reconnect to your cluster. File synchronization will automatically resume when the connection improves."
)

ReconnectingMessage is the message shown when we are trying to reconnect

Variables

This section is empty.

Functions

func LoadManifestWithInit

func LoadManifestWithInit(ctx context.Context, k8sContext, namespace, devPath string) (*model.Manifest, error)

func NewHybridExecutor

func NewHybridExecutor(ctx context.Context, hybridCtx *HybridExecCtx) (*hybridExecutor, error)

func Up

func Up(at analyticsTrackerInterface, insights buildTrackerInterface, ioCtrl *io.Controller, k8sLogger *io.K8sLogger) *cobra.Command

Up starts a development container

Types

type HybridExecCtx

type HybridExecCtx struct {
	Client    kubernetes.Interface
	Dev       *model.Dev
	Workdir   string
	Name      string
	Namespace string
}

type Options

type Options struct {
	// ManifestPathFlag is the option -f as introduced by the user when executing this command.
	// This is stored at the configmap as filename to redeploy from the ui.
	ManifestPathFlag string
	// ManifestPath is the path to the manifest used though the command execution.
	// This might change its value during execution
	ManifestPath string
	Namespace    string
	K8sContext   string
	DevName      string
	Envs         []string

	Remote    int
	Deploy    bool
	ForcePull bool
	Reset     bool
	// contains filtered or unexported fields
}

Options represents the options available on up command

func (*Options) AddArgs

func (o *Options) AddArgs(cmd *cobra.Command, args []string) error

AddArgs sets the args as options and return err if it's not compatible

Jump to

Keyboard shortcuts

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