Documentation ¶
Index ¶
- Variables
- func AddEntryToOASYAML(oas *yaml.Node, key string, value any, defaultVal *yaml.Node) (*yaml.Node, error)
- func CopyFile(dest string, src string) error
- func DetectCycle(node *yaml.Node, filePath string) (bool, error)
- func JSONFile2YAMLFile(input string, output string) error
- func JSONPointer2JSONPath(jsonPointer string) (jsonPath string, err error)
- func JSONText2YAMLText(reader io.Reader) ([]byte, error)
- func LocateRef(refFileNode *yaml.Node, refJSONPath string, jsonRef string) (*yaml.Node, error)
- func MakeCyclicRefPlaceholder(refJSONPath string) *yaml.Node
- func Must(err error)
- func MustClose(c io.Closer)
- func MustReadFileBytes(path string) []byte
- func NewCyclicJSONRefError(paths []string) error
- func OAS2FileToOAS3File(input string, output string, allowCycles bool) error
- func OAS2ToYAML(doc *openapi2.T) (*yaml.Node, error)
- func OAS2YAMLtoOAS3YAML(oasNode *yaml.Node) (*yaml.Node, error)
- func OAS3FileToOAS2File(input string, output string, allowCycles bool) error
- func OAS3ToYAML(doc *openapi3.T) (*yaml.Node, error)
- func OAS3YAMLtoOAS2YAML(oasNode *yaml.Node) (*yaml.Node, error)
- func ParseYAMLFile(filePath string) (*yaml.Node, error)
- func ReadInputText(input string) ([]byte, error)
- func ResetYAMLRefs()
- func ResolveCycles(node *yaml.Node, filePath string) (*yaml.Node, error)
- func ResolveDollarRefs(input string, output string, allowCycles bool) error
- func ResolveYAMLRef(root *yaml.Node, node *yaml.Node, nodePath string, nodePaths []string, ...) (*yaml.Node, bool, error)
- func ResolveYAMLRefs(node *yaml.Node, filePath string, allowCycles bool) (*yaml.Node, error)
- func ResolveYAMLRefsRecursive(root *yaml.Node, node *yaml.Node, nodePath string, nodePaths []string, ...) (*yaml.Node, bool, error)
- func RunWithinDirectory[ResultType *yaml.Node](dir string, operation func() (ResultType, error)) (ResultType, error)
- func SplitJSONRef(refStr string) (location string, jsonPath string, err error)
- func Struct2XMLDocText(p any) ([]byte, error)
- func Text2XML(reader io.Reader) (*etree.Document, error)
- func Text2YAML(reader io.Reader) (*yaml.Node, error)
- func UnFlowYAMLNode(node *yaml.Node) *yaml.Node
- func WriteOutputText(output string, outputText []byte) error
- func XML2Text(doc *etree.Document) ([]byte, error)
- func XML2YAML(doc *etree.Document) (*yaml.Node, error)
- func XML2YAMLRecursive(ele *etree.Element) (key *yaml.Node, value *yaml.Node, err error)
- func XML2YAMLText(doc *etree.Document, indent int) ([]byte, error)
- func XMLFile2YAMLFile(input string, output string) error
- func XMLText2XML(reader io.Reader) (*etree.Document, error)
- func XMLText2YAML(reader io.Reader) (*yaml.Node, error)
- func XMLText2YAMLText(reader io.Reader) ([]byte, error)
- func XMLTextFormat(reader io.Reader) ([]byte, error)
- func YAML2Text(node *yaml.Node, indent int) ([]byte, error)
- func YAML2XML(node *yaml.Node) (*etree.Document, error)
- func YAML2XMLRecursive(node *yaml.Node, parent *etree.Element) (*etree.Element, error)
- func YAML2XMLText(node *yaml.Node) ([]byte, error)
- func YAMLDoc2File(docNode *yaml.Node, outputFile string) error
- func YAMLFile2JSONFile(input string, output string) error
- func YAMLFile2XMLFile(input string, output string) error
- func YAMLFile2YAML(filePath string) (*yaml.Node, error)
- func YAMLText2JSONText(reader io.Reader) ([]byte, error)
- func YAMLText2XML(reader io.Reader) (*etree.Document, error)
- func YAMLText2XMLText(reader io.Reader) ([]byte, error)
- type CyclicJSONRefError
- type StdoutCapture
Constants ¶
This section is empty.
Variables ¶
View Source
var ParsedYAMLFiles map[string]*yaml.Node
View Source
var ResolvedRefs map[string]*yaml.Node
Functions ¶
func AddEntryToOASYAML ¶ added in v0.1.15
func DetectCycle ¶ added in v0.1.15
func JSONFile2YAMLFile ¶ added in v0.1.15
func JSONPointer2JSONPath ¶
func MakeCyclicRefPlaceholder ¶ added in v0.1.15
func MakeCyclicRefPlaceholder(refJSONPath string) *yaml.Node
func MustReadFileBytes ¶
func NewCyclicJSONRefError ¶ added in v0.1.15
func OAS2FileToOAS3File ¶ added in v0.1.15
func OAS2ToYAML ¶ added in v0.1.15
func OAS2YAMLtoOAS3YAML ¶ added in v0.1.15
func OAS2YAMLtoOAS3YAML(oasNode *yaml.Node) (*yaml.Node, error)
func OAS3FileToOAS2File ¶ added in v0.1.15
func OAS3ToYAML ¶ added in v0.1.15
func OAS3YAMLtoOAS2YAML ¶ added in v0.1.15
func OAS3YAMLtoOAS2YAML(oasNode *yaml.Node) (*yaml.Node, error)
func ParseYAMLFile ¶
func ReadInputText ¶ added in v0.1.15
func ResetYAMLRefs ¶ added in v0.1.15
func ResetYAMLRefs()
func ResolveCycles ¶ added in v0.1.15
func ResolveDollarRefs ¶ added in v0.1.15
func ResolveYAMLRef ¶
func ResolveYAMLRefs ¶
func ResolveYAMLRefsRecursive ¶ added in v0.1.15
func RunWithinDirectory ¶ added in v0.1.15
func Struct2XMLDocText ¶
func UnFlowYAMLNode ¶ added in v0.1.15
func UnFlowYAMLNode(node *yaml.Node) *yaml.Node
func WriteOutputText ¶ added in v0.1.15
func XML2YAMLRecursive ¶
func XMLFile2YAMLFile ¶ added in v0.1.15
func XMLText2YAML ¶
func YAML2XMLRecursive ¶
func YAML2XMLText ¶
func YAMLDoc2File ¶
func YAMLFile2JSONFile ¶ added in v0.1.15
func YAMLFile2XMLFile ¶ added in v0.1.15
func YAMLFile2YAML ¶
Types ¶
type CyclicJSONRefError ¶ added in v0.1.15
type CyclicJSONRefError struct {
Paths []string
}
func (CyclicJSONRefError) Error ¶ added in v0.1.15
func (e CyclicJSONRefError) Error() string
type StdoutCapture ¶
type StdoutCapture struct {
// contains filtered or unexported fields
}
func NewStdoutCapture ¶
func NewStdoutCapture() (*StdoutCapture, error)
func (*StdoutCapture) Read ¶
func (sf *StdoutCapture) Read() ([]byte, error)
func (*StdoutCapture) Restore ¶
func (sf *StdoutCapture) Restore()
Click to show internal directories.
Click to hide internal directories.