api

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(e *echo.Echo, serv *Serv)

func StartUp

func StartUp(bind string)

Types

type ConceptInputsPayload

type ConceptInputsPayload struct {
	ID        string `json:"id"`
	Type      string `json:"type"`
	Mandatory bool   `json:"mandatory"`
}

func ConceptInputsPayloadFrom

func ConceptInputsPayloadFrom(c concepts.Concept) []ConceptInputsPayload

type ConceptMetadataPayload

type ConceptMetadataPayload struct {
	MaintainerName  string `json:"name"`
	MaintainerEmail string `json:"email"`
}

type ConceptPayload

type ConceptPayload struct {
	Type     string                 `json:"type"`
	Metadata ConceptMetadataPayload `json:"maintainer,omitempty"`
	Inputs   []ConceptInputsPayload `json:"inputs,omitempty"`
}

type ConceptsMapPayload

type ConceptsMapPayload map[string]ConceptPayload

type ConceptsPayload

type ConceptsPayload struct {
	Concepts ConceptsMapPayload `json:"concepts"`
}

func NewConceptsPayload

func NewConceptsPayload() ConceptsPayload

type MessagePayload

type MessagePayload struct {
	Message string `json:"message"`
}

func NewMessage

func NewMessage(msg string, e ...interface{}) MessagePayload

type RepositoriesMapPayload

type RepositoriesMapPayload map[string]RepositoryPayload

type RepositoriesPayload

type RepositoriesPayload struct {
	Repositories RepositoriesMapPayload `json:"repositories"`
}

func NewRepositoriesPayload

func NewRepositoriesPayload() RepositoriesPayload

type RepositoryPayload

type RepositoryPayload struct {
	URL    string `json:"url"`
	GitRef string `json:"gitRef,omitempty"`
}

type Serv

type Serv struct{}

func (Serv) GetConcept

func (serv Serv) GetConcept(ctx echo.Context) error

func (Serv) GetConcepts

func (serv Serv) GetConcepts(ctx echo.Context) error

func (Serv) GetRepositories

func (serv Serv) GetRepositories(ctx echo.Context) error

func (Serv) GetRepository

func (serv Serv) GetRepository(ctx echo.Context) error

func (Serv) GetRepositoryConcept

func (serv Serv) GetRepositoryConcept(ctx echo.Context) error

func (Serv) GetRepositoryConcepts

func (serv Serv) GetRepositoryConcepts(ctx echo.Context) error

func (Serv) PutRepository

func (serv Serv) PutRepository(ctx echo.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL