quadlet

package
v0.0.0-...-3483356 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ValidatorName = "quadlet"

Variables

View Source
var (
	AmbiguousImageName = V.NewErrorCategory("ambiguous-image-name", V.LevelWarning)
)
View Source
var ConflictsWithNewUserMappingKeys = R.ConflictsWith(UserNS, UIDMap, GIDMap, SubUIDMap, SubGIDMap)
View Source
var NetworkFormat = R.Format{
	Name: "Network", ValueSeparator: ":", OptionsSeparator: ",",
	ValidateOptions: func(value string, options map[string]string) error {
		if strings.HasSuffix(value, M.UnitTypeContainer.Ext) && len(options) > 0 {
			return fmt.Errorf("'%s' is invalid because extra options are not supported when "+
				"joining another container's network", value)
		}
		return nil
	},
}

Functions

func ImageNotAmbiguous

func ImageNotAmbiguous(validator V.Validator, unit M.UnitFile, field M.Field) []V.ValidationError

func Validator

func Validator(units []model.UnitFile, options V.Options) V.Validator

func ValidatorWithFields

func ValidatorWithFields(fields model.FieldsMap, units []model.UnitFile, options V.Options) V.Validator

Types

This section is empty.

Jump to

Keyboard shortcuts

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