formatter

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package formatter предоставляет функционал для приведения SBOM к формату удовлетворяющему ФСТЕК

Index

Constants

View Source
const (
	// ERTypeSourceDistribution содержит тип внешней ссылки source-distribution.
	ERTypeSourceDistribution = "source-distribution"
)

Variables

This section is empty.

Functions

func Format

func Format(ctx context.Context, opts Options) error

Format выполняет форматирование SBOM для соответствия ФСТЕК.

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

Formatter выполняет форматирование SBOM для соответствия ФСТЕК.

func NewFormatter

func NewFormatter(opts Options) (*Formatter, error)

NewFormatter создает новый экземпляр.

func (*Formatter) Run

func (f *Formatter) Run(_ context.Context) error

Run выполняет процесс обновления.

type Options

type Options struct {
	Input  string
	Output string
}

Options предоставляет конфигурацию форматировщика.

Source Files

  • formatter.go

Jump to

Keyboard shortcuts

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