Documentation
¶
Index ¶
- Constants
- func NewCommandValidate(name, fullName string, out io.Writer) *cobra.Command
- func NewCommandValidateMasterConfig(name, fullName string, out io.Writer) *cobra.Command
- func NewCommandValidateNodeConfig(name, fullName string, out io.Writer) *cobra.Command
- type ValidateMasterConfigOptions
- type ValidateNodeConfigOptions
Constants ¶
View Source
const (
ValidateMasterConfigRecommendedName = "master-config"
)
View Source
const (
ValidateNodeConfigRecommendedName = "node-config"
)
View Source
const (
ValidateRecommendedName = "validate"
)
Variables ¶
This section is empty.
Functions ¶
func NewCommandValidate ¶
func NewCommandValidateMasterConfig ¶
NewCommandValidateMasterConfig provides a CLI handler for the `validate all-in-one` command
Types ¶
type ValidateMasterConfigOptions ¶
type ValidateMasterConfigOptions struct {
// MasterConfigFile is the location of the config file to be validated
MasterConfigFile string
// Out is the writer to write output to
Out io.Writer
}
func (*ValidateMasterConfigOptions) Complete ¶
func (o *ValidateMasterConfigOptions) Complete(args []string) error
func (*ValidateMasterConfigOptions) Run ¶
func (o *ValidateMasterConfigOptions) Run() (bool, error)
Run runs the master config validation and returns the result of the validation as a boolean as well as any errors that occurred trying to validate the file
type ValidateNodeConfigOptions ¶
type ValidateNodeConfigOptions struct {
// NodeConfigFile is the location of the config file to be validated
NodeConfigFile string
// Out is the writer to write output to
Out io.Writer
}
func (*ValidateNodeConfigOptions) Complete ¶
func (o *ValidateNodeConfigOptions) Complete(args []string) error
func (*ValidateNodeConfigOptions) Run ¶
func (o *ValidateNodeConfigOptions) Run() (ok bool, err error)
Run runs the node config validation and returns the result of the validation as a boolean as well as any errors that occurred trying to validate the file
Click to show internal directories.
Click to hide internal directories.