resoto-plugin-cleanup-expired


Nameresoto-plugin-cleanup-expired JSON
Version 3.7.0 PyPI version JSON
download
home_page
SummaryResoto Expired Resource Cleanup Plugin
upload_time2023-09-27 08:17:08
maintainer
docs_urlNone
authorSome Engineering Inc.
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # resoto-plugin-cleanup-expired
Resoto plugin for cleanup of expired resources

This plugin looks for resources with the tags `expiration` or `resoto:expires` and flags them for cleanup if they are expired.

## Tag format

| Tag              | Format                      | Description                                          |
| ---------------- | --------------------------- | ---------------------------------------------------- |
| `resoto:expires` | `2019-09-05T10:40:11+00:00` | ISO 8601 Timestamp                                   |
| `expiration`     | `24h`                       | A timedelta relative to the resource's creation time |

Example of valid units for the `expiration` tag:

```
weeks
days
hours
minutes
```

Each of them can be abbreviated down to one letter. E.g. `7d`, `24h`, `60m`, etc. A space in between the numeric and the unit is optional, meaning `7d` and `7 days` are equivalent.

## Usage

In `resh` execute

```
> config edit resoto.worker
```

and find the following section

```
plugin_cleanup_expired:
  # Enable plugin?
  enabled: false
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "resoto-plugin-cleanup-expired",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Some Engineering Inc.",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/bf/f2/f96b58d28813a62bb18c110adcda981bde955e8f332011d0f86f30dcacd4/resoto-plugin-cleanup-expired-3.7.0.tar.gz",
    "platform": null,
    "description": "# resoto-plugin-cleanup-expired\nResoto plugin for cleanup of expired resources\n\nThis plugin looks for resources with the tags `expiration` or `resoto:expires` and flags them for cleanup if they are expired.\n\n## Tag format\n\n| Tag              | Format                      | Description                                          |\n| ---------------- | --------------------------- | ---------------------------------------------------- |\n| `resoto:expires` | `2019-09-05T10:40:11+00:00` | ISO 8601 Timestamp                                   |\n| `expiration`     | `24h`                       | A timedelta relative to the resource's creation time |\n\nExample of valid units for the `expiration` tag:\n\n```\nweeks\ndays\nhours\nminutes\n```\n\nEach of them can be abbreviated down to one letter. E.g. `7d`, `24h`, `60m`, etc. A space in between the numeric and the unit is optional, meaning `7d` and `7 days` are equivalent.\n\n## Usage\n\nIn `resh` execute\n\n```\n> config edit resoto.worker\n```\n\nand find the following section\n\n```\nplugin_cleanup_expired:\n  # Enable plugin?\n  enabled: false\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Resoto Expired Resource Cleanup Plugin",
    "version": "3.7.0",
    "project_urls": {
        "Documentation": "https://resoto.com",
        "Source": "https://github.com/someengineering/resoto/tree/main/plugins/cleanup_expired"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a9583b0fa7334a65bc02b762cc700bf0969391fbb49b611cc620addee12a84e",
                "md5": "0a4b3cc14be06ddb93874931eccaee50",
                "sha256": "38fb5dfa43d5648d3f2f90c6656a3eaf1d81dca88f3c1b84e6052949c730e245"
            },
            "downloads": -1,
            "filename": "resoto_plugin_cleanup_expired-3.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a4b3cc14be06ddb93874931eccaee50",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3523,
            "upload_time": "2023-09-27T08:17:06",
            "upload_time_iso_8601": "2023-09-27T08:17:06.361633Z",
            "url": "https://files.pythonhosted.org/packages/2a/95/83b0fa7334a65bc02b762cc700bf0969391fbb49b611cc620addee12a84e/resoto_plugin_cleanup_expired-3.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bff2f96b58d28813a62bb18c110adcda981bde955e8f332011d0f86f30dcacd4",
                "md5": "6a1533b14f2225094e7a2b24e4365739",
                "sha256": "9a9ffa2265ec5fc03349bfb0cc67fdd7c4bb636aecacfbe34c0fcd83f55d4383"
            },
            "downloads": -1,
            "filename": "resoto-plugin-cleanup-expired-3.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6a1533b14f2225094e7a2b24e4365739",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3234,
            "upload_time": "2023-09-27T08:17:08",
            "upload_time_iso_8601": "2023-09-27T08:17:08.197870Z",
            "url": "https://files.pythonhosted.org/packages/bf/f2/f96b58d28813a62bb18c110adcda981bde955e8f332011d0f86f30dcacd4/resoto-plugin-cleanup-expired-3.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-27 08:17:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "someengineering",
    "github_project": "resoto",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "resoto-plugin-cleanup-expired"
}
        
Elapsed time: 0.39841s