mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Remove ObjectFunc
This commit is contained in:
parent
625713008d
commit
bb79475a86
@ -50,11 +50,6 @@ import (
|
|||||||
"k8s.io/klog/v2"
|
"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.
|
// FinishFunc is a function returned by Begin hooks to complete an operation.
|
||||||
type FinishFunc func(ctx context.Context, success bool)
|
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
|
// 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.
|
// object.
|
||||||
type ValidateObjectFunc func(ctx context.Context, obj runtime.Object) error
|
type ValidateObjectFunc func(ctx context.Context, obj runtime.Object) error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user