ship

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 65 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ship

type Ship struct {
	Viper *viper.Viper

	Logger log.Logger

	APIPort  int
	Headless bool
	Navcycle bool

	CustomerID     string
	ReleaseSemver  string
	InstallationID string
	PlanOnly       bool
	UploadAssetsTo string

	Daemon           daemontypes.Daemon
	Resolver         *specs.Resolver
	AppTypeInspector apptype.Inspector
	AppResolver      replicatedapp.Resolver
	Runbook          string
	UI               cli.Ui
	State            state.Manager
	IDPatcher        *specs.IDPatcher
	FS               afero.Afero
	Uploader         util.AssetUploader

	KustomizeRaw string
	Runner       *lifecycle.Runner
	StateManager state.Manager
}

repl ConfigOptionures an application

func Get

func Get(v *viper.Viper) (*Ship, error)

func NewShip

func NewShip(
	logger log.Logger,
	v *viper.Viper,
	daemon daemontypes.Daemon,
	resolver *specs.Resolver,
	appresolver replicatedapp.Resolver,
	runner *lifecycle.Runner,
	ui cli.Ui,
	stateManager state.Manager,
	patcher *specs.IDPatcher,
	fs afero.Afero,
	inspector apptype.Inspector,
	uploader util.AssetUploader,
) (*Ship, error)

NewShip gets an instance using viper to pull config

func (*Ship) Execute

func (s *Ship) Execute(ctx context.Context) error

func (*Ship) ExecuteAndMaybeExit

func (s *Ship) ExecuteAndMaybeExit(ctx context.Context) error

ExecuteAndMaybeExit runs ship to completion, and os.Exit()'s if it fails

func (*Ship) ExitWithError

func (s *Ship) ExitWithError(err error)

ExitWithError can be called if something goes wrong to print some friendly output

func (*Ship) ExitWithWarn

func (s *Ship) ExitWithWarn(err error)

ExitWithWarn can be called if something goes wrong to print some friendly output

func (*Ship) Init

func (s *Ship) Init(ctx context.Context) error

func (*Ship) InitAndMaybeExit

func (s *Ship) InitAndMaybeExit(ctx context.Context) error

func (*Ship) Shutdown

func (s *Ship) Shutdown(cancelFunc context.CancelFunc)

func (*Ship) Unfork added in v0.27.0

func (s *Ship) Unfork(ctx context.Context) error

func (*Ship) UnforkAndMaybeExit added in v0.27.0

func (s *Ship) UnforkAndMaybeExit(ctx context.Context) error

func (*Ship) Update

func (s *Ship) Update(ctx context.Context) error

func (*Ship) UpdateAndMaybeExit

func (s *Ship) UpdateAndMaybeExit(ctx context.Context) error

func (*Ship) Watch

func (s *Ship) Watch(ctx context.Context) error

func (*Ship) WatchAndExit

func (s *Ship) WatchAndExit(ctx context.Context) error

Jump to

Keyboard shortcuts

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