Versions in this module Expand all Collapse all v0 v0.1.1 Mar 8, 2023 Changes in this version + func SetVersion(pairs ...string) v0.1.0 Mar 8, 2023 Changes in this version + var Version = "devel" + func Main(stdout io.Writer, stderr io.Writer, argv []string) int + type Builder struct + Compression CompressAlgorithm + Hashes []HashAlgorithm + Root fs.FS + ZeroTime time.Time + func (builder Builder) Build(w io.Writer, manifest *Manifest) error + func (builder Builder) BuildControlTarball(w io.Writer, manifest *Manifest) error + func (builder Builder) BuildDataTarball(w io.Writer, manifest *Manifest) error + type CompressAlgorithm byte + const CompressAuto + const CompressBZIP2 + const CompressGZIP + const CompressNone + const CompressXZ + const CompressZSTD + func (algo *CompressAlgorithm) Parse(input string) error + func (algo *CompressAlgorithm) Set(value string, opt getopt.Option) error + func (algo *CompressAlgorithm) UnmarshalText(input []byte) error + func (algo CompressAlgorithm) GoString() string + func (algo CompressAlgorithm) MarshalText() ([]byte, error) + func (algo CompressAlgorithm) NewWriter(w io.Writer) (io.WriteCloser, error) + func (algo CompressAlgorithm) String() string + func (algo CompressAlgorithm) Suffix() string + type File struct + Bytes *[]byte + Group Owner + IsConf bool + Link *string + MTime time.Time + Major *int64 + Minor *int64 + Name string + Path *string + Perm Perm + Text *string + Type Type + User Owner + func (file *File) Resolve(fileSystem fs.FS) error + func (file File) AsTarHeader() tar.Header + func (file File) Reader(fileSystem fs.FS) (io.ReadCloser, error) + func (file File) Validate() error + type HashAlgorithm byte + const HashMD5 + const HashSHA1 + const HashSHA256 + func (algo *HashAlgorithm) Parse(input string) error + func (algo *HashAlgorithm) Set(value string, opt getopt.Option) error + func (algo *HashAlgorithm) UnmarshalText(input []byte) error + func (algo HashAlgorithm) FileName() string + func (algo HashAlgorithm) GoString() string + func (algo HashAlgorithm) MarshalText() ([]byte, error) + func (algo HashAlgorithm) New() hash.Hash + func (algo HashAlgorithm) String() string + type Manifest struct + Arch string + Breaks string + BuiltUsing string + Conflicts string + Depends string + Enhances string + Essential string + Files []File + HomePage string + ImplicitDirs []string + LongDescription []string + Maintainer string + Package string + PostInstall []string + PostRemove []string + PreDepends string + PreInstall []string + PreRemove []string + Priority string + Recommends string + Section string + ShortDescription string + Suggests string + Version string + func (manifest *Manifest) Resolve(fileSystem fs.FS) error + func (manifest Manifest) ConfFiles() []byte + func (manifest Manifest) ControlFile() []byte + func (manifest Manifest) PostInstallScript() []byte + func (manifest Manifest) PostRemoveScript() []byte + func (manifest Manifest) PreInstallScript() []byte + func (manifest Manifest) PreRemoveScript() []byte + func (manifest Manifest) Validate() error + type Owner struct + ID int + Name string + Type OwnerType + func ID(id int) Owner + func Name(name string) Owner + func (owner *Owner) Parse(input string) error + func (owner *Owner) UnmarshalJSON(input []byte) error + func (owner *Owner) UnmarshalText(input []byte) error + func (owner Owner) Equal(other Owner) bool + func (owner Owner) GoString() string + func (owner Owner) IsZero() bool + func (owner Owner) MarshalJSON() ([]byte, error) + func (owner Owner) MarshalText() ([]byte, error) + func (owner Owner) String() string + type OwnerType byte + const OwnerByID + const OwnerByName + const OwnerUnspecified + type Perm uint16 + func (perm *Perm) Parse(input string) error + func (perm *Perm) UnmarshalJSON(input []byte) error + func (perm *Perm) UnmarshalText(input []byte) error + func (perm Perm) AppendTo(out []byte) []byte + func (perm Perm) GoString() string + func (perm Perm) MarshalText() ([]byte, error) + func (perm Perm) String() string + type Type byte + const TypeAUTO + const TypeBLK + const TypeCHR + const TypeDIR + const TypeFIFO + const TypeLNK + const TypeREG + func (ft *Type) Parse(input string) error + func (ft *Type) UnmarshalText(input []byte) error + func (ft Type) GoString() string + func (ft Type) IsValid() bool + func (ft Type) MarshalText() ([]byte, error) + func (ft Type) String() string