checker

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Check(pkg.KclPkg) error
}

Checker defines an interface for KclPkg dependencies checkers.

type DepChecker

type DepChecker struct {
	// contains filtered or unexported fields
}

func NewDepChecker

func NewDepChecker(checkers ...Checker) *DepChecker

NewDepChecker creates a new DepChecker with provided checkers.

func (*DepChecker) Check

func (c *DepChecker) Check(kclPkg pkg.KclPkg) error

Check runs all individual checks for a kclPkg.

type IdentChecker

type IdentChecker struct{}

IdentChecker validates the dependencies name in kclPkg.

func (*IdentChecker) Check

func (c *IdentChecker) Check(kclPkg pkg.KclPkg) error

type SumChecker

type SumChecker struct{}

SumChecker validates the dependencies checksum in kclPkg.

func (*SumChecker) Check

func (c *SumChecker) Check(kclPkg pkg.KclPkg) error

type VersionChecker

type VersionChecker struct{}

VersionChecker validates the dependencies version in kclPkg.

func (*VersionChecker) Check

func (c *VersionChecker) Check(kclPkg pkg.KclPkg) error

Jump to

Keyboard shortcuts

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