Documentation ¶
Index ¶
- Constants
- type DefaultInterpreter
- func (e *DefaultInterpreter) GetReplicas(object *unstructured.Unstructured) (int32, *workv1alpha2.ReplicaRequirements, error)
- func (e *DefaultInterpreter) HookEnabled(kind schema.GroupVersionKind, ...) bool
- func (e *DefaultInterpreter) Retain(desired *unstructured.Unstructured, observed *unstructured.Unstructured) (retained *unstructured.Unstructured, err error)
Constants ¶
View Source
const (
// SecretsField indicates the 'secrets' field of a service account
SecretsField = "secrets"
)
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) GetReplicas ¶
func (e *DefaultInterpreter) GetReplicas(object *unstructured.Unstructured) (int32, *workv1alpha2.ReplicaRequirements, error)
GetReplicas returns the desired replicas of the object as well as the requirements of each replica.
func (*DefaultInterpreter) HookEnabled ¶
func (e *DefaultInterpreter) HookEnabled(kind schema.GroupVersionKind, operationType configv1alpha1.InterpreterOperation) bool
HookEnabled tells if any hook exist for specific resource type and operation type.
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.
Click to show internal directories.
Click to hide internal directories.