checks

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackagesToUpdate

func GetPackagesToUpdate(files []string) []string

func SetupUpdate

func SetupUpdate(ctx context.Context) (*update.Options, lint.EvalRuleErrors)

SetupUpdate will create the options needed to call wolfictl update functions

Types

type CheckUpdateOptions

type CheckUpdateOptions struct {
	Dir             string
	OverrideVersion string
	Logger          *log.Logger
}

func (CheckUpdateOptions) CheckUpdates

func (o CheckUpdateOptions) CheckUpdates(ctx context.Context, files []string) error

CheckUpdates will use the melange update config to get the latest versions and validate fetch and git-checkout pipelines

type DiffOptions

type DiffOptions struct {
	Client              *http.Client
	Logger              *log.Logger
	PackageListFilename string
	Dir                 string
	PackagesDir         string
	ApkIndexURL         string
	ExistingPackages    map[string]*goapk.Package
}

func NewDiff

func NewDiff() *DiffOptions

func (*DiffOptions) Diff

func (o *DiffOptions) Diff() error

Diff compare a newly built apk with the latest in an APK repository, writing the differences to a file diff.log

type NewApkPackage

type NewApkPackage struct {
	Name    string
	Arch    string
	Epoch   string
	Version string
}

type SoNameOptions

type SoNameOptions struct {
	Client              *http.Client
	Logger              *log.Logger
	PackageListFilename string
	Dir                 string
	PackagesDir         string
	PackageNames        []string
	ApkIndexURL         string
	ExistingPackages    map[string]*goapk.Package
}

func NewSoName

func NewSoName() *SoNameOptions

func (*SoNameOptions) CheckSoName

func (o *SoNameOptions) CheckSoName() error

CheckSoName will check if a new APK contains a foo.so file, then compares it with the latest version in an APKINDEX to check if there are differences.

Jump to

Keyboard shortcuts

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