Documentation ¶
Index ¶
- func GetNamespace(contentType, status string) string
- type CacheIndex
- type Content
- func (c *Content) AllAdminTypeNames() []string
- func (c *Content) AllAdminTypes() map[string]content.Creator
- func (c *Content) AllContentTypeNames() []string
- func (c *Content) AllContentTypes() map[string]content.Creator
- func (c *Content) AllTypes() map[string]content.Creator
- func (c *Content) ApplyDomain(siteId string, domain string) (*valueobject.Domain, bool, error)
- func (c *Content) BuildTarget(contentType, id, status string) (string, error)
- func (c *Content) DeleteContent(contentType, id, status string) error
- func (c *Content) GetContent(contentType, id, status string) ([]byte, error)
- func (c *Content) GetContentCreator(name string) (content.Creator, bool)
- func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
- func (c *Content) GetDeployment(domain *valueobject.Domain, hostName string) (*valueobject.Deployment, error)
- func (c *Content) IsAdminType(name string) bool
- func (c *Content) LoadHugoProject() error
- func (c *Content) Marshal(content any) ([]byte, error)
- func (c *Content) NewContent(contentType string, data url.Values) (string, error)
- func (c *Content) NormalizeString(s string) (string, error)
- func (c *Content) PreviewTarget(contentType, id, status string) (string, string, error)
- func (c *Content) SortContent(contentType string) error
- func (c *Content) Unmarshal(data []byte, content any) error
- func (c *Content) UpdateContent(contentType string, data url.Values) error
- func (c *Content) UpdateContentObject(ci any) error
- type Hugo
- type Search
- func (s *Search) DeleteIndex(id string) error
- func (s *Search) TermQuery(typeName string, keyValues map[string]string, count, offset int) ([]content.Identifier, error)
- func (s *Search) TypeQuery(typeName, query string, count, offset int) ([]content.Identifier, error)
- func (s *Search) UpdateIndex(ns, id string, data []byte) error
- type TypeService
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
Types ¶
type CacheIndex ¶ added in v0.0.12
type Content ¶
type Content struct { UserTypes map[string]content.Creator AdminTypes map[string]content.Creator Repo repository.Repository *Search *Hugo Log loggers.Logger }
func (*Content) AllAdminTypeNames ¶ added in v0.0.5
func (*Content) AllAdminTypes ¶ added in v0.0.5
func (*Content) AllContentTypeNames ¶
func (*Content) ApplyDomain ¶ added in v0.1.0
func (*Content) BuildTarget ¶
func (*Content) DeleteContent ¶
func (*Content) GetContent ¶
func (*Content) GetContentCreator ¶
func (*Content) GetContents ¶
func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
func (*Content) GetDeployment ¶ added in v0.0.5
func (c *Content) GetDeployment(domain *valueobject.Domain, hostName string) (*valueobject.Deployment, error)
func (*Content) IsAdminType ¶ added in v0.0.5
func (*Content) LoadHugoProject ¶
func (*Content) NewContent ¶
func (*Content) PreviewTarget ¶ added in v0.0.5
func (*Content) SortContent ¶
func (*Content) UpdateContent ¶
func (*Content) UpdateContentObject ¶ added in v0.0.5
type Hugo ¶
type Hugo struct { Services content.Services Fs afero.Fs DirService content.DirService Log loggers.Logger // contains filtered or unexported fields }
func (*Hugo) LoadProject ¶
type Search ¶
type Search struct { TypeService TypeService Repo repository.Repository Log loggers.Logger IndicesMap map[string]*CacheIndex // contains filtered or unexported fields }
func (*Search) DeleteIndex ¶
DeleteIndex removes data from a content type's search index at the given identifier
type TypeService ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.