validate

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2017 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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