requirements

package
v1.12.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ARCH   = "arch"
	BRAND  = "brand"
	CUDA   = "cuda"
	DRIVER = "driver"
)

A list of supported requirements / properties

Variables

This section is empty.

Functions

This section is empty.

Types

type Requirements

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

Requirements represents a collection of requirements that can be compared to properties

func New

func New(logger *logrus.Logger, requirements []string) *Requirements

New creates a new set of requirements

func (*Requirements) AddStringProperty

func (r *Requirements) AddStringProperty(name string, value string)

AddStringProperty adds the specified property (name, value pair) to the requirements

func (*Requirements) AddVersionProperty

func (r *Requirements) AddVersionProperty(name string, value string)

AddVersionProperty adds the specified property (name, value pair) to the requirements

func (Requirements) Assert

func (r Requirements) Assert() error

Assert checks the specified requirements

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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