Documentation ¶
Index ¶
- Variables
- func InsertFeatureValues(f Features, domain, feature string, values map[string]string)
- type DomainFeatures
- func (*DomainFeatures) Descriptor() ([]byte, []int)
- func (m *DomainFeatures) Marshal() (dAtA []byte, err error)
- func (m *DomainFeatures) MarshalTo(dAtA []byte) (int, error)
- func (m *DomainFeatures) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DomainFeatures) ProtoMessage()
- func (m *DomainFeatures) Reset()
- func (m *DomainFeatures) Size() (n int)
- func (this *DomainFeatures) String() string
- func (m *DomainFeatures) Unmarshal(dAtA []byte) error
- func (m *DomainFeatures) XXX_DiscardUnknown()
- func (m *DomainFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DomainFeatures) XXX_Merge(src proto.Message)
- func (m *DomainFeatures) XXX_Size() int
- func (m *DomainFeatures) XXX_Unmarshal(b []byte) error
- type Features
- type InstanceFeature
- func (*InstanceFeature) Descriptor() ([]byte, []int)
- func (m *InstanceFeature) Marshal() (dAtA []byte, err error)
- func (m *InstanceFeature) MarshalTo(dAtA []byte) (int, error)
- func (m *InstanceFeature) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InstanceFeature) ProtoMessage()
- func (m *InstanceFeature) Reset()
- func (m *InstanceFeature) Size() (n int)
- func (this *InstanceFeature) String() string
- func (m *InstanceFeature) Unmarshal(dAtA []byte) error
- func (m *InstanceFeature) XXX_DiscardUnknown()
- func (m *InstanceFeature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstanceFeature) XXX_Merge(src proto.Message)
- func (m *InstanceFeature) XXX_Size() int
- func (m *InstanceFeature) XXX_Unmarshal(b []byte) error
- type InstanceFeatureSet
- func (*InstanceFeatureSet) Descriptor() ([]byte, []int)
- func (m *InstanceFeatureSet) Marshal() (dAtA []byte, err error)
- func (m *InstanceFeatureSet) MarshalTo(dAtA []byte) (int, error)
- func (m *InstanceFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InstanceFeatureSet) ProtoMessage()
- func (m *InstanceFeatureSet) Reset()
- func (m *InstanceFeatureSet) Size() (n int)
- func (this *InstanceFeatureSet) String() string
- func (m *InstanceFeatureSet) Unmarshal(dAtA []byte) error
- func (m *InstanceFeatureSet) XXX_DiscardUnknown()
- func (m *InstanceFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstanceFeatureSet) XXX_Merge(src proto.Message)
- func (m *InstanceFeatureSet) XXX_Size() int
- func (m *InstanceFeatureSet) XXX_Unmarshal(b []byte) error
- type KeyFeatureSet
- func (*KeyFeatureSet) Descriptor() ([]byte, []int)
- func (m *KeyFeatureSet) Marshal() (dAtA []byte, err error)
- func (m *KeyFeatureSet) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyFeatureSet) ProtoMessage()
- func (m *KeyFeatureSet) Reset()
- func (m *KeyFeatureSet) Size() (n int)
- func (this *KeyFeatureSet) String() string
- func (m *KeyFeatureSet) Unmarshal(dAtA []byte) error
- func (m *KeyFeatureSet) XXX_DiscardUnknown()
- func (m *KeyFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyFeatureSet) XXX_Merge(src proto.Message)
- func (m *KeyFeatureSet) XXX_Size() int
- func (m *KeyFeatureSet) XXX_Unmarshal(b []byte) error
- type Nil
- func (*Nil) Descriptor() ([]byte, []int)
- func (m *Nil) Marshal() (dAtA []byte, err error)
- func (m *Nil) MarshalTo(dAtA []byte) (int, error)
- func (m *Nil) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Nil) ProtoMessage()
- func (m *Nil) Reset()
- func (m *Nil) Size() (n int)
- func (this *Nil) String() string
- func (m *Nil) Unmarshal(dAtA []byte) error
- func (m *Nil) XXX_DiscardUnknown()
- func (m *Nil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Nil) XXX_Merge(src proto.Message)
- func (m *Nil) XXX_Size() int
- func (m *Nil) XXX_Unmarshal(b []byte) error
- type ValueFeatureSet
- func (*ValueFeatureSet) Descriptor() ([]byte, []int)
- func (m *ValueFeatureSet) Marshal() (dAtA []byte, err error)
- func (m *ValueFeatureSet) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueFeatureSet) ProtoMessage()
- func (m *ValueFeatureSet) Reset()
- func (m *ValueFeatureSet) Size() (n int)
- func (this *ValueFeatureSet) String() string
- func (m *ValueFeatureSet) Unmarshal(dAtA []byte) error
- func (m *ValueFeatureSet) XXX_DiscardUnknown()
- func (m *ValueFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueFeatureSet) XXX_Merge(src proto.Message)
- func (m *ValueFeatureSet) XXX_Size() int
- func (m *ValueFeatureSet) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type DomainFeatures ¶
type DomainFeatures struct { Keys map[string]KeyFeatureSet `protobuf:"bytes,1,rep,name=keys"` Values map[string]ValueFeatureSet `protobuf:"bytes,2,rep,name=values"` Instances map[string]InstanceFeatureSet `protobuf:"bytes,3,rep,name=instances"` }
DomainFeatures is the collection of all discovered features of one domain.
func NewDomainFeatures ¶
func NewDomainFeatures() *DomainFeatures
NewDomainFeatures creates a new instance of Features, initializing specified features to empty values
func (*DomainFeatures) Descriptor ¶
func (*DomainFeatures) Descriptor() ([]byte, []int)
func (*DomainFeatures) Marshal ¶
func (m *DomainFeatures) Marshal() (dAtA []byte, err error)
func (*DomainFeatures) MarshalToSizedBuffer ¶
func (m *DomainFeatures) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DomainFeatures) ProtoMessage ¶
func (*DomainFeatures) ProtoMessage()
func (*DomainFeatures) Reset ¶
func (m *DomainFeatures) Reset()
func (*DomainFeatures) Size ¶
func (m *DomainFeatures) Size() (n int)
func (*DomainFeatures) String ¶
func (this *DomainFeatures) String() string
func (*DomainFeatures) Unmarshal ¶
func (m *DomainFeatures) Unmarshal(dAtA []byte) error
func (*DomainFeatures) XXX_DiscardUnknown ¶
func (m *DomainFeatures) XXX_DiscardUnknown()
func (*DomainFeatures) XXX_Marshal ¶
func (m *DomainFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DomainFeatures) XXX_Merge ¶
func (m *DomainFeatures) XXX_Merge(src proto.Message)
func (*DomainFeatures) XXX_Size ¶
func (m *DomainFeatures) XXX_Size() int
func (*DomainFeatures) XXX_Unmarshal ¶
func (m *DomainFeatures) XXX_Unmarshal(b []byte) error
type Features ¶
type Features map[string]*DomainFeatures
Features is a collection of all features of the system, arranged by domain. +protobuf
type InstanceFeature ¶
type InstanceFeature struct {
Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes"`
}
InstanceFeature represents one instance of a complex features, e.g. a device.
func NewInstanceFeature ¶
func NewInstanceFeature(attrs map[string]string) *InstanceFeature
NewInstanceFeature creates a new InstanceFeature instance.
func (*InstanceFeature) Descriptor ¶
func (*InstanceFeature) Descriptor() ([]byte, []int)
func (*InstanceFeature) Marshal ¶
func (m *InstanceFeature) Marshal() (dAtA []byte, err error)
func (*InstanceFeature) MarshalToSizedBuffer ¶
func (m *InstanceFeature) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InstanceFeature) ProtoMessage ¶
func (*InstanceFeature) ProtoMessage()
func (*InstanceFeature) Reset ¶
func (m *InstanceFeature) Reset()
func (*InstanceFeature) Size ¶
func (m *InstanceFeature) Size() (n int)
func (*InstanceFeature) String ¶
func (this *InstanceFeature) String() string
func (*InstanceFeature) Unmarshal ¶
func (m *InstanceFeature) Unmarshal(dAtA []byte) error
func (*InstanceFeature) XXX_DiscardUnknown ¶
func (m *InstanceFeature) XXX_DiscardUnknown()
func (*InstanceFeature) XXX_Marshal ¶
func (m *InstanceFeature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceFeature) XXX_Merge ¶
func (m *InstanceFeature) XXX_Merge(src proto.Message)
func (*InstanceFeature) XXX_Size ¶
func (m *InstanceFeature) XXX_Size() int
func (*InstanceFeature) XXX_Unmarshal ¶
func (m *InstanceFeature) XXX_Unmarshal(b []byte) error
type InstanceFeatureSet ¶
type InstanceFeatureSet struct {
Elements []InstanceFeature `protobuf:"bytes,1,rep,name=elements"`
}
InstanceFeatureSet is a set of features each of which is an instance having multiple attributes.
func NewInstanceFeatures ¶
func NewInstanceFeatures(instances []InstanceFeature) InstanceFeatureSet
NewInstanceFeatures creates a new instance of InstanceFeatureSet.
func (*InstanceFeatureSet) Descriptor ¶
func (*InstanceFeatureSet) Descriptor() ([]byte, []int)
func (*InstanceFeatureSet) Marshal ¶
func (m *InstanceFeatureSet) Marshal() (dAtA []byte, err error)
func (*InstanceFeatureSet) MarshalTo ¶
func (m *InstanceFeatureSet) MarshalTo(dAtA []byte) (int, error)
func (*InstanceFeatureSet) MarshalToSizedBuffer ¶
func (m *InstanceFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InstanceFeatureSet) ProtoMessage ¶
func (*InstanceFeatureSet) ProtoMessage()
func (*InstanceFeatureSet) Reset ¶
func (m *InstanceFeatureSet) Reset()
func (*InstanceFeatureSet) Size ¶
func (m *InstanceFeatureSet) Size() (n int)
func (*InstanceFeatureSet) String ¶
func (this *InstanceFeatureSet) String() string
func (*InstanceFeatureSet) Unmarshal ¶
func (m *InstanceFeatureSet) Unmarshal(dAtA []byte) error
func (*InstanceFeatureSet) XXX_DiscardUnknown ¶
func (m *InstanceFeatureSet) XXX_DiscardUnknown()
func (*InstanceFeatureSet) XXX_Marshal ¶
func (m *InstanceFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceFeatureSet) XXX_Merge ¶
func (m *InstanceFeatureSet) XXX_Merge(src proto.Message)
func (*InstanceFeatureSet) XXX_Size ¶
func (m *InstanceFeatureSet) XXX_Size() int
func (*InstanceFeatureSet) XXX_Unmarshal ¶
func (m *InstanceFeatureSet) XXX_Unmarshal(b []byte) error
type KeyFeatureSet ¶
KeyFeatureSet is a set of simple features only containing names without values.
func NewKeyFeatures ¶
func NewKeyFeatures(keys ...string) KeyFeatureSet
NewKeyFeatures creates a new instance of KeyFeatureSet.
func (*KeyFeatureSet) Descriptor ¶
func (*KeyFeatureSet) Descriptor() ([]byte, []int)
func (*KeyFeatureSet) Marshal ¶
func (m *KeyFeatureSet) Marshal() (dAtA []byte, err error)
func (*KeyFeatureSet) MarshalToSizedBuffer ¶
func (m *KeyFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyFeatureSet) ProtoMessage ¶
func (*KeyFeatureSet) ProtoMessage()
func (*KeyFeatureSet) Reset ¶
func (m *KeyFeatureSet) Reset()
func (*KeyFeatureSet) Size ¶
func (m *KeyFeatureSet) Size() (n int)
func (*KeyFeatureSet) String ¶
func (this *KeyFeatureSet) String() string
func (*KeyFeatureSet) Unmarshal ¶
func (m *KeyFeatureSet) Unmarshal(dAtA []byte) error
func (*KeyFeatureSet) XXX_DiscardUnknown ¶
func (m *KeyFeatureSet) XXX_DiscardUnknown()
func (*KeyFeatureSet) XXX_Marshal ¶
func (m *KeyFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyFeatureSet) XXX_Merge ¶
func (m *KeyFeatureSet) XXX_Merge(src proto.Message)
func (*KeyFeatureSet) XXX_Size ¶
func (m *KeyFeatureSet) XXX_Size() int
func (*KeyFeatureSet) XXX_Unmarshal ¶
func (m *KeyFeatureSet) XXX_Unmarshal(b []byte) error
type Nil ¶
type Nil struct{}
Nil is a dummy empty struct for protobuf compatibility
func (*Nil) Descriptor ¶
func (*Nil) ProtoMessage ¶
func (*Nil) ProtoMessage()
func (*Nil) XXX_DiscardUnknown ¶
func (m *Nil) XXX_DiscardUnknown()
func (*Nil) XXX_Unmarshal ¶
type ValueFeatureSet ¶
ValueFeatureSet is a set of features having string value.
func NewValueFeatures ¶
func NewValueFeatures(values map[string]string) ValueFeatureSet
NewValueFeatures creates a new instance of ValueFeatureSet.
func (*ValueFeatureSet) Descriptor ¶
func (*ValueFeatureSet) Descriptor() ([]byte, []int)
func (*ValueFeatureSet) Marshal ¶
func (m *ValueFeatureSet) Marshal() (dAtA []byte, err error)
func (*ValueFeatureSet) MarshalToSizedBuffer ¶
func (m *ValueFeatureSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueFeatureSet) ProtoMessage ¶
func (*ValueFeatureSet) ProtoMessage()
func (*ValueFeatureSet) Reset ¶
func (m *ValueFeatureSet) Reset()
func (*ValueFeatureSet) Size ¶
func (m *ValueFeatureSet) Size() (n int)
func (*ValueFeatureSet) String ¶
func (this *ValueFeatureSet) String() string
func (*ValueFeatureSet) Unmarshal ¶
func (m *ValueFeatureSet) Unmarshal(dAtA []byte) error
func (*ValueFeatureSet) XXX_DiscardUnknown ¶
func (m *ValueFeatureSet) XXX_DiscardUnknown()
func (*ValueFeatureSet) XXX_Marshal ¶
func (m *ValueFeatureSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValueFeatureSet) XXX_Merge ¶
func (m *ValueFeatureSet) XXX_Merge(src proto.Message)
func (*ValueFeatureSet) XXX_Size ¶
func (m *ValueFeatureSet) XXX_Size() int
func (*ValueFeatureSet) XXX_Unmarshal ¶
func (m *ValueFeatureSet) XXX_Unmarshal(b []byte) error