validate

package
v3.9.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewCommandValidate(name, fullName string, out, errOut io.Writer) *cobra.Command

func NewCommandValidateMasterConfig

func NewCommandValidateMasterConfig(name, fullName string, out io.Writer) *cobra.Command

NewCommandValidateMasterConfig provides a CLI handler for the `validate all-in-one` command

func NewCommandValidateNodeConfig

func NewCommandValidateNodeConfig(name, fullName string, out io.Writer) *cobra.Command

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

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

Jump to

Keyboard shortcuts

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