Documentation
¶
Overview ¶
Package options provides the flags used for the blockchain controller.
Index ¶
Constants ¶
View Source
const (
// ControllerUserAgent is the userAgent name when starting onex-blockchain controller.
ControllerUserAgent = "onex-blockchain-controller"
)
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromFile ¶
func LoadConfigFromFile(file string) (*config.BlockchainControllerConfiguration, error)
func LogOrWriteConfig ¶
func LogOrWriteConfig(fileName string, cfg *config.BlockchainControllerConfiguration) error
LogOrWriteConfig logs the completed component config and writes it into the given file name as YAML, if either is enabled.
Types ¶
type Options ¶
type Options struct {
// ConfigFile is the location of the blockchain controller server's configuration file.
ConfigFile string
// WriteConfigTo is the path where the default configuration will be written.
WriteConfigTo string
// The address of the Kubernetes API server (overrides any value in kubeconfig).
Master string
// Path to kubeconfig file with authorization and master location information.
Kubeconfig string
Logs *logs.Options
// contains filtered or unexported fields
}
Options is the main context object for the onex-blockchain controller.
func NewOptions ¶
NewOptions creates a new Options with a default config.
func (*Options) ApplyDeprecated ¶
func (o *Options) ApplyDeprecated()
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *controllerconfig.Config) error
ApplyTo fills up blockchain controller config with options.
func (*Options) Config ¶
func (o *Options) Config() (*controllerconfig.Config, error)
Config return a blockchain controller config objective.
func (*Options) Flags ¶
func (o *Options) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific APIServer by section name.
Click to show internal directories.
Click to hide internal directories.