capabilities

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 3 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities map[string]interface{}

Capabilities - represents of capabilities set.

type Comparator

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

func NewComparator

func NewComparator() *Comparator

NewComparator - constructor of comparator.

func (*Comparator) Compare

func (c *Comparator) Compare(desired Capabilities, available Capabilities) bool

Compare - compare two set of capabilities.

func (*Comparator) Register

func (c *Comparator) Register(caps Capabilities)

Register - registers capabilities for filtration.

type ComparatorInterface

type ComparatorInterface interface {
	Compare(desired Capabilities, available Capabilities) bool
	Register(Capabilities)
}

ComparatorInterface - interface of capabilities comparator.

type ComparatorMock

type ComparatorMock struct {
	mock.Mock
}

ComparatorMock - mock of comparator.

func (*ComparatorMock) Compare

func (c *ComparatorMock) Compare(desired Capabilities, available Capabilities) bool

ComparatorMock - mock of compare capabilities.

func (*ComparatorMock) Register

func (c *ComparatorMock) Register(caps Capabilities)

Register - mock of register capabilities for filtration.

Jump to

Keyboard shortcuts

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