...

Source file src/github.com/redhat-developer/odo/pkg/api/registry.go

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

     1  package api
     2  
     3  import (
     4  	"github.com/devfile/registry-support/index/generator/schema"
     5  )
     6  
     7  // Registry is the main struct of devfile registry
     8  type Registry struct {
     9  	Name   string `json:"name"`
    10  	URL    string `json:"url"`
    11  	Secure bool   `json:"secure"`
    12  	// Priority of the registry for listing purposes. The higher the number, the higher the priority
    13  	Priority int `json:"-"`
    14  }
    15  
    16  // DevfileStack is the main struct for devfile stack
    17  type DevfileStack struct {
    18  	Name        string   `json:"name"`
    19  	DisplayName string   `json:"displayName"`
    20  	Description string   `json:"description"`
    21  	Registry    Registry `json:"registry"`
    22  	Language    string   `json:"language"`
    23  	Tags        []string `json:"tags"`
    24  	ProjectType string   `json:"projectType"`
    25  
    26  	// DefaultVersion is the default version. Marshalled as "version" for backward compatibility.
    27  	// Deprecated. Use Versions instead.
    28  	DefaultVersion string                `json:"version"`
    29  	Versions       []DevfileStackVersion `json:"versions,omitempty"`
    30  
    31  	// DefaultStarterProjects is the list of starter projects for the default stack.
    32  	// Marshalled as "starterProjects" for backward compatibility.
    33  	// Deprecated. Use Versions.StarterProjects instead.
    34  	DefaultStarterProjects []string     `json:"starterProjects"`
    35  	DevfileData            *DevfileData `json:"devfileData,omitempty"`
    36  	Architectures          []string     `json:"architectures,omitempty"`
    37  }
    38  
    39  type DevfileStackVersion struct {
    40  	Version         string                           `json:"version,omitempty"`
    41  	IsDefault       bool                             `json:"isDefault"`
    42  	SchemaVersion   string                           `json:"schemaVersion,omitempty"`
    43  	StarterProjects []string                         `json:"starterProjects"`
    44  	CommandGroups   map[schema.CommandGroupKind]bool `json:"commandGroups"`
    45  }
    46  

View as plain text