Documentation ¶
Index ¶
- func AddFinalizer(target metav1.Object, name string) bool
- func Annotate(target metav1.Object, name, value string) bool
- func CopyLabelsAndAnnotations(target, src metav1.Object)
- func CreateOrUpdate(ctx context.Context, cl client.Client, obj client.Object, ...) error
- func DeleteIgnoreNotFound(ctx context.Context, cl client.Client, obj client.Object, ...) (bool, error)
- func Exists(obj client.Object) bool
- func GetIgnoreNotFound(ctx context.Context, cl client.Client, key client.ObjectKey, obj client.Object) (bool, error)
- func Label(target metav1.Object, name, value string) bool
- func Own(target client.Object, owner lifecycle.TypedObject) error
- func OwnUncontrolled(target client.Object, owner lifecycle.TypedObject) error
- func Patch(ctx context.Context, cl client.Client, upd, orig client.Object, ...) error
- func RemoveFinalizer(target metav1.Object, name string) bool
- func SuffixObjectKeyName(key client.ObjectKey, suffix string) client.ObjectKey
- type CreateOrUpdateOption
- type CreateOrUpdateOptions
- type OwnerInOtherNamespaceError
- type PatchOption
- type PatchOptions
- type Patcher
- type WithObjectKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func DeleteIgnoreNotFound ¶
func GetIgnoreNotFound ¶
func OwnUncontrolled ¶ added in v0.2.0
func OwnUncontrolled(target client.Object, owner lifecycle.TypedObject) error
Types ¶
type CreateOrUpdateOption ¶
type CreateOrUpdateOption interface {
ApplyToCreateOrUpdateOptions(target *CreateOrUpdateOptions)
}
type CreateOrUpdateOptions ¶
func (*CreateOrUpdateOptions) ApplyOptions ¶
func (o *CreateOrUpdateOptions) ApplyOptions(opts []CreateOrUpdateOption)
type OwnerInOtherNamespaceError ¶
type OwnerInOtherNamespaceError struct { Owner lifecycle.TypedObject Target client.Object }
func (*OwnerInOtherNamespaceError) Error ¶
func (e *OwnerInOtherNamespaceError) Error() string
type PatchOption ¶
type PatchOption interface {
ApplyToPatchOptions(target *PatchOptions)
}
type PatchOptions ¶
func (*PatchOptions) ApplyOptions ¶
func (o *PatchOptions) ApplyOptions(opts []PatchOption)
type Patcher ¶
type Patcher struct {
// contains filtered or unexported fields
}
func NewPatcher ¶
func NewPatcher(upd, orig client.Object, opts ...PatchOption) *Patcher
type WithObjectKey ¶
func (WithObjectKey) ApplyToCreateOrUpdateOptions ¶
func (wok WithObjectKey) ApplyToCreateOrUpdateOptions(opts *CreateOrUpdateOptions)
func (WithObjectKey) ApplyToPatchOptions ¶
func (wok WithObjectKey) ApplyToPatchOptions(opts *PatchOptions)
Click to show internal directories.
Click to hide internal directories.