web

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAll

func DownloadAll(URL string) (map[string]string, error)

DownloadAll downloads assets from supplied URL

Types

type AppMeta

type AppMeta struct {
	Name        string
	Description string

	BuildCmd      string
	OriginURL     string
	Sdk           string
	Docker        bool
	MultiDb       bool
	AutoDiscovery bool
	Args          []string
	Config        string
	Build         string //build path
	UseSdkBuild   bool
	Dependency    string
	DbConfigPath  string
	Assets        []string
	Selenium      map[string]interface{}
	HTTP          map[string]interface{}
	REST          map[string]interface{}
	// contains filtered or unexported fields
}

func (*AppMeta) GetArguments

func (m *AppMeta) GetArguments(dockerfile bool) string

type AppTemplate

type AppTemplate struct {
	Template    string `json:"template"`
	Description string `json:"description"`
	Sdk         string `json:"sdk"`
	Docker      bool   `json:"docker"`
	HasOrigin   bool   `json:"hasOrigin"`
	MultiDb     bool   `json:"multiDb"`
}

type AppTemplates

type AppTemplates []*AppTemplate

func (AppTemplates) Len

func (a AppTemplates) Len() int

func (AppTemplates) Less

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

func (AppTemplates) Swap

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

type Build

type Build struct {
	Sdk           string
	App           string
	Origin        string
	TemplateApp   string
	Docker        bool
	Dockerfile    bool
	DockerCompose bool
	Tag           *Tag
	// contains filtered or unexported fields
}

type Datastore

type Datastore struct {
	Driver            string
	Name              string
	Version           string
	Config            bool
	MultiTableMapping bool
}

type DbMeta

type DbMeta struct {
	Id          string
	Name        string
	Kind        string
	Service     string
	Credentials string
	Config      string
	Schema      string
	Dictionary  string //dictionary data
	Data        string //use case static data
	Sequence    bool
	Tables      []string
}

type DbTemplate

type DbTemplate struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	HasConfig bool   `json:"hasConfig"`
}

type DbTemplates

type DbTemplates []*DbTemplate

func (DbTemplates) Len

func (a DbTemplates) Len() int

func (DbTemplates) Less

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

func (DbTemplates) Swap

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

type GetRequest

type GetRequest struct{}

type GetResponse

type GetResponse struct {
	Status string
	Error  string
	Sdk    []string       `json:"sdk"`
	App    []*AppTemplate `json:"app"`
	Db     []*DbTemplate  `json:"db"`
}

type Map

type Map interface {
	Range(handler func(key string, value interface{}))
	Has(key string) bool
	Put(key string, value interface{})
	Get(key string) interface{}
	GetMap(key string) Map
	Remove(key string) Map
	SubMap(path string) Map
	Len() int
}

func NewMap

func NewMap() Map

type Router

type Router struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(service *Service, callback func(request *http.Request)) *Router

type RunRequest

type RunRequest struct {
	Origin    string
	Build     *Build
	Datastore []*Datastore
	Testing   *Testing
}

func (*RunRequest) Validate

func (r *RunRequest) Validate() error

type RunResponse

type RunResponse struct {
	Data []byte
}

type SdkMeta

type SdkMeta struct {
	Sdk     string
	Version string
	Build   string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(baseTemplateURL, baseAssetURL string) *Service

func (*Service) Get

func (s *Service) Get(request *GetRequest) (*GetResponse, error)

func (*Service) Run

func (s *Service) Run(request *RunRequest) (*RunResponse, error)

type SystemService

type SystemService struct {
	Name    string
	Service string
}

type Tag

type Tag struct {
	Username string
	Registry string
	Image    string
	Version  string
}

Tag represent a docker tag

type Testing

type Testing struct {
	Regression     string `json:"regression"`
	REST           bool   `json:"rest"`
	HTTP           bool   `json:"http"`
	Selenium       bool   `json:"selenium"`
	SSH            bool   `json:"ssh"`
	Inline         bool   `json:"inline"`
	UseCaseData    string `json:"useCaseData"`
	DataValidation bool   `json:"dataValidation"`
	LogValidation  bool   `json:"logValidation"`
}

Jump to

Keyboard shortcuts

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