mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Add --architecture flag * Ask architecture during interactive mode * Display architectures of detected Devfile * Fix integration tests * Fix automated doc * Fix e2e tests * Ignore empty lines on doc automation tests * Update pkg/odo/cli/registry/registry.go Co-authored-by: Armel Soro <armel@rm3l.org> * Fix Architectures field in API * Change "select architectures" prompt --------- Co-authored-by: Armel Soro <armel@rm3l.org>
22 lines
459 B
Go
22 lines
459 B
Go
package alizer
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/devfile/alizer/pkg/apis/model"
|
|
"github.com/redhat-developer/odo/pkg/api"
|
|
)
|
|
|
|
type DetectedFramework struct {
|
|
Type model.DevFileType
|
|
DefaultVersion string
|
|
Registry api.Registry
|
|
Architectures []string
|
|
}
|
|
|
|
type Client interface {
|
|
DetectFramework(ctx context.Context, path string) (DetectedFramework, error)
|
|
DetectName(path string) (string, error)
|
|
DetectPorts(path string) ([]int, error)
|
|
}
|