mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Remove ObjectFunc
This commit is contained in:
parent
625713008d
commit
bb79475a86
@ -50,11 +50,6 @@ import (
|
||||
"k8s.io/klog/v2"
|
||||
)
|
||||
|
||||
// ObjectFunc is a function to act on a given object. An error may be returned
|
||||
// if the hook cannot be completed. An ObjectFunc may transform the provided
|
||||
// object.
|
||||
type ObjectFunc func(obj runtime.Object) error
|
||||
|
||||
// FinishFunc is a function returned by Begin hooks to complete an operation.
|
||||
type FinishFunc func(ctx context.Context, success bool)
|
||||
|
||||
|
@ -214,7 +214,7 @@ type UpdatedObjectInfo interface {
|
||||
}
|
||||
|
||||
// ValidateObjectFunc is a function to act on a given object. An error may be returned
|
||||
// if the hook cannot be completed. An ObjectFunc may NOT transform the provided
|
||||
// if the hook cannot be completed. A ValidateObjectFunc may NOT transform the provided
|
||||
// object.
|
||||
type ValidateObjectFunc func(ctx context.Context, obj runtime.Object) error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user