logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

CSAF::Options::Writer - CSAF::Writer configurator

Author

       •   Giuseppe Di Terlizzi <gdt@cpan.org>

Description

       CSAF::Options::Writer is a configurator of CSAF::Writer.

   METHODS
       CSAF::Options::Writer inherits all methods from CSAF::Util::Options.

   ATTRIBUTES
       update_index
           Create and update the "index.txt" file (default "TRUE").

       update_changes
           Create and update the "changes.csv" file (default "TRUE").

       create_sha256_integrity
           Create SHA256 integrity file "*.sha256" for the provided CSAF document (default "TRUE").

       create_sha512_integrity
           Create SHA512 integrity file "*.sha512" for the provided CSAF document (default "TRUE").

       create_gpg_signature
           Sign the CSAF document with GPG and create signature file "*.sha256" (default "FALSE").

       gpg_key
           Specify the default GPG key.

       gpg_passphrase
           Specify the passphrase for the provided GPG key.

Name

       CSAF::Options::Writer - CSAF::Writer configurator

Support

Bugs/FeatureRequests
       Please     report    any    bugs    or    feature    requests    through    the    issue    tracker    at
       <https://github.com/giterlizzi/perl-CSAF/issues>.  You will be notified automatically of any progress  on
       your issue.

   SourceCode
       This  is open source software.  The code repository is available for public review and contribution under
       the terms of the license.

       <https://github.com/giterlizzi/perl-CSAF>

           git clone https://github.com/giterlizzi/perl-CSAF.git

Synopsis

           use CSAF::Options::Writer;
           my $options = CSAF::Options::Writer->new( );

           $options->configure(
               create_sha256_integrity => 0,
               create_gpg_signature    => 1,
               update_index            => 1,
               update_changes          => 1
           );

           if (my $passphrase = get_passphrase_from_stdin) {
               $options->gpg_passphrase($passphrase);
           }

See Also