connectorcmdutil

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagSet

type FlagSet struct {
	*flagutil.FlagSet
	// contains filtered or unexported fields
}

func NewFlagSet

func NewFlagSet(cmd *cobra.Command, f *factory.Factory) *FlagSet

NewFlagSet returns a new flag set with common connector flags

func (*FlagSet) AddConnectorID

func (fs *FlagSet) AddConnectorID(ruleType *string) *flagutil.FlagOptions

AddConnectorID adds a flag for specifying the connector ID

func (*FlagSet) AddConnectorName added in v0.46.0

func (fs *FlagSet) AddConnectorName(ruleType *string) *flagutil.FlagOptions

AddConnectorName adds a flag for specifying the connector name

type Validator

type Validator struct {
	Localizer localize.Localizer
}

Validator is a type for validating connector attributes

func (*Validator) ValidateNamespace

func (v *Validator) ValidateNamespace(name string) error

ValidateNamespace validates the name of the namespace

Jump to

Keyboard shortcuts

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