...

Source file src/github.com/redhat-developer/odo/pkg/watch/interface.go

Documentation: github.com/redhat-developer/odo/pkg/watch

     1  package watch
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  type Client interface {
     8  	// WatchAndPush watches the component under the context directory and triggers Push if there are any changes
     9  	// It also listens on ctx's Done channel to trigger cleanup when indicated to do so
    10  	// componentStatus is a variable to store the status of the component, and that will be exchanged between
    11  	// parts of code (unfortunately, tthere is no place to store the status of the component in some Kubernetes resource
    12  	// as it is generally done for a Kubernetes resource)
    13  	WatchAndPush(ctx context.Context, parameters WatchParameters, componentStatus ComponentStatus) error
    14  }
    15  

View as plain text