Documentation ¶
Overview ¶
Package kinitq provides the KInit quality inspection kit.
Index ¶
- type Inspector
- func (i *Inspector) Ignore(t reflect.Type) error
- func (i *Inspector) Inspect(ctr *kinit.Container, opt *Options) error
- func (i *Inspector) MustIgnore(t reflect.Type)
- func (i *Inspector) MustInspect(ctr *kinit.Container, opt *Options)
- func (i *Inspector) MustRequire(t reflect.Type)
- func (i *Inspector) Require(t reflect.Type) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inspector ¶
type Inspector struct {
// contains filtered or unexported fields
}
Inspector represents a container inspector.
func (*Inspector) Inspect ¶
Inspect inspects the given container for the absence of cyclic and unsatisfied dependencies.
func (*Inspector) MustIgnore ¶
MustIgnore us a variant of the Ignore that panics on error.
func (*Inspector) MustInspect ¶
MustInspect is a variant of the Inspect that panics on error.
func (*Inspector) MustRequire ¶
MustRequire us a variant of the Require that panics on error.
type Options ¶
type Options struct { // InspectOnlyRequired specifies whether to inspect only required types // skipping all constructors and processors unnecessary for their satisfaction. InspectOnlyRequired bool // AllowIrrelevantProcessors specifies whether to suppress errors indicating // the presence of processors for types without constructors. // // This option only applies if the InspectOnlyRequired is false. AllowIrrelevantProcessors bool }
Options represents inspection options.
Click to show internal directories.
Click to hide internal directories.