| 1 | package SBOM::CycloneDX::Enum::ComponentType; | ||
| 2 | |||
| 3 | 16 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 16 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 16 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 16 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 16 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 16 | our (@EXPORT_OK, %EXPORT_TAGS, %ENUM); | |
| 10 | |||
| 11 | 16 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 16 | %ENUM = ( | |
| 14 | APPLICATION => 'application', | ||
| 15 | FRAMEWORK => 'framework', | ||
| 16 | LIBRARY => 'library', | ||
| 17 | CONTAINER => 'container', | ||
| 18 | PLATFORM => 'platform', | ||
| 19 | OPERATING_SYSTEM => 'operating-system', | ||
| 20 | DEVICE => 'device', | ||
| 21 | DEVICE_DRIVER => 'device-driver', | ||
| 22 | FIRMWARE => 'firmware', | ||
| 23 | FILE => 'file', | ||
| 24 | MACHINE_LEARNING_MODEL => 'machine-learning-model', | ||
| 25 | DATA => 'data', | ||
| 26 | CRYPTOGRAPHIC_ASSET => 'cryptographic-asset', | ||
| 27 | ); | ||
| 28 | |||
| 29 | 16 | require constant; | |
| 30 | 16 | constant->import(\%ENUM); | |
| 31 | |||
| 32 | 16 | @EXPORT_OK = sort keys %ENUM; | |
| 33 | 16 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 34 | |||
| 35 | } | ||
| 36 | |||
| 37 | 17 | ▶ | sub values { sort values %ENUM } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
documented
| |||
| 38 | |||
| 39 | |||
| 40 | 16 | 1; | |
| 41 | |||
| 42 | =encoding utf-8 | ||
| 43 | |||
| 44 | =head1 NAME | ||
| 45 | |||
| 46 | SBOM::CycloneDX::Enum::ComponentType - Component Type | ||
| 47 | |||
| 48 | =head1 SYNOPSIS | ||
| 49 | |||
| 50 | use SBOM::CycloneDX::Enum qw(COMPONENT_TYPE); | ||
| 51 | |||
| 52 | say COMPONENT_TYPE->APPLICATION; | ||
| 53 | |||
| 54 | |||
| 55 | use SBOM::CycloneDX::Enum::ComponentType; | ||
| 56 | |||
| 57 | say SBOM::CycloneDX::Enum::ComponentType->LIBRARY; | ||
| 58 | |||
| 59 | |||
| 60 | use SBOM::CycloneDX::Enum::ComponentType qw(:all); | ||
| 61 | |||
| 62 | say OPERATING_SYSTEM; | ||
| 63 | |||
| 64 | |||
| 65 | =head1 DESCRIPTION | ||
| 66 | |||
| 67 | L<SBOM::CycloneDX::Enum::ComponentType> is ENUM package used by L<SBOM::CycloneDX::Component>. | ||
| 68 | |||
| 69 | Specifies the type of component. For software components, classify as application | ||
| 70 | if no more specific appropriate classification is available or cannot be determined | ||
| 71 | for the component. | ||
| 72 | |||
| 73 | |||
| 74 | =head1 CONSTANTS | ||
| 75 | |||
| 76 | =over | ||
| 77 | |||
| 78 | =item * C<APPLICATION>, A software application. Refer to L<https://en.wikipedia.org/wiki/Application_software> | ||
| 79 | for information about applications. | ||
| 80 | |||
| 81 | =item * C<FRAMEWORK>, A software framework. Refer to L<https://en.wikipedia.org/wiki/Software_framework> | ||
| 82 | for information on how frameworks vary slightly from libraries. | ||
| 83 | |||
| 84 | =item * C<LIBRARY>, A software library. Refer to L<https://en.wikipedia.org/wiki/Library_(computing)> | ||
| 85 | for information about libraries. All third-party and open source reusable | ||
| 86 | components will likely be a library. If the library also has key features of a | ||
| 87 | framework, then it should be classified as a framework. If not, or is unknown, | ||
| 88 | then specifying library is recommended.", | ||
| 89 | |||
| 90 | =item * C<CONTAINER>, A packaging and/or runtime format, not specific to any | ||
| 91 | particular technology, which isolates software inside the container from software | ||
| 92 | outside of a container through virtualization technology. Refer to L<https://en.wikipedia.org/wiki/OS-level_virtualization>. | ||
| 93 | |||
| 94 | =item * C<PLATFORM>, A runtime environment that interprets or executes software. | ||
| 95 | This may include runtimes such as those that execute bytecode, just-in-time | ||
| 96 | compilers, interpreters, or low-code/no-code application platforms. | ||
| 97 | |||
| 98 | =item * C<OPERATING_SYSTEM>, A software operating system without regard to | ||
| 99 | deployment model (i.e. installed on physical hardware, virtual machine, image, | ||
| 100 | etc). Refer to L<https://en.wikipedia.org/wiki/Operating_system>. | ||
| 101 | |||
| 102 | =item * C<DEVICE>, A hardware device such as a processor or chip-set. A hardware | ||
| 103 | device containing firmware SHOULD include a component for the physical hardware | ||
| 104 | itself and another component of type 'firmware' or 'operating-system' (whichever | ||
| 105 | is relevant), describing information about the software running on the device. | ||
| 106 | See also the list of L<known device properties|https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md>. | ||
| 107 | |||
| 108 | =item * C<DEVICE_DRIVER>, A special type of software that operates or controls a | ||
| 109 | particular type of device. Refer to L<https://en.wikipedia.org/wiki/Device_driver>. | ||
| 110 | |||
| 111 | =item * C<FIRMWARE>, A special type of software that provides low-level control | ||
| 112 | over a device's hardware. Refer to L<https://en.wikipedia.org/wiki/Firmware>. | ||
| 113 | |||
| 114 | =item * C<FILE>, A computer file. Refer to L<https://en.wikipedia.org/wiki/Computer_file> | ||
| 115 | for information about files. | ||
| 116 | |||
| 117 | =item * C<MACHINE_LEARNING_MODEL>, A model based on training data that can make | ||
| 118 | predictions or decisions without being explicitly programmed to do so. | ||
| 119 | |||
| 120 | =item * C<DATA>, A collection of discrete values that convey information. | ||
| 121 | |||
| 122 | =item * C<CRYPTOGRAPHIC_ASSET>, A cryptographic asset including algorithms, | ||
| 123 | protocols, certificates, keys, tokens, and secrets. | ||
| 124 | |||
| 125 | =back | ||
| 126 | |||
| 127 | =head1 SUPPORT | ||
| 128 | |||
| 129 | =head2 Bugs / Feature Requests | ||
| 130 | |||
| 131 | Please report any bugs or feature requests through the issue tracker | ||
| 132 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||
| 133 | You will be notified automatically of any progress on your issue. | ||
| 134 | |||
| 135 | =head2 Source Code | ||
| 136 | |||
| 137 | This is open source software. The code repository is available for | ||
| 138 | public review and contribution under the terms of the license. | ||
| 139 | |||
| 140 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||
| 141 | |||
| 142 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||
| 143 | |||
| 144 | |||
| 145 | =head1 AUTHOR | ||
| 146 | |||
| 147 | =over 4 | ||
| 148 | |||
| 149 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||
| 150 | |||
| 151 | =back | ||
| 152 | |||
| 153 | |||
| 154 | =head1 LICENSE AND COPYRIGHT | ||
| 155 | |||
| 156 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||
| 157 | |||
| 158 | This is free software; you can redistribute it and/or modify it under | ||
| 159 | the same terms as the Perl 5 programming language system itself. | ||
| 160 | |||
| 161 | =cut | ||