{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.0.0-alpha1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\nCopyright (c) 2019-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at [https://www.eclipse.org/legal/epl-2.0/](https://www.eclipse.org/legal/epl-2.0/)\n\nSPDX-License-Identifier: EPL-2.0\n\nContributors:\n\n\tRed Hat, Inc. - initial API and implementation\n\nCopyright (c) 2019-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at [https://www.eclipse.org/legal/epl-2.0/](https://www.eclipse.org/legal/epl-2.0/)\n\nSPDX-License-Identifier: EPL-2.0\n\nContributors:\n\n\tRed Hat, Inc. - initial API and implementation\n\n## Variables\n\n```go\nvar Log = logf.Log.WithName(\"ownerref\")\n```\n\n## Functions\n\n```go\nfunc CreateClient() (client.Client, error)\n```\nCreateClient creates Controller client with default config or returns error if any happens\n\n```go\nfunc FindControllerDeployment(ctx context.Context, client crclient.Client) (*appsv1.Deployment, error)\n```\nFindControllerDeployment gets the deployment of the deployed controller\n\n```go\nfunc FindControllerOwner(ctx context.Context, client crclient.Client) (*metav1.OwnerReference, error)\n```\nFindControllerOwner returns OwnerReferent that owns controller process it starts searching from the current pod and then resolves owners recursively until object without owner is not found\n\n","path":"github.com/devfile/devworkspace-operator/internal/controller","name":"controller","synopsis":"","isRedistributable":true}
