Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagPrecedence ¶
func FlagPrecedence(args []string, c *config.Configuration) error
FlagPrecedence The Flag of the frp-provisioner is parsed again. The goal is for the data specified in flag to override the data in the configuration file
func LoadConfigFile ¶
func LoadConfigFile(filename string, c *config.Configuration) error
LoadConfigFile Load the configuration file from disk and populate the structure Configuration
Types ¶
type ManagerFlags ¶
ManagerFlags contains the command line parameters of the frp-provisioner. If any of the following conditions are met, the configuration field should be in CompassFlags instead of CompassConfiguration:
- During the lifetime of a node, its value will never or cannot be changed safely, or
- its value cannot be shared securely between nodes at the same time (eg: hostname);
- Configuration is designed to be shared between nodes.
In general, please try to avoid adding tags or configuration fields, Because we already have a lot of confusing things.
func NewManagerFlags ¶
func NewManagerFlags() *ManagerFlags
NewManagerFlags A new NewManagerFlags structure will be created
func (*ManagerFlags) AddFlags ¶
func (f *ManagerFlags) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet
func (*ManagerFlags) SetDefaults ¶
func (f *ManagerFlags) SetDefaults()
SetDefaults sets the default values.
func (*ManagerFlags) Validate ¶
func (f *ManagerFlags) Validate() error
Validate Verify that the structure meets the requirements