...

Package registry_server

Overview ▾

type DevfileStack

DevfileStack is the main struct for devfile stack

type DevfileStack struct {
    Name     string                `json:"name"`
    Versions []DevfileStackVersion `json:"versions,omitempty"`
}

type DevfileStackVersion

type DevfileStackVersion struct {
    Version         string   `json:"version,omitempty"`
    IsDefault       bool     `json:"default"`
    SchemaVersion   string   `json:"schemaVersion,omitempty"`
    StarterProjects []string `json:"starterProjects"`
}

type MockRegistryServer

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

func NewMockRegistryServer() *MockRegistryServer

func (*MockRegistryServer) GetUrl

func (m *MockRegistryServer) GetUrl() string

func (*MockRegistryServer) IsStarted

func (m *MockRegistryServer) IsStarted() bool

func (*MockRegistryServer) Start

func (m *MockRegistryServer) Start() (url string, err error)

func (*MockRegistryServer) Stop

func (m *MockRegistryServer) Stop() error