Documentation
¶
Index ¶
- func AppendItem(v reflect.Value, obj runtime.Object)
- func GetListPrt(listObj runtime.Object) (reflect.Value, error)
- func NewStorage(ctx context.Context, pathInRepo, dbpath string, gr schema.GroupResource, ...) rest.Storage
- func NewStrategy(namespaceScoped bool, gvk schema.GroupVersionKind, ...) strategy
- func UpdateGeneration(new metav1.Object, generation int64)
- func UpdateResourceVersion(new, old metav1.Object) error
- func ValidateObjectMetaAccessorUpdate(newMeta, oldMeta metav1.Object, newGeneration, oldGeneration int64, ...) field.ErrorList
- type APIPrepator
- type NewFn
- type NewListFn
- type NewStorageFn
- type StorageCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(ctx context.Context, pathInRepo, dbpath string, gr schema.GroupResource, newFn NewFn, newListFn NewListFn, strategy rest.Strategy, fieldManager *managedfields.FieldManager) rest.Storage
func NewStrategy ¶
func NewStrategy( namespaceScoped bool, gvk schema.GroupVersionKind, schemaValidator, statusSchemaValidator apiextensionsvalidation.SchemaValidator, structuralSchema *structuralschema.Structural, defaulter runtime.ObjectDefaulter, preparator APIPrepator, ) strategy
func UpdateGeneration ¶
func UpdateResourceVersion ¶
Types ¶
type APIPrepator ¶
type APIPrepator interface { PrepareForCreate(ctx context.Context, obj runtime.Unstructured) error PrepareForUpdate(ctx context.Context, obj, old runtime.Unstructured) error PrepareForDelete(ctx context.Context, obj runtime.Unstructured) error }
type NewFn ¶
type NewFn func() runtime.Unstructured
type NewListFn ¶
type NewListFn func() runtime.Unstructured
type StorageCreator ¶
type StorageCreator struct { GroupResource schema.GroupResource NewFn NewFn NewListFn NewListFn Strategy rest.Strategy FieldManager *managedfields.FieldManager }
func (StorageCreator) NewStorage ¶
Click to show internal directories.
Click to hide internal directories.