Documentation
¶
Index ¶
- Variables
- func DiffDoubleStringPathSlice(s1, s2 [][]string) string
- func DiffStringSlice(s1, s2 []string, forceNoSideEffect bool) string
- func DiffUpdates(a, b []*types.Update) string
- func GetLeafListTvProto(tvs []*sdcpb.TypedValue) *sdcpb.TypedValue
- func GetSchemaClientBound(t *testing.T, mockCtrl *gomock.Controller) (*mockschemaclientbound.MockSchemaClientBound, error)
- func GetStringTvProto(s string) *sdcpb.TypedValue
- func GetTestFilename() string
- func GetUIntTvProto(i uint64) *sdcpb.TypedValue
- func InitSDCIOSchema() (dataschema.Client, *dConfig.SchemaConfig, error)
- func LoadYgotStructIntoTreeRoot(ctx context.Context, gs ygot.GoStruct, root RootTreeImport, owner string, ...) error
- func PathMapIndex(elems []string) string
- func UpdateSliceToStringSlice(s []*types.Update) []string
- type RootTreeImport
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// location of the test schema from the projects root
SDCIO_SCHEMA_LOCATION = "tests/schema"
)
Functions ¶
func DiffStringSlice ¶
DiffStringSlice compares two string slices returning the
func DiffUpdates ¶ added in v0.0.56
diffCacheUpdates takes two []*cache.Update and compares the diff
func GetLeafListTvProto ¶ added in v0.0.40
func GetLeafListTvProto(tvs []*sdcpb.TypedValue) *sdcpb.TypedValue
func GetSchemaClientBound ¶ added in v0.0.44
func GetSchemaClientBound(t *testing.T, mockCtrl *gomock.Controller) (*mockschemaclientbound.MockSchemaClientBound, error)
GetSchemaClientBound creates a SchemaClientBound mock that responds to certain GetSchema requests
func GetStringTvProto ¶
func GetStringTvProto(s string) *sdcpb.TypedValue
GetStringTvProto takes a string and returns the sdcpb.TypedValue for it in proto encoding as []byte
func GetTestFilename ¶
func GetTestFilename() string
func GetUIntTvProto ¶
func GetUIntTvProto(i uint64) *sdcpb.TypedValue
GetStringTvProto takes a string and returns the sdcpb.TypedValue for it in proto encoding as []byte
func InitSDCIOSchema ¶
func InitSDCIOSchema() (dataschema.Client, *dConfig.SchemaConfig, error)
func LoadYgotStructIntoTreeRoot ¶ added in v0.0.58
func LoadYgotStructIntoTreeRoot(ctx context.Context, gs ygot.GoStruct, root RootTreeImport, owner string, prio int32, flags *types.UpdateInsertFlags) error
func PathMapIndex ¶
PathMapIndex calculates a common map index for string slice based paths
func UpdateSliceToStringSlice ¶ added in v0.0.56
UpdateSliceToStringSlice converts a []*Update to []string
Types ¶
type RootTreeImport ¶ added in v0.0.58
Click to show internal directories.
Click to hide internal directories.