oscal_source

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: CC0-1.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSCALSource

type OSCALSource struct {
	UserPath string
	// contains filtered or unexported fields
}

OSCALSource is intermediary that handles IO and low-level common operations consistently for oscalkit

func Open

func Open(path string) (*OSCALSource, error)

Open creates new OSCALSource and load it up

func OpenFromReader

func OpenFromReader(name string, r io.Reader) (*OSCALSource, error)

func (*OSCALSource) Close

func (s *OSCALSource) Close()

Close the OSCALSource

func (*OSCALSource) DocumentFormat

func (s *OSCALSource) DocumentFormat() constants.DocumentFormat

func (*OSCALSource) HTML

func (s *OSCALSource) HTML() (*bytes.Buffer, error)

func (*OSCALSource) OSCAL

func (s *OSCALSource) OSCAL() *oscal.OSCAL

func (*OSCALSource) Validate

func (s *OSCALSource) Validate() error

Jump to

Keyboard shortcuts

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