defaultinterpreter

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInterpreter

type DefaultInterpreter struct {
	// contains filtered or unexported fields
}

DefaultInterpreter contains all default operation interpreter factory for interpreting common resource.

func NewDefaultInterpreter

func NewDefaultInterpreter() *DefaultInterpreter

NewDefaultInterpreter return a new DefaultInterpreter.

func (*DefaultInterpreter) AggregateStatus added in v1.1.0

func (e *DefaultInterpreter) AggregateStatus(object *unstructured.Unstructured, aggregatedStatusItems []workv1alpha2.AggregatedStatusItem) (*unstructured.Unstructured, error)

AggregateStatus returns the objects that based on the 'object' but with status aggregated.

func (*DefaultInterpreter) GetDependencies added in v1.1.0

func (e *DefaultInterpreter) GetDependencies(object *unstructured.Unstructured) (dependencies []configv1alpha1.DependentObjectReference, err error)

GetDependencies returns the dependent resources of the given object.

func (*DefaultInterpreter) GetReplicas

GetReplicas returns the desired replicas of the object as well as the requirements of each replica.

func (*DefaultInterpreter) HookEnabled

HookEnabled tells if any hook exist for specific resource type and operation type.

func (*DefaultInterpreter) InterpretHealth added in v1.3.0

func (e *DefaultInterpreter) InterpretHealth(object *unstructured.Unstructured) (bool, error)

InterpretHealth returns the health state of the object.

func (*DefaultInterpreter) ReflectStatus added in v1.2.0

func (e *DefaultInterpreter) ReflectStatus(object *unstructured.Unstructured) (status *runtime.RawExtension, err error)

ReflectStatus returns the status of the object.

func (*DefaultInterpreter) Retain

func (e *DefaultInterpreter) Retain(desired *unstructured.Unstructured, observed *unstructured.Unstructured) (retained *unstructured.Unstructured, err error)

Retain returns the objects that based on the "desired" object but with values retained from the "observed" object.

func (*DefaultInterpreter) ReviseReplica added in v1.0.0

func (e *DefaultInterpreter) ReviseReplica(object *unstructured.Unstructured, replica int64) (*unstructured.Unstructured, error)

ReviseReplica revises the replica of the given object.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL