{"modulePath":"github.com/OpenShift/odo","version":"v1.2.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package component\n\n## Constants\n\n```go\nconst (\n\tLocalhostIP = \"127.0.0.1\"\n)\n```\n\n## Types\n\n```go\ntype Adapter struct {\n\tClient lclient.Client\n\t*common.GenericAdapter\n\t// contains filtered or unexported fields\n}\n```\nAdapter is a component adapter implementation for Kubernetes\n\n```go\nfunc New(adapterContext common.AdapterContext, client lclient.Client) Adapter\n```\nNew instantiates a component adapter\n\n```go\nfunc (a Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)\n```\n\n```go\nfunc (a Adapter) Delete(labels map[string]string, show bool) error\n```\nDelete attempts to delete the component with the specified labels, returning an error if it fails\n\n```go\nfunc (a Adapter) DoesComponentExist(cmpName string) (bool, error)\n```\nDoesComponentExist returns true if a component with the specified name exists, false otherwise\n\n```go\nfunc (a Adapter) Exec(command []string) error\n```\nExec executes a command in the component\n\n```go\nfunc (a Adapter) Log(follow, debug bool) (io.ReadCloser, error)\n```\nLog returns log from component\n\n```go\nfunc (a Adapter) Push(parameters common.PushParameters) (err error)\n```\nPush updates the component if a matching component exists or creates one if it doesn't exist\n\n```go\nfunc (a Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)\n```\n\n```go\nfunc (a Adapter) Test(testCmd string, show bool) (err error)\n```\nTest runs the devfile test command\n\n","path":"github.com/OpenShift/odo/pkg/devfile/adapters/docker/component","name":"component","synopsis":"","isRedistributable":true}
