Documentation
¶
Index ¶
- func AddFinalizer(o client.Object, finalizer string) bool
- func DeepEqual(lhs interface{}, rhs interface{}) bool
- func HasLabel(obj client.Object, key, value string) bool
- func IgnoreNotFound(err error) error
- func IsAlreadyExists(err error) bool
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func Key(namespace, name string) types.NamespacedName
- func PodCondition(pod *v1.Pod, typ v1.PodConditionType) v1.PodCondition
- func RemoveFinalizer(o client.Object, finalizer string) bool
- func RemoveLabel(obj client.Object, key string) bool
- func ToString(obj client.Object) string
- func UpdateLabel(obj client.Object, key, value string) bool
- type Client
- func (c *Client) Apply(ctx context.Context, obj client.Object, opts ...client.PatchOption) error
- func (c *Client) ApplyStatus(ctx context.Context, obj client.Object, opts ...client.SubResourcePatchOption) error
- func (r *Client) GetVirtualEnvObj(ctx context.Context, namespace, envId string, requireSnapshot bool) (v1alpha1.VirtualEnvObject, error)
- func (c *Client) Merge(ctx context.Context, modified, original client.Object, ...) error
- func (c *Client) MergeStatus(ctx context.Context, modified, original client.Object, ...) error
- func (r *Client) SnapshotVirtualEnv(ctx context.Context, namespace, envName string) (*v1alpha1.VirtualEnvSnapshot, error)
- func (c *Client) Upsert(ctx context.Context, obj client.Object, dryRun bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreNotFound ¶
func IsAlreadyExists ¶
func IsConflict ¶
func IsNotFound ¶
func Key ¶
func Key(namespace, name string) types.NamespacedName
func PodCondition ¶
func PodCondition(pod *v1.Pod, typ v1.PodConditionType) v1.PodCondition
Types ¶
type Client ¶
type Client struct { client.Client KubeConfig *cmdapi.Config RestConfig *rest.Config FieldOwner client.FieldOwner }
func (*Client) ApplyStatus ¶
func (*Client) GetVirtualEnvObj ¶
func (*Client) MergeStatus ¶
func (*Client) SnapshotVirtualEnv ¶
Click to show internal directories.
Click to hide internal directories.