Class Config.FromYaml

  • All Implemented Interfaces:
    Config
    Enclosing interface:
    Config

    public static final class Config.FromYaml
    extends Object
    implements Config
    Implementation of Config that reads settings from yaml.
    Since:
    0.2
    • Constructor Detail

      • FromYaml

        public FromYaml​(String name,
                        Optional<com.amihaiemil.eoyaml.YamlMapping> yaml,
                        com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        name - Repository name
        yaml - Setting in yaml format
        storage - Artipie configuration storage
      • FromYaml

        public FromYaml​(String name,
                        com.amihaiemil.eoyaml.YamlMapping yaml,
                        com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        name - Repository name
        yaml - Setting in yaml format
        storage - Artipie configuration storage
    • Method Detail

      • codename

        public String codename()
        Description copied from interface: Config
        Repository codename.
        Specified by:
        codename in interface Config
        Returns:
        String codename
      • components

        public Collection<String> components()
        Description copied from interface: Config
        Repository components (subdirectories).
        Specified by:
        components in interface Config
        Returns:
        Components list
      • archs

        public Collection<String> archs()
        Description copied from interface: Config
        List of the architectures repository supports.
        Specified by:
        archs in interface Config
        Returns:
        Supported architectures
      • gpg

        public Optional<GpgConfig> gpg()
        Description copied from interface: Config
        Optional gpg-configuration.
        Specified by:
        gpg in interface Config
        Returns:
        Gpg configuration if configured