pbuilder

package
v0.0.0-...-b4342d1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiBuilder

func NewApiBuilder(data Data) *apiBuilder

func NewFunctionBuilder

func NewFunctionBuilder(data Data) *functionBuilder

func NewProjectBuilder

func NewProjectBuilder(data Data) *projectBuilder

func NewServiceBuilder

func NewServiceBuilder(data Data) *serviceBuilder

func NewTableBuilder

func NewTableBuilder(data Data) *tableBuilder

Types

type Api

type Api struct {
	Service Service
	Methods []ApiMethod
}

func (*Api) String

func (a *Api) String() string

type ApiMethod

type ApiMethod struct {
	Function Function
	Method   string
}

func (*ApiMethod) String

func (a *ApiMethod) String() string

type Data

type Data struct {
	DataDir         string
	ServicesDir     string
	FunctionDataDir string
}
var DefaultData Data

func NewData

func NewData(basePath string) Data

type Function

type Function struct {
	Name       string
	Service    string
	SourcePath string
}

func (Function) String

func (f Function) String() string

type Project

type Project struct {
	Name     string
	Services []Service
	Apis     []Api
}

func (Project) String

func (p Project) String() string

type Service

type Service struct {
	Name       string
	SourcePath string
	Functions  []Function
	Tables     []Table
}

func (Service) String

func (s Service) String() string

type Table

type Table struct {
	Name        string
	Service     Service
	Permissions []TableFunctionPermision
}

func (Table) String

func (t Table) String() string

type TableFunctionPermision

type TableFunctionPermision struct {
	Function   Function
	Permisions []string
}

func (TableFunctionPermision) String

func (t TableFunctionPermision) String() string

Jump to

Keyboard shortcuts

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