generator

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCatalogsFromProfile

func CreateCatalogsFromProfile(profileArg *profile.Profile) ([]*catalog.Catalog, error)

CreateCatalogsFromProfile maps profile controls to multiple catalogs

func EquateAlter

func EquateAlter(alt profile.Alter, call profile.Call) bool

EquateAlter equates alter with call

func GetAbsolutePath

func GetAbsolutePath(path string) (string, error)

GetAbsolutePath gets absolute file path

func GetAlters

func GetAlters(p *profile.Profile) ([]profile.Alter, error)

GetAlters gets alter attributes from import chain

func GetFilePath

func GetFilePath(URL string) (string, error)

GetFilePath GetFilePath

func GetMappedCatalogControlsFromImport

func GetMappedCatalogControlsFromImport(importedCatalog *catalog.Catalog, profileImport profile.Import, catalogHelper impl.Catalog) (catalog.Catalog, error)

GetMappedCatalogControlsFromImport gets mapped controls in catalog per profile import

func ModifyParts

func ModifyParts(p catalog.Part, controlParts []catalog.Part) []catalog.Part

ModifyParts modifies parts

func ProcessAddition

func ProcessAddition(alt profile.Alter, controls []catalog.Control) []catalog.Control

ProcessAddition processes additions of a profile

func ProcessAlterations

func ProcessAlterations(alterations []profile.Alter, c *catalog.Catalog) *catalog.Catalog

ProcessAlterations processes alteration section of a profile

func ProcessSetParam

func ProcessSetParam(setParams []profile.SetParameter, c *catalog.Catalog, catalogHelper impl.Catalog) *catalog.Catalog

ProcessSetParam processes set-param of a profile

func ReadCatalog

func ReadCatalog(r io.Reader) (*catalog.Catalog, error)

ReadCatalog ReadCatalog

func ReadProfile

func ReadProfile(o *oscal.OSCAL) (*profile.Profile, error)

ReadProfile reads profile from OSCAL

func SetBasePath

func SetBasePath(p *profile.Profile, parentPath string) (*profile.Profile, error)

SetBasePath sets up base paths for profiles

Types

type HTTPFilePath

type HTTPFilePath struct {
	sync.Mutex
	// contains filtered or unexported fields
}

HTTPFilePath map of http resource against filepath to lessen downloads

Jump to

Keyboard shortcuts

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