api

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConceptsApiPath     = "/concepts"
	RepositoriesApiPath = "/repositories"
)

Variables

This section is empty.

Functions

func MarshalId added in v0.7.0

func MarshalId(id string) string

func RegisterHandlersV1 added in v0.6.1

func RegisterHandlersV1(e *echo.Group, serv *Serv)

func StartUp

func StartUp(bind string)

func UnmarshalId added in v0.7.0

func UnmarshalId(id string) string

Types

type ByID added in v0.7.0

type ByID []ConceptInputsPayload

func (ByID) Len added in v0.7.0

func (a ByID) Len() int

func (ByID) Less added in v0.7.0

func (a ByID) Less(i, j int) bool

func (ByID) Swap added in v0.7.0

func (a ByID) Swap(i, j int)

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 ConceptMaintainerPayload struct {
	MaintainerName  string `json:"name"`
	MaintainerEmail string `json:"email"`
}

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

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

type Serv

type Serv struct{}

func (Serv) DeleteRepository added in v0.7.0

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

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

func (Serv) RenderConcept added in v0.8.0

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

func (Serv) RenderRepositoryConcept added in v0.8.0

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

Directories

Path Synopsis
client
v1

Jump to

Keyboard shortcuts

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