cmd

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConsumeRequest added in v0.2.1

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 NewRootCmd added in v0.2.0

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root command of hln

Types

type Infra added in v0.2.1

type Infra struct {
	Type     string `yaml:"type"`
	URL      string `yaml:"url"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

Infra represents a component of the infrastructure.

type LogsOptions added in v0.2.1

type LogsOptions struct {
	Namespace string
	Pod       string

	// PodLogOptions
	Follow    bool
	Container string

	Kubecli *kubernetes.Clientset
}

LogsOptions controls the behavior of logs command.

type Metrics added in v0.2.1

type Metrics struct {
	Infras []Infra `yaml:"infra"`
}

Metrics represents the monitoring metrics.

Jump to

Keyboard shortcuts

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