config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OAM Metadata constants
	OAMAdapterNameMetadataKey       = "adapter.meshery.io/name"
	OAMComponentCategoryMetadataKey = "ui.meshery.io/category"
)
View Source
const (
	ErrEmptyConfigCode = "1000"
)

Variables

View Source
var (
	PerfOperation = "meshery-nighthawk"

	ServerVersion = status.None
	ServerGitSHA  = status.None

	// KubeConfig - Controlling the kubeconfig lifecycle with viper
	KubeConfig = map[string]string{
		configprovider.FilePath: configRootPath,
		configprovider.FileType: "yaml",
		configprovider.FileName: "kubeconfig",
	}

	Config = configprovider.Options{
		FilePath: configRootPath,
		FileName: "perf",
		FileType: "yaml",
	}

	ServerConfig = map[string]string{
		"name":     "meshery-nighthawk",
		"type":     "adapter",
		"port":     "10013",
		"traceurl": status.None,
	}

	MeshSpec = map[string]string{
		"name":    "meshery-nighthawk",
		"status":  status.NotInstalled,
		"version": status.None,
	}

	Operations = getOperations(common.Operations)
)
View Source
var (
	ErrEmptyConfig = errors.New(ErrEmptyConfigCode, errors.Alert, []string{"Config is empty"}, []string{}, []string{}, []string{})
)

Functions

func New

func New(provider string) (h config.Handler, err error)

New creates a new config instance

func NewKubeconfigBuilder

func NewKubeconfigBuilder(provider string) (config.Handler, error)

func RootPath

func RootPath() string

RootPath returns the config root path for the adapter

Types

This section is empty.

Jump to

Keyboard shortcuts

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