load

package
v0.0.0-...-fc2a63e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 8 Imported by: 0

README

golang-brocade-vyatta-configd-load

This repository contains the former content of the configd 'load' package, now relocated to a separate repo.

Documentation

Overview

Copyright (c) 2017-2019, AT&T Intellectual Property. All rights reserved.

Copyright (c) 2015-2017 by Brocade Communications Systems, Inc. All rights reserved.

SPDX-License-Identifier: MPL-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(fname string, st schema.ModelSet) (*data.Node, error, []error)

func LoadFile

func LoadFile(
	fname string,
	f io.Reader,
	st schema.ModelSet,
) (*data.Node, error, []error)

func LoadFileNoValidate

func LoadFileNoValidate(fname string, f io.Reader) (*data.Node, error)

func LoadNoValidate

func LoadNoValidate(fname string) (*data.Node, error)

func LoadString

func LoadString(
	name, text string,
	st schema.ModelSet,
) (*data.Node, error, []error)

LoadString - create tree from given config, noting any rejected paths

Rejected paths are not a fatal error so we return them separately to other, fatal, errors.

func LoadStringNoNormalize

func LoadStringNoNormalize(
	name, text string,
	st schema.ModelSet,
) (*data.Node, error, []error)

LoadStringNoNormalize - load from string, ignoring any normalization.

Useful for XYANG tool and any other environment where normalization scripts may not be present.

func LoadStringNoValidate

func LoadStringNoValidate(name, text string) (*data.Node, error)

LoadStringNoValidate - create tree from given config, without performing any validation at all

Note that this doesn't even check that the config conforms to the schema

Types

This section is empty.

Jump to

Keyboard shortcuts

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