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
Click to show internal directories.
Click to hide internal directories.