checktypes

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package checktypes provides utilities for working with checktypes and chektype catalogs.

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedCatalog = errors.New("malformed catalog")

ErrMalformedCatalog is returned by NewCatalog when the format of the retrieved catalog is not valid.

Functions

func Accepts

func Accepts(ct checkcatalog.Checktype, at types.AssetType) bool

Accepts reports whether the specified checktype accepts an asset type.

Types

type Catalog

type Catalog map[string]checkcatalog.Checktype

Catalog represents a collection of Vulcan checktypes.

func NewCatalog

func NewCatalog(urls []string) (Catalog, error)

NewCatalog retrieves the specified checktype catalogs and consolidates them in a single catalog with all the checktypes indexed by name. If a checktype is duplicated it is overridden with the last one.

Jump to

Keyboard shortcuts

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