cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 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{
	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

View Source
var Version = "v0.0.5"

This variable is used by the "version" command and is set during build. Defaults to a safe value if not set.

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