structureSpec

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 0 Imported by: 61

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

type Database

type Database struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Match string
	Regex bool `mapstructure:"useRegex"`
	Path  string
	Local bool
	Key   string
	Min   int
	Max   int
	Size  uint64

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Database) GetName

func (d Database) GetName() string

func (*Database) SetId

func (d *Database) SetId(id string)

type Domain

type Domain struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Fqdn     string
	CertType string `mapstructure:"cert-type"`
	CertFile string `mapstructure:"cert-file"`
	KeyFile  string `mapstructure:"key-file"`

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Domain) GetName

func (d Domain) GetName() string

func (*Domain) SetId

func (d *Domain) SetId(id string)

type Function

type Function struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Type     string
	Timeout  uint64
	Memory   uint64
	Call     string
	Source   string
	Domains  []string
	Method   string
	Paths    []string
	Secure   bool
	Command  string
	Channel  string
	Local    bool
	Protocol string `mapstructure:"service"`
	SmartOps []string
}

func (Function) GetName

func (f Function) GetName() string

func (*Function) SetId

func (f *Function) SetId(id string)

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"`

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Library) GetName

func (l Library) GetName() string

func (*Library) SetId

func (l *Library) SetId(id string)

type Messaging

type Messaging struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Local     bool
	Match     string
	Regex     bool
	MQTT      bool
	WebSocket bool

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Messaging) GetName

func (m Messaging) GetName() string

func (*Messaging) SetId

func (m *Messaging) SetId(id string)

type Service

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

	Protocol string

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Service) GetName

func (s Service) GetName() string

func (*Service) SetId

func (s *Service) SetId(id string)

type Simple

type Simple struct {
}

func (Simple) GetName

func (Simple) GetName() string

func (Simple) SetId

func (Simple) SetId(string)

type SmartOp

type SmartOp struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Timeout uint64
	Memory  uint64
	Call    string
	Source  string

	// noset, this is parsed from the tags
	SmartOps []string
}

func (SmartOp) GetName

func (s SmartOp) GetName() string

func (*SmartOp) SetId

func (s *SmartOp) SetId(id string)

type Storage

type Storage struct {
	Id          string
	Name        string
	Description string
	Tags        []string

	Match      string
	Regex      bool `mapstructure:"useRegex"`
	Type       string
	Public     bool
	Size       uint64
	Ttl        uint64
	Versioning bool

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Storage) GetName

func (s Storage) GetName() string

func (*Storage) SetId

func (s *Storage) SetId(id string)

type Structure

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

		*Simple

	GetName() string
	SetId(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"`

	// noset, this is parsed from the tags
	SmartOps []string
}

func (Website) GetName

func (w Website) GetName() string

func (*Website) SetId

func (f *Website) SetId(id string)

Jump to

Keyboard shortcuts

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