validation

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package validation provides validation options for the config Validate method.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Options)

Option represents an additional validation parameter for the config Validate method.

func WithLocal

func WithLocal() Option

WithLocal enables local flag.

func WithStrict

func WithStrict() Option

WithStrict enables strict flag.

type Options

type Options struct {
	// Local should disable part of the validation flow which won't work on the host machine.
	Local bool
	// Strict mode returns warnings as errors.
	Strict bool
}

Options additional validation parameters for the config Validate method.

func NewOptions

func NewOptions(options ...Option) *Options

NewOptions creates new validation options.

type RuntimeMode

type RuntimeMode interface {
	fmt.Stringer
	RequiresInstall() bool
	InContainer() bool
}

RuntimeMode abstracts current runtime mode.

Jump to

Keyboard shortcuts

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