<commit_before>[![Build Status](https://travis-ci.org/sapcc/concourse-swift-resource.png?branch=master)](https://travis-ci.org/sapcc/concourse-swift-resource)
# Concourse resource for OpenStack Swift

Versions objects in a Swift container, by pattern-matching filenames to identify
version numbers.

This resource is heavily inspired by the [official S3 resource](https://gthub.com/concourse/s3-resource)

## Deploying to Concourse

In your bosh deployment manifest, add to the following to the `groundcrew.additional_resource_types`:

```yaml
- image: docker:///databus23/concourse-swift-resource
  type: swift
```

## Source Configuration

* `auth_url`: *Required.* The url for authentication (Keystone)
<commit_msg>Document how to add resource to pipeline (#9)<commit_after>[![Build Status](https://travis-ci.org/sapcc/concourse-swift-resource.png?branch=master)](https://travis-ci.org/sapcc/concourse-swift-resource)
# Concourse resource for OpenStack Swift

Versions objects in a Swift container, by pattern-matching filenames to identify
version numbers.

This resource is heavily inspired by the [official S3 resource](https://gthub.com/concourse/s3-resource)

## Adding to your pipeline

To use the Swift Resource, you must declare it in your pipeline as a resource type:

```
resource_types:
- name: swift
  type: docker-image
  source:
    repository: databus23/concourse-swift-resource
```

## Alternativly add resource with BOSH to Concourse

In your bosh deployment manifest, add to the following to the `groundcrew.additional_resource_types`:

```yaml
- image: docker:///databus23/concourse-swift-resource
  type: swift
```

## Source Configuration

* `auth_url`: *Required.* The url for authentication (Keystone)

{'fraction_non_alphanumeric': 0.10821759259259259, 'fraction_numerical': 0.00636574074074074, 'mean_word_length': 5.2644927536231885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2289750', 'n_tokens_mistral': 542, 'n_tokens_neox': 504, 'n_words': 157}