requirements

package
v1.16.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 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 logger.Interface, 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