{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.8.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package validate\n\n## Constants\n\n```go\nconst (\n\tValidateMasterConfigRecommendedName = \"master-config\"\n)\n```\n\n```go\nconst (\n\tValidateNodeConfigRecommendedName = \"node-config\"\n)\n```\n\n```go\nconst (\n\tValidateRecommendedName = \"validate\"\n)\n```\n\n## Functions\n\n```go\nfunc NewCommandValidate(name, fullName string, out, errOut io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCommandValidateMasterConfig(name, fullName string, out io.Writer) *cobra.Command\n```\nNewCommandValidateMasterConfig provides a CLI handler for the \\`validate all-in-one\\` command\n\n```go\nfunc NewCommandValidateNodeConfig(name, fullName string, out io.Writer) *cobra.Command\n```\nNewCommandValidateMasterConfig provides a CLI handler for the \\`validate all-in-one\\` command\n\n## Types\n\n```go\ntype ValidateMasterConfigOptions struct {\n\t// MasterConfigFile is the location of the config file to be validated\n\tMasterConfigFile string\n\n\t// Out is the writer to write output to\n\tOut io.Writer\n}\n```\n\n```go\nfunc (o *ValidateMasterConfigOptions) Complete(args []string) error\n```\n\n```go\nfunc (o *ValidateMasterConfigOptions) Run() (bool, error)\n```\nRun 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\n\n```go\ntype ValidateNodeConfigOptions struct {\n\t// NodeConfigFile is the location of the config file to be validated\n\tNodeConfigFile string\n\n\t// Out is the writer to write output to\n\tOut io.Writer\n}\n```\n\n```go\nfunc (o *ValidateNodeConfigOptions) Complete(args []string) error\n```\n\n```go\nfunc (o *ValidateNodeConfigOptions) Run() (ok bool, err error)\n```\nRun 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\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/admin/validate","name":"validate","synopsis":"","isRedistributable":true}
