func GetFirstContainerWithSourceVolume(containers []corev1.Container) (string, string, error)
GetFirstContainerWithSourceVolume returns the first container that set mountSources: true as well as the path to the source volume inside the container. Because the source volume is shared across all components that need it, we only need to sync once, so we only need to find one container. If no container was found, that means there's no container to sync to, so return an error
func GetSyncFilesFromAttributes(command v1alpha2.Command) map[string]string
GetSyncFilesFromAttributes gets the target files and folders along with their respective remote destination from the devfile. It uses the "dev.odo.push.path:" attribute prefix, if any, in the specified command.
func Run( ctx context.Context, commandName string, platformClient platform.Client, execClient exec.Client, configAutomountClient configAutomount.Client, filesystem filesystem.Filesystem, ) error
type ErrPortForward struct {
// contains filtered or unexported fields
}
func NewErrPortForward(cause error) ErrPortForward
func (e ErrPortForward) Error() string
PushParameters is a struct containing the parameters to be used when pushing to a devfile component
type PushParameters struct { StartOptions dev.StartOptions Devfile parser.DevfileObj WatchFiles []string // Optional: WatchFiles is the list of changed files detected by odo watch. If empty or nil, odo will check .odo/odo-file-index.json to determine changed files WatchDeletedFiles []string // Optional: WatchDeletedFiles is the list of deleted files detected by odo watch. If empty or nil, odo will check .odo/odo-file-index.json to determine deleted files Show bool // Show tells whether the devfile command output should be shown on stdout DevfileScanIndexForWatch bool // DevfileScanIndexForWatch is true if watch's push should regenerate the index file during SyncFiles, false otherwise. See 'pkg/sync/adapter.go' for details }