cmd

package
v0.104.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultOptions

type DefaultOptions struct {
	LsUncachedClient   client.Client
	LsCachedClient     client.Client
	HostUncachedClient client.Client
	HostCachedClient   client.Client

	LsKubeconfig string

	Log     logging.Logger
	LsMgr   manager.Manager
	HostMgr manager.Manager

	FinishedObjectCache *lsutils.FinishedObjectCache
	// contains filtered or unexported fields
}

DefaultOptions defines all default deployer options.

func NewDefaultOptions

func NewDefaultOptions(deployerScheme *runtime.Scheme) *DefaultOptions

NewDefaultOptions creates new default options for a deployer.

func (*DefaultOptions) AddFlags

func (o *DefaultOptions) AddFlags(fs *flag.FlagSet)

func (*DefaultOptions) Complete

func (o *DefaultOptions) Complete() error

Complete parses all options and flags and initializes the basic functions

func (*DefaultOptions) GetConfig

func (o *DefaultOptions) GetConfig(obj runtime.Object) error

GetConfig reads and parses the configured configuration file.

func (*DefaultOptions) StartManagers

func (o *DefaultOptions) StartManagers(ctx context.Context, deployerJobs ...DeployerJob) error

StartManagers starts the host and landscaper managers.

type DeployerJob

type DeployerJob interface {
	StartDeployerJob(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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