check

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package check performs checks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

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

Check runs a series of checks

func New

func New(opts *Options) *Check

New constructor

func (*Check) Init

func (c *Check) Init() error

Init checks to see if an initialization has been performed. This function will print an error message and exit if initialization is needed.

type CheckIface

type CheckIface interface {
	// Init checks to see if an initialization has been performed. This function
	// will print an error message and exit if initialization is needed.
	Init() error
}

CheckIface ...

type Options

type Options struct {
	ConfigPath         string             `validate:"required"`
	ConfigTemplatePath string             `validate:"required"`
	Err                *errs.Handler      `validate:"required"`
	HomeDir            string             `validate:"required"`
	Log                logger.OutputIface `validate:"required"`
	MetadataDir        string             `validate:"required"`
	SQLiteFile         string             `validate:"required"`
	Stderr             io.Writer          `validate:"required"`
	Stdout             io.Writer          `validate:"required"`
	TemplateDir        string             `validate:"required"`
}

Options options for constructor

Jump to

Keyboard shortcuts

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