Versions in this module Expand all Collapse all v2 v2.5.0 Jan 15, 2020 Changes in this version + type API interface + Decode func(data []byte) ([]*FileDataEntry, error) + Encode func(data []*FileDataEntry) ([]byte, error) + IsProcessable func(file string) bool + type File struct + Data []*FileDataEntry + Path string + func (f1 *File) CompareTo(f2 *File) (changed, removed []*FileDataEntry) + type FileDataEntry struct + Key string + Value []byte + type JSONDecoder struct + func NewJSONDecoder(extensions ...string) *JSONDecoder + func (jd *JSONDecoder) Decode(byteSet []byte) ([]*FileDataEntry, error) + func (jd *JSONDecoder) Encode(data []*FileDataEntry) ([]byte, error) + func (jd *JSONDecoder) IsProcessable(file string) bool + type Mock struct + func NewDecoderMock() *Mock + func (mock *Mock) Decode(data []byte) ([]*FileDataEntry, error) + func (mock *Mock) Encode(data []*FileDataEntry) ([]byte, error) + func (mock *Mock) IsProcessable(file string) bool + func (mock *Mock) When(methodName string) *WhenResp + type WhenResp struct + func (when *WhenResp) ThenReturn(item ...interface{}) + type YAMLDecoder struct + func NewYAMLDecoder(extensions ...string) *YAMLDecoder + func (yd *YAMLDecoder) Decode(byteSet []byte) ([]*FileDataEntry, error) + func (yd *YAMLDecoder) Encode(data []*FileDataEntry) ([]byte, error) + func (yd *YAMLDecoder) IsProcessable(file string) bool v2.5.0-alpha Dec 13, 2019 Other modules containing this package go.ligato.io/cn-infra