cmd

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConsumeRequest

func DefaultConsumeRequest(request rest.ResponseWrapper, out io.Writer) error

DefaultConsumeRequest reads the data from request and writes into the out writer. It buffers data from requests until the newline or io.EOF occurs in the data, so it doesn't interleave logs sub-line when running concurrently.

func Execute

func Execute(rootCmd *cobra.Command)

Execute executes the root command with context

func GetTFProvider added in v0.3.0

func GetTFProvider(appName string) (string, error)

GetTFProvider For hln down

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root command of hln

Types

type Credential added in v0.3.6

type Credential struct {
	Username string
	Password string
}

Credential for login

type LogsOptions

type LogsOptions struct {
	Choice int

	// PodLogOptions
	Follow bool

	Kubecli *kubernetes.Clientset
	genericclioptions.IOStreams
}

LogsOptions controls the behavior of logs command.

type Metrics

type Metrics struct {
	AppName       string
	CredentialRef Credential
	DashboardRefs []*MonitorDashboard
}

Metrics to print

type MonitorDashboard added in v0.3.2

type MonitorDashboard struct {
	Title string
	URL   string
}

MonitorDashboard of apps

Jump to

Keyboard shortcuts

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