arch

package
v0.0.0-...-2bc72fa Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package arch implements nfpm.Packager providing bindings for Arch Linux packages.

Index

Constants

This section is empty.

Variables

View Source
var Default = ArchLinux{}

Default ArchLinux packager. nolint: gochecknoglobals

View Source
var ErrInvalidPkgName = errors.New("archlinux: package names may only contain alphanumeric characters or one of ., _, +, or -, and may not start with hyphen or dot")

Functions

This section is empty.

Types

type ArchLinux

type ArchLinux struct{}

func (ArchLinux) ConventionalExtension

func (ArchLinux) ConventionalExtension() string

ConventionalExtension returns the file name conventionally used for Arch Linux packages

func (ArchLinux) ConventionalFileName

func (ArchLinux) ConventionalFileName(info *nfpm.Info) string

ConventionalFileName returns a file name for a package conforming to Arch Linux package naming guidelines. See: https://wiki.archlinux.org/title/Arch_package_guidelines#Package_naming

func (ArchLinux) Package

func (ArchLinux) Package(info *nfpm.Info, w io.Writer) error

Package writes a new archlinux package to the given writer using the given info.

type MtreeEntry

type MtreeEntry struct {
	LinkSource  string
	Destination string
	Time        int64
	Mode        int64
	Size        int64
	Type        string
	MD5         []byte
	SHA256      []byte
}

func (*MtreeEntry) WriteTo

func (me *MtreeEntry) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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