common

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnStart

func OnStart(clf config.CommandLineFlags, config *servicecfg.Config) error

OnStart is the handler for "start" CLI command

func Run

func Run(options Options) (app *kingpin.Application, executedCommand string, conf *servicecfg.Config)

Run inits/starts the process according to the provided options

Types

type Options

type Options struct {
	// Args is a list of command-line args passed from main()
	Args []string
	// InitOnly when set to true, initializes config and aux
	// endpoints but does not start the process
	InitOnly bool
	// EnableCloudAWSCredCmd enables hidden cloud aws cred command when true.
	// This command does nothing in OSS.
	EnableCloudAWSCredCmd bool
}

Options combines init/start teleport options

type StdReadWriter

type StdReadWriter struct{}

func (*StdReadWriter) Read

func (rw *StdReadWriter) Read(b []byte) (int, error)

func (*StdReadWriter) Write

func (rw *StdReadWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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