mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Armel Soro <asoro@redhat.com>
23 lines
460 B
Go
23 lines
460 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)
|
|
}
|