Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPatternsGitRepoFolder = "patterns"
View Source
const DefaultPatternsGitRepoUrl = "https://github.com/danielmiessler/fabric.git"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Defaults ¶
type Defaults struct { *plugins.PluginBase Vendor *plugins.Setting Model *plugins.SetupQuestion GetVendorsModels func() (*ai.VendorsModels, error) }
func NeeDefaults ¶
func NeeDefaults(getVendorsModels func() (*ai.VendorsModels, error)) (ret *Defaults)
type PatternsLoader ¶
type PatternsLoader struct { *plugins.PluginBase Patterns *fsdb.PatternsEntity DefaultGitRepoUrl *plugins.SetupQuestion DefaultFolder *plugins.SetupQuestion // contains filtered or unexported fields }
func NewPatternsLoader ¶
func NewPatternsLoader(patterns *fsdb.PatternsEntity) (ret *PatternsLoader)
func (*PatternsLoader) IsConfigured ¶
func (o *PatternsLoader) IsConfigured() (ret bool)
func (*PatternsLoader) PersistPatterns ¶
func (o *PatternsLoader) PersistPatterns() (err error)
PersistPatterns copies custom patterns to the updated patterns directory
func (*PatternsLoader) PopulateDB ¶
func (o *PatternsLoader) PopulateDB() (err error)
PopulateDB downloads patterns from the internet and populates the patterns folder
func (*PatternsLoader) Setup ¶
func (o *PatternsLoader) Setup() (err error)
Click to show internal directories.
Click to hide internal directories.