Documentation ¶
Index ¶
- Constants
- func CreateStepName(moduleName, assetID string) string
- func CreateUnstructured(group, version, kind, name, namespace string) *unstructured.Unstructured
- func GetApplicationClusterFromLabels(labels map[string]string) string
- func GetApplicationNameFromLabels(labels map[string]string) string
- func GetApplicationNamespaceFromLabels(labels map[string]string) string
- func GetBlueprintNameFromLabels(labels map[string]string) string
- func GetBlueprintNamespaceFromLabels(labels map[string]string) string
- func GetFybrikApplicationUUID(fapp *api.FybrikApplication) string
- func GetFybrikApplicationUUIDfromAnnotations(annotations map[string]string) string
- func GetReleaseName(applicationName, uuid, instanceName string) string
- func IsDenied(actionName taxonomy.ActionName) bool
- func NewScheme(g *gomega.WithT) *runtime.Scheme
- func UpdateStatus(ctx context.Context, cl client.Client, obj client.Object, ...) error
- type UnstructuredAsLabels
Constants ¶
const ( ApplicationClusterLabel = "app.fybrik.io/app-cluster" ApplicationNamespaceLabel = "app.fybrik.io/app-namespace" ApplicationNameLabel = "app.fybrik.io/app-name" BlueprintNamespaceLabel = "app.fybrik.io/blueprint-namespace" BlueprintNameLabel = "app.fybrik.io/blueprint-name" FybrikAppUUID = "app.fybrik.io/app-uuid" )
Variables ¶
This section is empty.
Functions ¶
func CreateStepName ¶
Create a name for a step in a blueprint. Since this is part of the name of a release, this should be done in a central location to make testing easier
func CreateUnstructured ¶
func CreateUnstructured(group, version, kind, name, namespace string) *unstructured.Unstructured
CreateUnstructured creates a new Unstructured runtime object
func GetApplicationClusterFromLabels ¶ added in v1.0.1
func GetApplicationNameFromLabels ¶ added in v1.0.1
func GetApplicationNamespaceFromLabels ¶ added in v1.0.1
func GetBlueprintNameFromLabels ¶ added in v1.0.1
func GetBlueprintNamespaceFromLabels ¶ added in v1.0.1
func GetFybrikApplicationUUID ¶ added in v0.6.0
func GetFybrikApplicationUUID(fapp *api.FybrikApplication) string
GetFybrikApplicationUUID returns a globally unique ID for the FybrikApplication instance. It must be unique over time and across clusters, even after the instance has been deleted, because this ID will be used for logging purposes.
func GetFybrikApplicationUUIDfromAnnotations ¶ added in v0.6.0
GetFybrikApplicationUUIDfromAnnotations returns the UUID passed to the resource in its annotations
func GetReleaseName ¶
Generating a release name based on the blueprint module and application name/uuid
func IsDenied ¶
func IsDenied(actionName taxonomy.ActionName) bool
IsDenied returns true if the data access is denied
Types ¶
type UnstructuredAsLabels ¶
type UnstructuredAsLabels struct {
Data *unstructured.Unstructured
}
UnstructuredAsLabels is an implementation of labels.Labels interface which allows us to take advantage of k8s labels library for the purposes of evaluating fail and success conditions
func (UnstructuredAsLabels) Get ¶
func (c UnstructuredAsLabels) Get(label string) string
Get returns the value for the provided label.
func (UnstructuredAsLabels) Has ¶
func (c UnstructuredAsLabels) Has(label string) bool
Has returns whether the provided label exists.