registry

package
v0.0.335 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec added in v0.0.310

func NewCodec(scheme *runtime.Scheme) runtime.Codec

NewCodec returns a runtime.Codec able to encode/decode this API group's internal object types via their external v1beta1 representation.

It exists to give genericregistry.DryRunnableStorage a real, non-nil Codec. Every softwarecomposition NewREST constructor pre-sets DryRunnableStorage.Storage to a non-nil, already-constructed storageImpl before calling Store.CompleteWithOptions -- and CompleteWithOptions only assigns opts.StorageConfig.Codec into e.Storage.Codec when e.Storage.Storage is nil (vendor store.go's CompleteWithOptions), so a literal Codec: nil here is never overwritten and survives into production. DryRunnableStorage's dry-run branches (Create/GuaranteedUpdate) then call runtime.Encode(s.Codec, in) / s.Codec.Decode(...) -- a nil-interface method call that panics on any dry-run request, surfaced to clients as an opaque 500 by the apiserver's panic-recovery middleware.

Types

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for API services against etcd

func RESTInPeace

func RESTInPeace(storage *REST, err error) *REST

RESTInPeace is just a simple function that panics on error. Otherwise returns the given storage object. It is meant to be a wrapper for wardle registries.

Directories

Path Synopsis
networkmatch
Package networkmatch provides wildcard-aware matchers for the NetworkNeighbor.IPAddresses and NetworkNeighbor.DNSNames profile fields.
Package networkmatch provides wildcard-aware matchers for the NetworkNeighbor.IPAddresses and NetworkNeighbor.DNSNames profile fields.
Package genericrest provides a reusable, hand-written rest.Storage implementation that talks directly to a shared storage.Interface (this repo's StorageImpl), as a parallel, per-resource-gated alternative to k8s.io/apiserver's etcd-shaped genericregistry.Store.
Package genericrest provides a reusable, hand-written rest.Storage implementation that talks directly to a shared storage.Interface (this repo's StorageImpl), as a parallel, per-resource-gated alternative to k8s.io/apiserver's etcd-shaped genericregistry.Store.
softwarecomposition

Jump to

Keyboard shortcuts

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