Liking cljdoc? Tell your friends :D

asf-cat.api

A micro library that provides a Clojure implementation of the Apache Software Foundation's 3rd Party License Policy (https://www.apache.org/legal/resolved.html).

A micro library that provides a Clojure implementation of the Apache Software
Foundation's 3rd Party License Policy (https://www.apache.org/legal/resolved.html).
raw docstring

categoriesclj

The set of categories, ordered by category-comparator.

The set of categories, ordered by category-comparator.
sourceraw docstring

category-comparatorclj

(category-comparator l r)

A comparator for ASF category keywords, defined as being this ordering:

  1. :category-a
  2. :category-a-special
  3. :category-b
  4. :creative-commons
  5. :category-x
  6. :uncategorised
A comparator for ASF category keywords, defined as being this ordering:
1. :category-a
2. :category-a-special
3. :category-b
4. :creative-commons
5. :category-x
6. :uncategorised
sourceraw docstring

category-infoclj

(category-info category)

Returns information on a category as a map with the keys :name and :url (both strings).

Returns information on a category as a map with the keys :name and :url (both
strings).
sourceraw docstring

expression-categoryclj

(expression-category spdx-expr)

Given an SPDX license expression, returns the overall ASF category of that expression. Results are as for category.

Given an SPDX license expression, returns the overall ASF category of that
expression.  Results are as for `category`.
sourceraw docstring

expressions-least-categoryclj

(expressions-least-category expressions)

Returns the lowest (best) category in the given sequence of SPDX license expressions.

Returns the lowest (best) category in the given sequence of SPDX license
expressions.
sourceraw docstring

expressions-most-categoryclj

(expressions-most-category expressions)

Returns the highest (worst) category for the given sequence of SPDX license expressions.

Returns the highest (worst) category for the given sequence of SPDX license
expressions.
sourceraw docstring

least-categoryclj

(least-category categories)

Returns the lowest (best) category in the given sequence of categories.

Returns the lowest (best) category in the given sequence of categories.
sourceraw docstring

license-categoryclj

(license-category license-id)

Given an SPDX license identifier (or 'Public Domain', which is not a valid SPDX identifier but is special cased by asf-cat), returns one of:

nil - when license-id is nil, empty or blank :category-a - see https://www.apache.org/legal/resolved.html#category-a :category-a-special - see https://www.apache.org/legal/resolved.html and scroll to the appropriate section :category-b - see https://www.apache.org/legal/resolved.html#category-b :creative-commons - see https://www.apache.org/legal/resolved.html#cc-by (may be any category - further manual investigation required) :category-x - see https://www.apache.org/legal/resolved.html#category-x :uncategorised - the ASF category of license-id could not be determined

Given an SPDX license identifier (or 'Public Domain', which is not a valid
SPDX identifier but is special cased by asf-cat), returns one of:

nil                 - when license-id is nil, empty or blank
:category-a         - see https://www.apache.org/legal/resolved.html#category-a
:category-a-special - see https://www.apache.org/legal/resolved.html and
                      scroll to the appropriate section
:category-b         - see https://www.apache.org/legal/resolved.html#category-b
:creative-commons   - see https://www.apache.org/legal/resolved.html#cc-by
                      (may be any category - further manual investigation
                      required)
:category-x         - see https://www.apache.org/legal/resolved.html#category-x
:uncategorised      - the ASF category of license-id could not be determined
sourceraw docstring

license-comparatorclj

(license-comparator l r)

A comparator for SPDX license identifiers, based on their ASF categories (see category-comparator).

A comparator for SPDX license identifiers, based on their ASF categories (see
`category-comparator`).
sourceraw docstring

licenses-least-categoryclj

(licenses-least-category license-ids)

Returns the lowest (best) category in the given sequence of SPDX license identifiers.

Returns the lowest (best) category in the given sequence of SPDX license
identifiers.
sourceraw docstring

licenses-most-categoryclj

(licenses-most-category license-ids)

Returns the highest (worst) category for the given sequence of SPDX license identifiers.

Returns the highest (worst) category for the given sequence of SPDX license
identifiers.
sourceraw docstring

most-categoryclj

(most-category categories)

Returns the highest (worst) category for the given sequence of categories.

Returns the highest (worst) category for the given sequence of categories.
sourceraw docstring

policy-uriclj

The URI (as a string) of the Apache Software Foundation's 3rd Party License Policy

The URI (as a string) of the Apache Software Foundation's 3rd Party License
Policy
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close