mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Get values from context * Move Devfile param to WatchParams and biuld adapter only once * Move pkg/devfile/adapters/kubernetes/* into pkg/dev/kubedev * Rename Push to reconcile and split in 2 parts: components and innreloop * Pass out ans errout as startOptions * Embed StartOptions into PushParameters * Embed StartOptions into WatchParameters * Fix passing startoptions * Deduplicate options (out, ...) * Revert adding unwanted files * Fix wait app ready
15 lines
641 B
Go
15 lines
641 B
Go
package watch
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Client interface {
|
|
// WatchAndPush watches the component under the context directory and triggers Push if there are any changes
|
|
// It also listens on ctx's Done channel to trigger cleanup when indicated to do so
|
|
// componentStatus is a variable to store the status of the component, and that will be exchanged between
|
|
// parts of code (unfortunately, tthere is no place to store the status of the component in some Kubernetes resource
|
|
// as it is generally done for a Kubernetes resource)
|
|
WatchAndPush(ctx context.Context, parameters WatchParameters, componentStatus ComponentStatus) error
|
|
}
|