mirror of
https://hacklab.nilfm.cc/nirvash
synced 2024-10-22 14:01:49 +00:00
23 lines
580 B
Go
23 lines
580 B
Go
package archetype
|
|
|
|
type BuildStatus struct {
|
|
Success bool
|
|
Message string
|
|
}
|
|
|
|
type Adapter interface {
|
|
Init(cfg *Config)
|
|
Name() string
|
|
EditableSlugs() bool
|
|
BuildOptions() []string
|
|
GetConfig(key string) (interface{}, error)
|
|
SetConfig(key string, value interface{}) error
|
|
ListPages() map[string]string
|
|
GetPage(string) (Page, error)
|
|
FormatPage(string) string
|
|
FormattingHelp() string
|
|
CreatePage(slug, title, content string) error
|
|
SavePage(oldSlug, newSlug, title, content string) error
|
|
DeletePage(slug string) error
|
|
Build(buildOptions map[string][]string) BuildStatus
|
|
}
|