clientcmd

package
v0.0.0-...-8ffad75 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecommendedConfigPathFlag   = "config"
	RecommendedConfigPathEnvVar = "ORCITL_MACHINE_CONFIG"
	RecommendedHomeDir          = ".srictl-machine"
	RecommendedFileName         = "config"
)

Variables

Functions

This section is empty.

Types

type Column

type Column struct {
	Name     string `json:"name"`
	Template string `json:"template"`
}

type Config

type Config struct {
	TableConfig *TableConfig `json:"tableConfig,omitempty"`
}

func DefaultConfig

func DefaultConfig() *Config

func GetConfig

func GetConfig(filename string) (*Config, error)

func ReadConfig

func ReadConfig(data []byte) (*Config, error)

func ReadConfigFile

func ReadConfigFile(filename string) (*Config, error)

type TableConfig

type TableConfig struct {
	PrependMachineColumns []Column `json:"prependMachineColumns,omitempty"`
	AppendMachineColumns  []Column `json:"appendMachineColumns,omitempty"`
}

Jump to

Keyboard shortcuts

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