nirvash/archetype/adapter.go

19 lines
522 B
Go
Raw Normal View History

package archetype
type Adapter interface {
Init(cfg *Config)
2022-05-29 06:26:36 +00:00
Name() string
EditableSlugs() bool
BuildOptions() []string
2022-05-29 06:26:36 +00:00
GetConfig(key string) (interface{}, error)
SetConfig(key string, value interface{}) error
ListPages() map[string]string
GetPage(string) (Page, error)
2022-05-29 06:26:36 +00:00
FormatPage(string) string
FormattingHelp() string
2022-06-05 04:34:20 +00:00
CreatePage(slug, title, content string) error
SavePage(oldSlug, newSlug, title, content string) error
DeletePage(slug string) error
2022-06-05 15:56:52 +00:00
Build(buildOptions map[string]string) (bool, string)
2022-05-29 06:26:36 +00:00
}