core

package
v0.0.0-...-4c280ac Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0

Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Onix Config Manager - Pilot Copyright (c) 2018-2020 by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code.

Index

Constants

View Source
const (
	TypeFile confType = iota
	TypeHttp
	TypeEnvironment
	TypeUnknown
)

the values for confType

View Source
const (
	TriggerRestart trigger = iota
	TriggerGet
	TriggerPost
	TriggerPut
	TriggerSignal
	TriggerUnknown
)
View Source
const (
	// sits side by side with the application
	Sidecar opMode = iota
	// launch the application as a subprocess
	Controller
	// launch applications in containers
	Host
)
View Source
const (
	// the start of a toml front matter segment
	Toml tokenType = iota
	// the start of a json front matter segment
	Json
	// the start of a yaml front matter segment
	Yaml
	// the end of any front matter segment
	EOF
)

the various types of tokens

View Source
const (
	LogLevel = "LogLevel"
)

Variables

This section is empty.

Functions

func NewFile

func NewFile(cf *appCfg) *file

create a new file data object and launch a file monitoring routine

func NewFileManager

func NewFileManager() *fileman

create a new file manager instance

func NewParser

func NewParser() *parser

func NewPilot

func NewPilot(mode opMode, cmd string, args []string) (*pilot, error)

NewPilot create a new pilot

func NewProcessManager

func NewProcessManager() *procMan

Types

type Config

type Config struct {
	LogLevel string
	// configuration for the Onix client
	OxConf *oxc.ClientConf
	// message broker config
	EmConf *oxc.EventConfig
	// contains filtered or unexported fields
}

Config pilot configuration

func (*Config) Get

func (c *Config) Get(key ConfigKey) string

func (*Config) GetBool

func (c *Config) GetBool(key ConfigKey) bool

func (*Config) Load

func (c *Config) Load() error

type ConfigKey

type ConfigKey int
const (
	PilotKey ConfigKey = iota
	PilotLogLevel
	PilotOxWapiUrl
	PilotOxWapiAuthMode
	PilotOxWapiUsername
	PilotOxWapiPassword
	PilotOxWapiClientId
	PilotOxWapiAppSecret
	PilotOxWapiTokenUri
	PilotOxWapiInsecureSkipVerify
	PilotOxBrokerUrl
	PilotOxBrokerUsername
	PilotOxBrokerPassword
	PilotOxBrokerInsecureSkipVerify
	PilotRemUri
	PilotRemUsername
	PilotRemPassword
)

func (ConfigKey) String

func (k ConfigKey) String() string

Jump to

Keyboard shortcuts

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