{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package flatten\n\n## Constants\n\n```go\nconst (\n\t// DWTSupportedNamespacesAnnotation defines additional namespaces from which a DevWorkspace can import a DevWorkspaceTemplate.\n\t// By default, importing templates from the same namespace as the DevWorkspace is allowed.\n\t// Options are:\n\t// - '*': allow importing by all DevWorkspaces on the cluster\n\t// - 'namespaceA,namespaceB,namespaceC': Allow importing by DevWorkspaces in list of specific namespaces\n\t// If the annotation does not exist or is empty, only DevWorkspaces in the same namespace as the template can reference it.\n\tDWTSupportedNamespacesAnnotation = \"controller.devfile.io/allow-import-from\"\n)\n```\n\n## Functions\n\n```go\nfunc DevWorkspaceIsFlattened(devworkspace *dw.DevWorkspaceTemplateSpec, contributions []dw.ComponentContribution) bool\n```\n\n```go\nfunc FormatVariablesWarning(warn *variables.VariableWarning) string\n```\n\n```go\nfunc ResolveDevWorkspace(workspace *dw.DevWorkspaceTemplateSpec, contributions []dw.ComponentContribution, tooling ResolverTools) (*dw.DevWorkspaceTemplateSpec, *variables.VariableWarning, error)\n```\nResolveDevWorkspace takes a devworkspace and returns a \"resolved\" version of it -- i.e. one where all plugins and parents are inlined as components.\n\n## Types\n\n```go\ntype ResolverTools struct {\n\tWorkspaceNamespace          string\n\tContext                     context.Context\n\tK8sClient                   client.Client\n\tHttpClient                  network.HTTPGetter\n\tDefaultResourceRequirements *corev1.ResourceRequirements\n}\n```\n\n","path":"github.com/devfile/devworkspace-operator/pkg/library/flatten","name":"flatten","synopsis":"","isRedistributable":true}
