rules

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRule

func AddRule(rule validations.Rule)

AddRule registers a rule with the default list of rules.

Types

type RuleList

type RuleList map[commands.DockerCommand]*[]validations.Rule

RuleList is a collection of commands.DockerCommand(s) and their rules.

func DefaultRules

func DefaultRules() RuleList

DefaultRules returns the underlying collect of default rules.

func (RuleList) AddRule

func (r RuleList) AddRule(rule validations.Rule)

AddRule associates the provided Rule with this RuleList.

Jump to

Keyboard shortcuts

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