cli

package
v0.0.0-...-eca5b37 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ParcelConfigPath is a default path for config file
	ParcelConfigPath = "/etc/parcel.config"
)

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig() bool

CheckConfig checks existance of config

func CreateConfig

func CreateConfig(config *Config) error

CreateConfig saves config

func GetCliVersion

func GetCliVersion() string

GetCliVersion returns cli version in string

func GetVersionJSON

func GetVersionJSON() (string, error)

GetVersionJSON returns VersionInfo object in JSON string

Types

type Config

type Config struct {
	CatalogServiceURL    string `json:"catalogServiceURL"`
	Namespace            string `json:"namespace"`
	KubernetesConfigPath string `json:"kubernetesConfigPath"`
}

Config object contains configuration

func GetConfig

func GetConfig() (*Config, error)

GetConfig returns Config object

type VersionInfo

type VersionInfo struct {
	CliVersion string `json:"cliVersion"`
	GitCommit  string `json:"gitCommit"`
	BuildDate  string `json:"buildDate"`
	GoVersion  string `json:"goVersion"`
	Compiler   string `json:"compiler"`
	Platform   string `json:"platform"`
}

VersionInfo object contains version related info

func GetVersion

func GetVersion() VersionInfo

GetVersion returns VersionInfo object

Jump to

Keyboard shortcuts

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