Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientConfigPath = ".retinactl.json"
ClientConfigPath used
View Source
var Logger *log.ZapLogger
View Source
var Retina = &cobra.Command{ Use: "kubectl-retina", Short: "A kubectl plugin for Retina", Long: "A kubectl plugin for Retina\nRetina is an eBPF distributed networking observability tool for Kubernetes.", PersistentPreRun: func(*cobra.Command, []string) { var config Config file, _ := os.ReadFile(ClientConfigPath) _ = json.Unmarshal([]byte(file), &config) RetinaClient = client.NewRetinaClient(config.RetinaEndpoint) }, }
View Source
var RetinaClient *client.Retina
RetinaClient for customer consume
Functions ¶
func ValidateFilterCIDR ¶ added in v1.1.0
ValidateFilterCIDR validates a CIDR string and returns the parsed IPNet. Returns nil and no error if input is empty (no filter). Returns error if input is non-empty but invalid.
Types ¶
type TraceOutputFormat ¶ added in v1.1.0
type TraceOutputFormat string
TraceOutputFormat represents validated output format options
const ( TraceOutputTable TraceOutputFormat = "table" TraceOutputJSON TraceOutputFormat = "json" )
func ValidateOutputFormat ¶ added in v1.1.0
func ValidateOutputFormat(input string) (TraceOutputFormat, error)
ValidateOutputFormat validates the output format string.
Click to show internal directories.
Click to hide internal directories.