DevfileStack is the main struct for devfile stack
type DevfileStack struct { Name string `json:"name"` Versions []DevfileStackVersion `json:"versions,omitempty"` }
type DevfileStackVersion struct { Version string `json:"version,omitempty"` IsDefault bool `json:"default"` SchemaVersion string `json:"schemaVersion,omitempty"` StarterProjects []string `json:"starterProjects"` }
MockRegistryServer is an implementation of a Devfile Registry Server, inspired by the own Devfile Registry tests at https://github.com/devfile/registry-support/blob/main/index/server/pkg/server/endpoint_test.go.
type MockRegistryServer struct {
// contains filtered or unexported fields
}
func NewMockRegistryServer() *MockRegistryServer
func (m *MockRegistryServer) GetUrl() string
func (m *MockRegistryServer) IsStarted() bool
func (m *MockRegistryServer) Start() (url string, err error)
func (m *MockRegistryServer) Stop() error