mirror of
				https://github.com/redhat-developer/odo.git
				synced 2025-10-19 03:06:19 +03:00 
			
		
		
		
	* Display the supported architectures in `odo registry` output * Allow filtering by architectures * Update documentation accordingly * Add test cases * fixup! Update documentation accordingly * fixup! Allow filtering by architectures Devfiles with no architecture declared are supposed to be compatible with all known architectures. Co-authored-by: Philippe Martin <phmartin@redhat.com> * fixup! Add test cases --------- Co-authored-by: Philippe Martin <phmartin@redhat.com>
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package api
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/devfile/registry-support/index/generator/schema"
 | 
						|
)
 | 
						|
 | 
						|
// Registry is the main struct of devfile registry
 | 
						|
type Registry struct {
 | 
						|
	Name   string `json:"name"`
 | 
						|
	URL    string `json:"url"`
 | 
						|
	Secure bool   `json:"secure"`
 | 
						|
	// Priority of the registry for listing purposes. The higher the number, the higher the priority
 | 
						|
	Priority int `json:"-"`
 | 
						|
}
 | 
						|
 | 
						|
// DevfileStack is the main struct for devfile stack
 | 
						|
type DevfileStack struct {
 | 
						|
	Name        string   `json:"name"`
 | 
						|
	DisplayName string   `json:"displayName"`
 | 
						|
	Description string   `json:"description"`
 | 
						|
	Registry    Registry `json:"registry"`
 | 
						|
	Language    string   `json:"language"`
 | 
						|
	Tags        []string `json:"tags"`
 | 
						|
	ProjectType string   `json:"projectType"`
 | 
						|
 | 
						|
	// DefaultVersion is the default version. Marshalled as "version" for backward compatibility.
 | 
						|
	// Deprecated. Use Versions instead.
 | 
						|
	DefaultVersion string                `json:"version"`
 | 
						|
	Versions       []DevfileStackVersion `json:"versions,omitempty"`
 | 
						|
 | 
						|
	// DefaultStarterProjects is the list of starter projects for the default stack.
 | 
						|
	// Marshalled as "starterProjects" for backward compatibility.
 | 
						|
	// Deprecated. Use Versions.StarterProjects instead.
 | 
						|
	DefaultStarterProjects []string     `json:"starterProjects"`
 | 
						|
	DevfileData            *DevfileData `json:"devfileData,omitempty"`
 | 
						|
	Architectures          []string     `json:"architectures,omitempty"`
 | 
						|
}
 | 
						|
 | 
						|
type DevfileStackVersion struct {
 | 
						|
	Version         string                           `json:"version,omitempty"`
 | 
						|
	IsDefault       bool                             `json:"isDefault"`
 | 
						|
	SchemaVersion   string                           `json:"schemaVersion,omitempty"`
 | 
						|
	StarterProjects []string                         `json:"starterProjects"`
 | 
						|
	CommandGroups   map[schema.CommandGroupKind]bool `json:"commandGroups"`
 | 
						|
}
 |