mask

package
v0.40.1-geaaru Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright © 2022-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageMaskFile

type PackageMaskFile struct {
	Description string   `yaml:"description,omitempty" json:"description,omitempty"`
	Enabled     bool     `yaml:"enabled,omitempty" json:"enabled,omitempty"`
	Rules       []string `yaml:"rules" json:"rules"`

	File string `yaml:"-" json:"-"`
	// contains filtered or unexported fields
}

func NewPackageMaskFile

func NewPackageMaskFile(file string) *PackageMaskFile

func NewPackageMaskFileFromData

func NewPackageMaskFileFromData(file string, data []byte) (*PackageMaskFile, error)

func (*PackageMaskFile) BuildMap

func (f *PackageMaskFile) BuildMap() error

func (*PackageMaskFile) Mask

func (f *PackageMaskFile) Mask(repo string, p *gentoo.GentooPackage) (bool, error)

type PackagesMaskManager

type PackagesMaskManager struct {
	Config *cfg.LuetConfig

	Files []*PackageMaskFile
}

func NewPackagesMaskManager

func NewPackagesMaskManager(c *config.LuetConfig) *PackagesMaskManager

func (*PackagesMaskManager) IsMasked

func (m *PackagesMaskManager) IsMasked(repo string, p *gentoo.GentooPackage) (bool, error)

func (*PackagesMaskManager) LoadFiles

func (m *PackagesMaskManager) LoadFiles() error

Jump to

Keyboard shortcuts

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