Versions in this module Expand all Collapse all v1 v1.7.9 May 27, 2024 v1.7.8 May 7, 2024 Changes in this version + const AppDefinitionNamespace + const Dummy + const DummyTraitMessage + const ErrBadRevision + const ErrCreateConvertedWorklaodDefinition + const ErrCreateDefinitionRevision + const ErrGenerateDefinitionRevision + const ErrGenerateOpenAPIV2JSONSchemaForCapability + const ErrReconcileErrInCondition + const ErrRefreshPackageDiscover + const ErrStoreCapabilityInConfigMap + const ErrUpdateCapabilityInConfigMap + const ErrUpdateComponentDefinition + const ErrUpdatePolicyDefinition + const ErrUpdateStatus + const ErrUpdateStepDefinition + const ErrUpdateTraitDefinition + const ErrUpdateWorkflowStepDefinition + const TraitPrefixKey + const XDefinitionNamespace + func Abs(a int) int + func AddAnnotations(o labelAnnotationObject, annos map[string]string) + func AddLabels(o labelAnnotationObject, labels map[string]string) + func AsController(r *corev1.ObjectReference) metav1.OwnerReference + func AsOwner(r *corev1.ObjectReference) metav1.OwnerReference + func BeEquivalentToError(expected error) types.GomegaMatcher + func CheckAppRevision(revs []v1beta1.ApplicationRevision, collection []int) (bool, error) + func ComputeHash(trait *unstructured.Unstructured) string + func ConvertDefinitionRevName(definitionName string) (string, error) + func ConvertWorkloadGVK2Definition(mapper meta.RESTMapper, def common.WorkloadGVK) (common.DefinitionReference, error) + func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) + func EndReconcileWithNegativeCondition(ctx context.Context, r client.StatusClient, workload ConditionedObject, ...) error + func EndReconcileWithPositiveCondition(ctx context.Context, r client.StatusClient, workload ConditionedObject, ...) error + func ExtractComponentName(revisionName string) string + func ExtractRevisionNum(appRevision string, delimiter string) (int, error) + func GenTraitName(componentName string, ct *unstructured.Unstructured, traitType string) string + func GenerateVersion(pre string) string + func GetCapabilityDefinition(ctx context.Context, cli client.Reader, definition client.Object, ...) error + func GetDefinition(ctx context.Context, cli client.Reader, definition client.Object, ...) error + func GetDefinitionFromNamespace(ctx context.Context, cli client.Reader, definition client.Object, ...) error + func GetDefinitionName(mapper meta.RESTMapper, u *unstructured.Unstructured, typeLabel string) (string, error) + func GetDefinitionNamespaceWithCtx(ctx context.Context) string + func GetGVKFromDefinition(mapper meta.RESTMapper, definitionRef common.DefinitionReference) (metav1.GroupVersionKind, error) + func GetObjectGivenGVKAndName(ctx context.Context, client client.Reader, gvk schema.GroupVersionKind, ...) (*unstructured.Unstructured, error) + func GetObjectsGivenGVKAndLabels(ctx context.Context, cli client.Reader, gvk schema.GroupVersionKind, ...) (*unstructured.UnstructuredList, error) + func GetXDefinitionNamespaceWithCtx(ctx context.Context) string + func IsConditionChanged(newCondition []condition.Condition, workload ConditionedObject) bool + func JSONMarshal(o interface{}) []byte + func Max(a, b int) int + func MergeMapOverrideWithDst(src, dst map[string]string) map[string]string + func Min(a, b int) int + func MustJSONMarshal(obj interface{}) []byte + func Object2Map(obj interface{}) (map[string]interface{}, error) + func Object2RawExtension(obj interface{}) *runtime.RawExtension + func Object2Unstructured(obj interface{}) (*unstructured.Unstructured, error) + func PassLabelAndAnnotation(parentObj, childObj labelAnnotationObject) + func PatchCondition(ctx context.Context, r client.StatusClient, workload ConditionedObject, ...) error + func RawExtension2Application(raw runtime.RawExtension) (*v1beta1.Application, error) + func RawExtension2Map(raw *runtime.RawExtension) (map[string]interface{}, error) + func RawExtension2Unstructured(raw *runtime.RawExtension) (*unstructured.Unstructured, error) + func RemoveAnnotations(o labelAnnotationObject, removeKeys []string) + func RemoveLabels(o labelAnnotationObject, removeKeys []string) + func SetNamespaceInCtx(ctx context.Context, namespace string) context.Context + func SetXDefinitionNamespaceInCtx(ctx context.Context, namespace string) context.Context + func UnMarshalStringToComponentDefinition(s string) (*v1beta1.ComponentDefinition, error) + func UnMarshalStringToPolicyDefinition(s string) (*v1beta1.PolicyDefinition, error) + func UnMarshalStringToTraitDefinition(s string) (*v1beta1.TraitDefinition, error) + type AlreadyExistMatcher struct + func (matcher AlreadyExistMatcher) FailureMessage(actual interface{}) (message string) + func (matcher AlreadyExistMatcher) Match(actual interface{}) (success bool, err error) + func (matcher AlreadyExistMatcher) NegatedFailureMessage(actual interface{}) (message string) + type ConditionedObject interface + type ErrorMatcher struct + ExpectedError error + func (matcher ErrorMatcher) FailureMessage(actual interface{}) (message string) + func (matcher ErrorMatcher) Match(actual interface{}) (success bool, err error) + func (matcher ErrorMatcher) NegatedFailureMessage(actual interface{}) (message string) + type NamespaceAccessor interface + For func(obj client.Object) string + Namespace func() string + func NewApplicationResourceNamespaceAccessor(appNs, overrideNs string) NamespaceAccessor + type NotFoundMatcher struct + func (matcher NotFoundMatcher) FailureMessage(actual interface{}) (message string) + func (matcher NotFoundMatcher) Match(actual interface{}) (success bool, err error) + func (matcher NotFoundMatcher) NegatedFailureMessage(actual interface{}) (message string) + type WorkloadType string + const ComponentDef + const HELMDef + const KubeDef + const ReferWorkload + const TerraformDef