csl_us

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSanctionsData

func ConvertSanctionsData(data *ListData) []search.Entity[search.Value]

ConvertSanctionsData converts CSV sanctions data to search entities

func DetailsURL added in v0.52.0

func DetailsURL(entityID string) string

DetailsURL returns the US CSL Search URL There is not a page for viewing individual records we can link to.

func Download

func Download(ctx context.Context, logger log.Logger, initialDir string) (download.Files, error)

func ToEntity

func ToEntity(src SanctionsEntry) search.Entity[search.Value]

ToEntity converts a CSV SanctionsEntry to a search Entity

Types

type ListData

type ListData struct {
	SanctionsData []SanctionsEntry
	ListHash      string
}

ListData holds the parsed CSV data and its hash

func Read

func Read(files download.Files) (*ListData, error)

Read processes the input files and returns parsed CSV data

type SanctionsEntry added in v0.52.2

type SanctionsEntry struct {
	ID                     string
	Source                 string
	EntityNumber           string
	Type                   string
	Programs               string
	Name                   string
	Title                  string
	Addresses              string
	FederalRegisterNotice  string
	StartDate              string
	EndDate                string
	StandardOrder          string
	LicenseRequirement     string
	LicensePolicy          string
	CallSign               string
	VesselType             string
	GrossTonnage           string
	GrossRegisteredTonnage string
	VesselFlag             string
	VesselOwner            string
	Remarks                string
	SourceListURL          string
	AltNames               string
	Citizenships           string
	DatesOfBirth           string
	Nationalities          string
	PlacesOfBirth          string
	SourceInformationURL   string
	IDs                    string
}

SanctionsEntry represents a single row in the CSV

Jump to

Keyboard shortcuts

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