Documentation
¶
Index ¶
- Constants
- func MarshalId(id string) string
- func RegisterHandlersV1(e *echo.Group, serv *Serv)
- func StartUp(bind string)
- func UnmarshalId(id string) string
- type ByID
- type ConceptInputsPayload
- type ConceptMaintainerPayload
- type ConceptMetadataPayload
- type ConceptPayload
- type ConceptsMapPayload
- type ConceptsPayload
- type MessagePayload
- type RenderConceptInputPayload
- type RenderConceptResultPayload
- type RepositoriesMapPayload
- type RepositoriesPayload
- type RepositoryPayload
- type Serv
- func (serv Serv) DeleteRepository(ctx echo.Context) error
- func (serv Serv) GetConcept(ctx echo.Context) error
- func (serv Serv) GetConcepts(ctx echo.Context) error
- func (serv Serv) GetRepositories(ctx echo.Context) error
- func (serv Serv) GetRepository(ctx echo.Context) error
- func (serv Serv) GetRepositoryConcept(ctx echo.Context) error
- func (serv Serv) GetRepositoryConcepts(ctx echo.Context) error
- func (serv Serv) PutRepository(ctx echo.Context) error
- func (serv Serv) RenderConcept(ctx echo.Context) error
- func (serv Serv) RenderRepositoryConcept(ctx echo.Context) error
Constants ¶
View Source
const ( ConceptsApiPath = "/concepts" RepositoriesApiPath = "/repositories" )
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlersV1 ¶ added in v0.6.1
func UnmarshalId ¶ added in v0.7.0
Types ¶
type ByID ¶ added in v0.7.0
type ByID []ConceptInputsPayload
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 ConceptMaintainerPayload ¶ added in v0.6.1
type ConceptMetadataPayload ¶
type ConceptMetadataPayload struct {
Maintainer ConceptMaintainerPayload `json:"maintainer,omitempty"`
Tags []string `json:"tags,omitempty"`
}
type ConceptPayload ¶
type ConceptPayload struct {
Type string `json:"type"`
Metadata ConceptMetadataPayload `json:"metadata"`
Inputs []ConceptInputsPayload `json:"inputs,omitempty"`
}
func NewConceptPayload ¶ added in v0.7.0
func NewConceptPayload() ConceptPayload
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 RenderConceptInputPayload ¶ added in v0.8.0
type RenderConceptInputPayload struct {
TargetType string `json:"type"`
SingleManifest bool `json:"singleManifest"`
Values *concepts.RenderValues `json:"values"`
}
type RenderConceptResultPayload ¶ added in v0.8.0
type RenderConceptResultPayload struct {
Manifests []string `json:"manifests"`
ManifestCount int `json:"manifestCount"`
Origin *concepts.ConceptOrigin `json:"origin"`
}
type RepositoriesMapPayload ¶
type RepositoriesMapPayload map[string]RepositoryPayload
type RepositoriesPayload ¶
type RepositoriesPayload struct {
Repositories RepositoriesMapPayload `json:"repositories"`
}
func NewRepositoriesPayload ¶
func NewRepositoriesPayload() RepositoriesPayload
type RepositoryPayload ¶
Click to show internal directories.
Click to hide internal directories.