services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 37 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OUTPUT_COLUMNS = "column"
	OUTPUT_RAW     = "raw"
	OUTPUT_JSON    = "json"
)
View Source
const (
	FMT = "%-24s | %-9s | %-9s | %-16s | %-16s | %-16s | %s\n"
)

Variables

View Source
var ParMaxCopies int

Functions

func CreateEventRules

func CreateEventRules(ers []eventRules.EventRule) error

func DoQuery

func DoQuery(ti int, appName, searchTerm, procId string, lastSeen int64)

func FindApps

func FindApps(hasApp *bool, hasMultipleApps *bool, hasProc *bool,
	applicationV2s *[]*applications.ApplicationV2)

func GetApplicationByName

func GetApplicationByName(application string) (*applications.ApplicationV2, error)

func GetApplicationsV2

func GetApplicationsV2(all bool)

func GetEventRuleGroups

func GetEventRuleGroups(args []string) error

func GetEventRules

func GetEventRules(args, groupNames []string) error

func GetEvents

func GetEvents(applicationName, process string) error

func GetLicense

func GetLicense() error

func GetNamespaceSansHost

func GetNamespaceSansHost(namespace string) string

func GetNamespacesAsStrings

func GetNamespacesAsStrings() ([]string, error)

func GetProcessByApplicationAndProc

func GetProcessByApplicationAndProc(application, procId string) (*processes.Process, error)

func GetTemplateForType

func GetTemplateForType(tType templateType) *promptui.SelectTemplates

func ListNamespaces

func ListNamespaces()

func ListProcesses

func ListProcesses()

func ParallelExec

func ParallelExec(applicationV2s *[]*applications.ApplicationV2,
	appName string, args0 string, procId string, lastseen int64)

func ParallelSearch

func ParallelSearch(cmdusage string, args0 string, hasApp *bool, hasMultipleApps *bool, hasProc *bool,
	applicationV2s *[]*applications.ApplicationV2)

func Ping

func Ping() error

func PrintSyslogMessageForType

func PrintSyslogMessageForType(log *query.SysLogMessage, output string)

func RunSelectApplicationForNamespacePrompt

func RunSelectApplicationForNamespacePrompt(all bool) (*applications.ApplicationV2, error)

func RunSelectNamespacePrompt

func RunSelectNamespacePrompt(all bool) (string, error)

func RunSelectProcessesForNamespaceAndAppPrompt

func RunSelectProcessesForNamespaceAndAppPrompt(application string, all bool) (*processes.Process, error)

func SearchWorker

func SearchWorker(i int, appname string)

parallel search related

func SerialSearch

func SerialSearch(cmdusage string, args0 string, hasApp *bool, hasMultipleApps *bool, hasProc *bool,
	applicationV2s *[]*applications.ApplicationV2)

func SetLicense

func SetLicense() error

func SetupCloseHandler

func SetupCloseHandler()

func Tail

func Tail(appName, procId string, tL []string) error

func WriteFile

func WriteFile()

Types

type SelectDisplay

type SelectDisplay struct {
	Name    string
	Details string
}

Jump to

Keyboard shortcuts

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