validate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 11 Imported by: 0

Documentation

Overview

Package validate validate the basic environment for iamctl to run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdValidate

func NewCmdValidate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdValidate returns new initialized instance of 'validate' sub command.

Types

type ValidateInfo

type ValidateInfo struct {
	ItemName string
	Status   string
	Message  string
}

ValidateInfo defines the validate information.

type ValidateOptions

type ValidateOptions struct {
	genericclioptions.IOStreams
}

ValidateOptions is an options struct to support 'validate' sub command.

func NewValidateOptions

func NewValidateOptions(ioStreams genericclioptions.IOStreams) *ValidateOptions

NewValidateOptions returns an initialized ValidateOptions instance.

func (*ValidateOptions) Complete

func (o *ValidateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*ValidateOptions) Run

func (o *ValidateOptions) Run(args []string) error

Run executes a validate sub command using the specified options.

func (*ValidateOptions) Validate

func (o *ValidateOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

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