common

package
v1.2.3-fred.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 34 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnStart

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

OnStart is the handler for "start" CLI command

func Run

func Run(options Options) (app *kingpin.Application, executedCommand string, conf *service.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
}

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