Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdValidate ¶
NewCmdValidate creates the `validate` command
Types ¶
type ValidateOptions ¶
type ValidateOptions struct { genericclioptions.IOStreams Validator validation.Schema Builder *resource.Builder Mapper meta.RESTMapper DynamicClient dynamic.Interface OpenAPISchema openapi.Resources KarmadaClient karmadaversioned.Interface Namespace string EnforceNamespace bool FilenameOptions resource.FilenameOptions Selector string // contains filtered or unexported fields }
ValidateOptions defines flags and other configuration parameters for the `validate` command
func NewValidateOptions ¶
func NewValidateOptions(ioStreams genericclioptions.IOStreams) *ValidateOptions
NewValidateOptions creates new ApplyOptions for the `validate` command
func (*ValidateOptions) Complete ¶
Complete verifies if ValidateOptions are valid and without conflicts.
func (*ValidateOptions) GetObjects ¶
func (o *ValidateOptions) GetObjects() ([]*resource.Info, error)
GetObjects returns a (possibly cached) version of all the valid objects to apply as a slice of pointer to resource.Info and an error if one or more occurred. IMPORTANT: This function can return both valid objects AND an error, since "ContinueOnError" is set on the builder. This function should not be called until AFTER the "complete" and "validate" methods have been called to ensure that the ValidateOptions is filled in and valid.
func (*ValidateOptions) Run ¶
func (o *ValidateOptions) Run() error
Run executes the `validate` command.