registrycmdutil

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultArtifactGroup = "default"

Variables

This section is empty.

Functions

func GetInstanceAPIError

func GetInstanceAPIError(err error) (e registryinstanceclient.Error, ok bool)

GetInstanceAPIError gets a strongly typed error from an error

func TransformInstanceError

func TransformInstanceError(err error) error

TransformInstanceError code contains message that can be returned to the user

func ValidateName

func ValidateName(val interface{}) error

ValidateName validates the proposed name of a Kafka instance

Types

type Error

type Error struct {
	Err error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type FlagSet added in v0.39.0

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

func NewFlagSet added in v0.39.0

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

NewFlagSet returns a new flag set with common Service Registry flags

func (*FlagSet) AddRegistryInstance added in v0.39.0

func (fs *FlagSet) AddRegistryInstance(registryID *string)

AddRegistryInstance adds a flag for setting the Service Registry instance ID

Jump to

Keyboard shortcuts

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