Documentation ¶
Index ¶
- type Ship
- func (s *Ship) Execute(ctx context.Context) error
- func (s *Ship) ExecuteAndMaybeExit(ctx context.Context) error
- func (s *Ship) ExitWithError(err error)
- func (s *Ship) ExitWithWarn(err error)
- func (s *Ship) Init(ctx context.Context) error
- func (s *Ship) InitAndMaybeExit(ctx context.Context) error
- func (s *Ship) Shutdown(cancelFunc context.CancelFunc)
- func (s *Ship) Unfork(ctx context.Context) error
- func (s *Ship) UnforkAndMaybeExit(ctx context.Context) error
- func (s *Ship) Update(ctx context.Context) error
- func (s *Ship) UpdateAndMaybeExit(ctx context.Context) error
- func (s *Ship) Watch(ctx context.Context) error
- func (s *Ship) WatchAndExit(ctx context.Context) error
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 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 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) ExecuteAndMaybeExit ¶
ExecuteAndMaybeExit runs ship to completion, and os.Exit()'s if it fails
func (*Ship) ExitWithError ¶
ExitWithError can be called if something goes wrong to print some friendly output
func (*Ship) ExitWithWarn ¶
ExitWithWarn can be called if something goes wrong to print some friendly output
func (*Ship) Shutdown ¶
func (s *Ship) Shutdown(cancelFunc context.CancelFunc)
func (*Ship) UnforkAndMaybeExit ¶ added in v0.27.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.