cmd

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 17 Imported by: 0

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

This section is empty.

Types

type Config

type Config struct {
	RetinaEndpoint string `json:"retina_endpoint"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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