structureSpec

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application added in v1.2.0

type Application struct {
	Id          string
	Name        string
	Description string
	Tags        []string
}

type Basic

type Basic interface {
	SimpleIface
	BasicPath(branch, commit, project, app string) (*common.TnsPath, error)
}

type Database

type Database struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Match       string
	Regex       bool `mapstructure:"useRegex"`
	Local       bool
	Size        uint64
	Key         string
	SmartOps    []string

	Basic
	Indexer
}

func (*Database) BasicPath

func (d *Database) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Database) GetId

func (d *Database) GetId() string

func (Database) GetName

func (d Database) GetName() string

func (*Database) IndexPath

func (d *Database) IndexPath(project, app string) *common.TnsPath

func (*Database) IndexValue

func (d *Database) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Database) SetId

func (d *Database) SetId(id string)

type Domain

type Domain struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Fqdn        string
	CertFile    string `mapstructure:"cert-file"`
	KeyFile     string `mapstructure:"key-file"`
	CertType    string `mapstructure:"cert-type"`
	SmartOps    []string

	Indexer
}

func (*Domain) GetId

func (d *Domain) GetId() string

func (Domain) GetName

func (d Domain) GetName() string

func (*Domain) IndexValue

func (d *Domain) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Domain) SetId

func (d *Domain) SetId(id string)

type Function

type Function struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Type        string
	Local       bool
	Channel     string
	Protocol    string `mapstructure:"service"`
	Command     string
	Method      string
	Domains     []string
	Paths       []string
	Source      string
	Timeout     uint64
	Memory      uint64
	Call        string
	Secure      bool
	SmartOps    []string

	Wasm
}

func (*Function) BasicPath

func (f *Function) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Function) GetId

func (f *Function) GetId() string

func (Function) GetName

func (f Function) GetName() string

func (*Function) HttpPath

func (f *Function) HttpPath(fqdn string) (*common.TnsPath, error)

func (*Function) IndexValue

func (f *Function) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Function) ModuleName

func (f *Function) ModuleName() string

func (*Function) ServicesPath

func (f *Function) ServicesPath(project, app, serviceId string) (*common.TnsPath, error)

func (*Function) SetId

func (f *Function) SetId(id string)

func (*Function) WasmModulePath

func (f *Function) WasmModulePath(project, app string) (*common.TnsPath, error)

type Indexer

type Indexer interface {
	SimpleIface
	IndexValue(branch, project, app string) (*common.TnsPath, error)
}

type Library

type Library struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Path        string
	Branch      string
	Provider    string
	RepoID      string `mapstructure:"repository-id"`
	RepoName    string `mapstructure:"repository-name"`
	SmartOps    []string

	Wasm
}

func (*Library) BasicPath

func (l *Library) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Library) GetId

func (l *Library) GetId() string

func (Library) GetName

func (l Library) GetName() string

func (*Library) IndexValue

func (l *Library) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Library) ModuleName

func (l *Library) ModuleName() string

func (*Library) NameIndex

func (l *Library) NameIndex() *common.TnsPath

func (*Library) SetId

func (l *Library) SetId(id string)

func (*Library) WasmModulePath

func (l *Library) WasmModulePath(project, app string) (*common.TnsPath, error)

type Messaging

type Messaging struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Local       bool
	Match       string
	Regex       bool
	MQTT        bool
	WebSocket   bool `mapstructure:"webSocket"`
	SmartOps    []string

	Basic
	Wasm
}

func (*Messaging) BasicPath

func (m *Messaging) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Messaging) EmptyPath

func (m *Messaging) EmptyPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Messaging) GetId

func (m *Messaging) GetId() string

func (Messaging) GetName

func (m Messaging) GetName() string

func (*Messaging) IndexValue

func (m *Messaging) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Messaging) SetId

func (m *Messaging) SetId(id string)

func (*Messaging) WebSocketHashPath

func (m *Messaging) WebSocketHashPath(project, app string) (*common.TnsPath, error)

func (*Messaging) WebSocketPath

func (m *Messaging) WebSocketPath(hash string) (*common.TnsPath, error)

type Service

type Service struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Protocol    string
	SmartOps    []string

	Indexer
}

func (*Service) EmptyPath

func (s *Service) EmptyPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Service) GetId

func (s *Service) GetId() string

func (Service) GetName

func (s Service) GetName() string

func (*Service) IndexValue

func (s *Service) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Service) SetId

func (s *Service) SetId(id string)

type Simple

type Simple struct{}

func (Simple) BasicPath

func (Simple) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (Simple) GetId

func (Simple) GetId() string

func (Simple) GetName

func (Simple) GetName() string

func (Simple) SetId

func (Simple) SetId(string)

type SimpleIface

type SimpleIface interface {
	GetName() string
	GetId() string
	SetId(string)
}

type SmartOp

type SmartOp struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Source      string
	Timeout     uint64
	Memory      uint64
	Call        string
	SmartOps    []string

	Wasm
}

func (*SmartOp) BasicPath

func (s *SmartOp) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*SmartOp) GetId

func (s *SmartOp) GetId() string

func (SmartOp) GetName

func (s SmartOp) GetName() string

func (*SmartOp) IndexValue

func (s *SmartOp) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*SmartOp) ModuleName

func (s *SmartOp) ModuleName() string

func (*SmartOp) SetId

func (s *SmartOp) SetId(id string)

func (*SmartOp) WasmModulePath

func (s *SmartOp) WasmModulePath(project, app string) (*common.TnsPath, error)

type Storage

type Storage struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Type        string
	Match       string
	Regex       bool `mapstructure:"useRegex"`
	Public      bool
	Versioning  bool
	Ttl         uint64
	Size        uint64
	SmartOps    []string

	Basic
	Indexer
}

func (*Storage) BasicPath

func (s *Storage) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Storage) GetId

func (s *Storage) GetId() string

func (Storage) GetName

func (s Storage) GetName() string

func (*Storage) IndexPath

func (s *Storage) IndexPath(project, app string) *common.TnsPath

func (*Storage) IndexValue

func (s *Storage) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Storage) SetId

func (s *Storage) SetId(id string)

type Structure

type Structure interface {
	*Application |
		*Database |
		*Domain |
		*Function |
		*Library |
		*Messaging |
		*Service |
		*SmartOp |
		*Storage |
		*Website |

		*Simple

	SimpleIface
}

type Wasm

type Wasm interface {
	Basic
	Indexer
	WasmModulePath(project, app string) (*common.TnsPath, error)
	ModuleName() string
}

type Website

type Website struct {
	Id          string
	Name        string
	Description string
	Tags        []string
	Domains     []string
	Paths       []string
	Branch      string
	Provider    string
	RepoID      string `mapstructure:"repository-id"`
	RepoName    string `mapstructure:"repository-name"`
	SmartOps    []string

	Basic
	Wasm
}

func (*Website) BasicPath

func (w *Website) BasicPath(branch, commit, project, app string) (*common.TnsPath, error)

func (*Website) GetId

func (w *Website) GetId() string

func (Website) GetName

func (w Website) GetName() string

func (*Website) HttpPath

func (w *Website) HttpPath(fqdn string) (*common.TnsPath, error)

func (*Website) IndexValue

func (w *Website) IndexValue(branch, project, app string) (*common.TnsPath, error)

func (*Website) ModuleName added in v1.2.0

func (w *Website) ModuleName() string

func (*Website) SetId

func (w *Website) SetId(id string)

func (*Website) WasmModulePath

func (w *Website) WasmModulePath(project, app string) (*common.TnsPath, error)

Jump to

Keyboard shortcuts

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