configuration

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfiguration

type ApplicationConfiguration struct {
	Address                      string `json:"address,omitempty" yaml:"address,omitempty"`
	RestPort                     int    `json:"restPort,omitempty" yaml:"restPort,omitempty"`
	WebSocketPort                int    `json:"webSocketPort,omitempty" yaml:"webSocketPort,omitempty"`
	CertificateFileName          string `json:"certificateFileName,omitempty" yaml:"certificateFileName,omitempty"`
	PrivateKeyFileName           string `json:"privateKeyFileName,omitempty" yaml:"privateKeyFileName,omitempty"`
	KubeContextConfigurationFile string `json:"kubeContextConfigurationFile,omitempty" yaml:"kubeContextConfigurationFile,omitempty"`
}

ApplicationConfiguration is the configuration of the application, ie its global parameters

func GetConfiguration

func GetConfiguration() (ApplicationConfiguration, error)

GetConfiguration returns the the current configuration of the application

func (ApplicationConfiguration) Print

func (conf ApplicationConfiguration) Print()

Print prints the configuration in the standard output

Jump to

Keyboard shortcuts

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