registrycmdutil

package
v0.48.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultArtifactGroup = "default"
View Source
const REGISTRY_CNCF_PATH = "/apis/cncf/v0"
View Source
const REGISTRY_COMPAT_PATH = "/apis/ccompat/v6"
View Source
const REGISTRY_CORE_PATH = "/apis/registry/v2"

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 CompatibilityEndpoints added in v0.41.1

type CompatibilityEndpoints struct {
	CoreRegistry       string `json:"coreRegistryAPI"`
	SchemaRegistry     string `json:"schemaRegistryCompatAPI"`
	CncfSchemaRegistry string `json:"cncfSchemaRegistryAPI"`
}

CompatibilityEndpoints - Service Registry API paths for various clients

func GetCompatibilityEndpoints added in v0.41.0

func GetCompatibilityEndpoints(url string) *CompatibilityEndpoints

GetCompatibilityEndpoints returns the compatible API endpoints

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