dpkgdeb

package
v0.0.0-...-139d573 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag    feature.Tag = "local-deb-info"
	Bucket string      = "local-deb-info"
)

Variables

View Source
var (
	RxDpkgDebInfoLine = regexp.MustCompile(`^\s*([-_a-zA-Z0-9]+?):\s*(.+?)\s*$`)
	RxDpkgDebInfoDesc = regexp.MustCompile(`(?ms)^\s*Description:\s*(.+?)$(.+?)\z`)
)
View Source
var (
	DefaultCacheControl = "max-age=604800, must-revalidate"
)

Functions

func DecomposeDpkgDebInfo

func DecomposeDpkgDebInfo(parsed map[string]string) (name, summary, description, section, version, homepage string)

func EscapeQuotes

func EscapeQuotes(input string) (output string)

func MakeLongDescriptionParagraphs

func MakeLongDescriptionParagraphs(input string) (output string)

func MakePackageFields

func MakePackageFields(parsed map[string]string, order []string) (output string)

func ParseDpkgDebInfoOutput

func ParseDpkgDebInfoOutput(output string) (parsed map[string]string, lines []string, order []string)

Types

type CFeature

type CFeature struct {
	feature.CFeature
	uses_actions.CUsesActions
	// contains filtered or unexported fields
}

func (*CFeature) Build

func (f *CFeature) Build(_ feature.Buildable) (err error)

func (*CFeature) FindPage

func (f *CFeature) FindPage(r *http.Request, tag language.Tag, url string) (p feature.Page)

func (*CFeature) FindRedirection

func (f *CFeature) FindRedirection(path string) (p feature.Page)

func (*CFeature) FindTranslationUrls

func (f *CFeature) FindTranslationUrls(url string) (pages map[language.Tag]string)

func (*CFeature) FindTranslations

func (f *CFeature) FindTranslations(path string) (found []feature.Page)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) LookupPrefixed

func (f *CFeature) LookupPrefixed(path string) (pages []feature.Page)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) MountPath

func (f *CFeature) MountPath(mount, path string) MakeFeature

func (*CFeature) ServePath

func (f *CFeature) ServePath(path string, _ feature.System, w http.ResponseWriter, r *http.Request) (err error)

func (*CFeature) SetCacheControl

func (f *CFeature) SetCacheControl(values string) MakeFeature

func (*CFeature) Setup

func (f *CFeature) Setup(enjin feature.Internals)

func (*CFeature) Startup

func (f *CFeature) Startup(ctx *cli.Context) (err error)

func (*CFeature) Use

func (*CFeature) UserActions

func (f *CFeature) UserActions() (actions feature.Actions)

type MakeFeature

type MakeFeature interface {
	MountPath(mount, path string) MakeFeature
	SetCacheControl(values string) MakeFeature

	Make() Feature
}

func New

func New() MakeFeature

func NewTagged

func NewTagged(tag feature.Tag) MakeFeature

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL