Documentation
¶
Index ¶
- type TemplateContext
- func (t *TemplateContext) Acronyms() string
- func (t *TemplateContext) AuditData() string
- func (t *TemplateContext) AuditRecordData() string
- func (t *TemplateContext) BuildAndroid() bool
- func (t *TemplateContext) BuildDesktop() bool
- func (t *TemplateContext) BuildIOS() bool
- func (t *TemplateContext) BuildMobile() bool
- func (t *TemplateContext) BuildNotarize() bool
- func (t *TemplateContext) BuildWASM() bool
- func (t *TemplateContext) CIContent() string
- func (t *TemplateContext) CleanKey() string
- func (t *TemplateContext) CleanName() string
- func (t *TemplateContext) ConfigVarsContent() string
- func (t *TemplateContext) CoreStruct() string
- func (t *TemplateContext) DangerousOK() bool
- func (t *TemplateContext) DatabaseUIOpts() (bool, bool, bool)
- func (t *TemplateContext) DatabaseUIReadOnly() bool
- func (t *TemplateContext) DatabaseUISQLEditor() bool
- func (t *TemplateContext) DatabaseUISaveUser() bool
- func (t *TemplateContext) ExtraFilesContent() string
- func (t *TemplateContext) ExtraFilesDocker() string
- func (t *TemplateContext) GoBinaryContent() string
- func (t *TemplateContext) GoBinarySafe() string
- func (t *TemplateContext) GoMajorVersionSafe() string
- func (t *TemplateContext) GoVersionSafe() string
- func (t *TemplateContext) HasAccount() bool
- func (t *TemplateContext) HasExport() bool
- func (t *TemplateContext) HasModule(key string) bool
- func (t *TemplateContext) HasModules(keys ...string) bool
- func (t *TemplateContext) HasSlack() bool
- func (t *TemplateContext) HasUser() bool
- func (t *TemplateContext) IgnoredQuoted() string
- func (t *TemplateContext) IgnoredSetting() string
- func (t *TemplateContext) IsArmAndMips() bool
- func (t *TemplateContext) IsNotarized() bool
- func (t *TemplateContext) KeyProper() string
- func (t *TemplateContext) ModuleMarkdown() string
- func (t *TemplateContext) MySQL() bool
- func (t *TemplateContext) NameCompressed() string
- func (t *TemplateContext) NotebookPort() int
- func (t *TemplateContext) Placeholder(idx int) string
- func (t *TemplateContext) PortIncremented(i int) int
- func (t *TemplateContext) PostgreSQL() bool
- func (t *TemplateContext) Private() bool
- func (t *TemplateContext) Public() bool
- func (t *TemplateContext) SQLServer() bool
- func (t *TemplateContext) SQLServerOnly() bool
- func (t *TemplateContext) SQLite() bool
- func (t *TemplateContext) ServicesConstructor() string
- func (t *TemplateContext) ServicesDefinition() string
- func (t *TemplateContext) ServicesImports() string
- func (t *TemplateContext) SourceTrimmed() string
- func (t *TemplateContext) Title() string
- func (t *TemplateContext) TypeScriptProjectContent() string
- func (t *TemplateContext) TypeUUID() string
- func (t *TemplateContext) UsesLib() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateContext ¶
type TemplateContext struct {
Key string `json:"key"`
Name string `json:"name,omitempty"`
Exec string `json:"exec,omitempty"`
Version string `json:"version"`
Package string `json:"package,omitempty"`
Args string `json:"args,omitempty"`
Port int `json:"port,omitempty"`
ConfigVars util.KeyTypeDescs `json:"configVars,omitempty"`
PortOffsets map[string]int `json:"portOffsets,omitempty"`
Ignore []string `json:"ignore,omitempty"`
IgnoreGrep string `json:"ignoreGrep,omitempty"`
Modules []string `json:"modules,omitempty"`
Tags []string `json:"tags,omitempty"`
ExportArgs *model.Args `json:"exportArgs,omitempty"`
Config util.ValueMap `json:"config,omitempty"`
Info *project.Info `json:"info,omitempty"`
Build *project.Build `json:"build,omitempty"`
Theme *theme.Theme `json:"theme,omitempty"`
DatabaseEngine string `json:"databaseEngine,omitempty"`
Linebreak string `json:"-"`
}
func ToTemplateContext ¶
func ToTemplateContext(p *project.Project, configVars util.KeyTypeDescs, portOffsets map[string]int, linebreak string) *TemplateContext
func (*TemplateContext) Acronyms ¶
func (t *TemplateContext) Acronyms() string
func (*TemplateContext) AuditData ¶
func (t *TemplateContext) AuditData() string
func (*TemplateContext) AuditRecordData ¶
func (t *TemplateContext) AuditRecordData() string
func (*TemplateContext) BuildAndroid ¶
func (t *TemplateContext) BuildAndroid() bool
func (*TemplateContext) BuildDesktop ¶
func (t *TemplateContext) BuildDesktop() bool
func (*TemplateContext) BuildIOS ¶
func (t *TemplateContext) BuildIOS() bool
func (*TemplateContext) BuildMobile ¶
func (t *TemplateContext) BuildMobile() bool
func (*TemplateContext) BuildNotarize ¶
func (t *TemplateContext) BuildNotarize() bool
func (*TemplateContext) BuildWASM ¶
func (t *TemplateContext) BuildWASM() bool
func (*TemplateContext) CIContent ¶
func (t *TemplateContext) CIContent() string
func (*TemplateContext) CleanKey ¶
func (t *TemplateContext) CleanKey() string
func (*TemplateContext) CleanName ¶ added in v1.5.23
func (t *TemplateContext) CleanName() string
func (*TemplateContext) ConfigVarsContent ¶
func (t *TemplateContext) ConfigVarsContent() string
func (*TemplateContext) CoreStruct ¶
func (t *TemplateContext) CoreStruct() string
func (*TemplateContext) DangerousOK ¶
func (t *TemplateContext) DangerousOK() bool
func (*TemplateContext) DatabaseUIOpts ¶
func (t *TemplateContext) DatabaseUIOpts() (bool, bool, bool)
func (*TemplateContext) DatabaseUIReadOnly ¶
func (t *TemplateContext) DatabaseUIReadOnly() bool
func (*TemplateContext) DatabaseUISQLEditor ¶
func (t *TemplateContext) DatabaseUISQLEditor() bool
func (*TemplateContext) DatabaseUISaveUser ¶
func (t *TemplateContext) DatabaseUISaveUser() bool
func (*TemplateContext) ExtraFilesContent ¶
func (t *TemplateContext) ExtraFilesContent() string
func (*TemplateContext) ExtraFilesDocker ¶
func (t *TemplateContext) ExtraFilesDocker() string
func (*TemplateContext) GoBinaryContent ¶
func (t *TemplateContext) GoBinaryContent() string
func (*TemplateContext) GoBinarySafe ¶
func (t *TemplateContext) GoBinarySafe() string
func (*TemplateContext) GoMajorVersionSafe ¶
func (t *TemplateContext) GoMajorVersionSafe() string
func (*TemplateContext) GoVersionSafe ¶
func (t *TemplateContext) GoVersionSafe() string
func (*TemplateContext) HasAccount ¶
func (t *TemplateContext) HasAccount() bool
func (*TemplateContext) HasExport ¶
func (t *TemplateContext) HasExport() bool
func (*TemplateContext) HasModule ¶
func (t *TemplateContext) HasModule(key string) bool
func (*TemplateContext) HasModules ¶
func (t *TemplateContext) HasModules(keys ...string) bool
func (*TemplateContext) HasSlack ¶
func (t *TemplateContext) HasSlack() bool
func (*TemplateContext) HasUser ¶
func (t *TemplateContext) HasUser() bool
func (*TemplateContext) IgnoredQuoted ¶
func (t *TemplateContext) IgnoredQuoted() string
func (*TemplateContext) IgnoredSetting ¶
func (t *TemplateContext) IgnoredSetting() string
func (*TemplateContext) IsArmAndMips ¶
func (t *TemplateContext) IsArmAndMips() bool
func (*TemplateContext) IsNotarized ¶
func (t *TemplateContext) IsNotarized() bool
func (*TemplateContext) KeyProper ¶
func (t *TemplateContext) KeyProper() string
func (*TemplateContext) ModuleMarkdown ¶
func (t *TemplateContext) ModuleMarkdown() string
func (*TemplateContext) MySQL ¶
func (t *TemplateContext) MySQL() bool
func (*TemplateContext) NameCompressed ¶
func (t *TemplateContext) NameCompressed() string
func (*TemplateContext) NotebookPort ¶
func (t *TemplateContext) NotebookPort() int
func (*TemplateContext) Placeholder ¶
func (t *TemplateContext) Placeholder(idx int) string
func (*TemplateContext) PortIncremented ¶
func (t *TemplateContext) PortIncremented(i int) int
func (*TemplateContext) PostgreSQL ¶
func (t *TemplateContext) PostgreSQL() bool
func (*TemplateContext) Private ¶
func (t *TemplateContext) Private() bool
func (*TemplateContext) Public ¶
func (t *TemplateContext) Public() bool
func (*TemplateContext) SQLServer ¶
func (t *TemplateContext) SQLServer() bool
func (*TemplateContext) SQLServerOnly ¶
func (t *TemplateContext) SQLServerOnly() bool
func (*TemplateContext) SQLite ¶
func (t *TemplateContext) SQLite() bool
func (*TemplateContext) ServicesConstructor ¶
func (t *TemplateContext) ServicesConstructor() string
func (*TemplateContext) ServicesDefinition ¶
func (t *TemplateContext) ServicesDefinition() string
func (*TemplateContext) ServicesImports ¶
func (t *TemplateContext) ServicesImports() string
func (*TemplateContext) SourceTrimmed ¶
func (t *TemplateContext) SourceTrimmed() string
func (*TemplateContext) Title ¶
func (t *TemplateContext) Title() string
func (*TemplateContext) TypeScriptProjectContent ¶
func (t *TemplateContext) TypeScriptProjectContent() string
func (*TemplateContext) TypeUUID ¶
func (t *TemplateContext) TypeUUID() string
func (*TemplateContext) UsesLib ¶
func (t *TemplateContext) UsesLib() bool
Click to show internal directories.
Click to hide internal directories.