flufikdeb

package
v0.0.0-...-acfd9b1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

type FileType int32
const (
	Directory FileType = 1 << iota >> 1
	GenericFile
	ConfigFile
)

type FlufikDeb

type FlufikDeb struct {
	FlufikDebMetaData
	Signature FlufikDebSignature
	// contains filtered or unexported fields
}

func NewDeb

func NewDeb(flufikMeta FlufikDebMetaData) (*FlufikDeb, error)

func (*FlufikDeb) AddFile

func (d *FlufikDeb) AddFile(flufikFile FlufikDebFile)

func (*FlufikDeb) AddPostIn

func (d *FlufikDeb) AddPostIn(s string)

func (*FlufikDeb) AddPostUn

func (d *FlufikDeb) AddPostUn(s string)

func (*FlufikDeb) AddPreIn

func (d *FlufikDeb) AddPreIn(s string)

func (*FlufikDeb) AddPreUn

func (d *FlufikDeb) AddPreUn(s string)

func (*FlufikDeb) AddSignatureKey

func (d *FlufikDeb) AddSignatureKey(k string)

func (*FlufikDeb) AddSignatureType

func (d *FlufikDeb) AddSignatureType(t string)

func (*FlufikDeb) Write

func (d *FlufikDeb) Write(w io.Writer) error

type FlufikDebFile

type FlufikDebFile struct {
	Name  string
	Body  []byte
	Mode  uint
	Owner string
	Group string
	MTime time.Time
	Type  FileType
}

type FlufikDebMetaData

type FlufikDebMetaData struct {
	Package,
	Version,
	Release,
	Maintainer,
	Summary,
	Description,
	Section,
	Priority string
	Essential bool
	Architecture,
	Origin,
	Bugs,
	Homepage string
	Tag    []string
	Source string
	Depends,
	PreDepends,
	Recommends,
	Suggests,
	Breaks,
	Conflicts,
	Replaces,
	Provides Relations
}

func (*FlufikDebMetaData) MakeControl

func (flufikMetaData *FlufikDebMetaData) MakeControl() []byte

type FlufikDebSignature

type FlufikDebSignature struct {
	FlufikPackageSignature
	Type string
}

type FlufikPackageSignature

type FlufikPackageSignature struct {
	PgpName string
}

type Relations

type Relations []string

func (*Relations) Set

func (rel *Relations) Set(pkg string) error

Jump to

Keyboard shortcuts

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