Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodec ¶ added in v0.0.310
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 ¶
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. |
|
softwarecomposition
|
|