cloudcoil.models.sealed-secrets


Namecloudcoil.models.sealed-secrets JSON
Version 0.28.0.1 PyPI version JSON
download
home_pageNone
SummaryVersioned sealed-secrets models for cloudcoil
upload_time2025-02-10 04:26:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseApache-2.0
keywords async cloud-native cloudcoil cloudcoil-models kubernetes pydantic python sealed-secrets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cloudcoil-models-sealed-secrets

Versioned sealed-secrets models for cloudcoil.
> [!WARNING]  
> This repository is auto-generated from the [cloudcoil repository](https://github.com/cloudcoil/cloudcoil/tree/main/models/sealed-secrets). Please do not submit pull requests here. Instead, submit them to the main repository at https://github.com/cloudcoil/cloudcoil.

## 🔧 Installation

> [!NOTE]
> For versioning information and compatibility, see the [Versioning Guide](https://github.com/cloudcoil/cloudcoil/blob/main/VERSIONING.md).

Using [uv](https://github.com/astral-sh/uv) (recommended):

```bash
# Install with Sealed Secrets support
uv add cloudcoil.models.sealed-secrets
```

Using pip:

```bash
pip install cloudcoil.models.sealed-secrets
```

## 💡 Examples

### Using Sealed Secrets Models

```python
from cloudcoil import apimachinery
import cloudcoil.models.sealed_secrets.v1alpha1 as sealed_secrets

# Create a SealedSecret
sealed_secret = sealed_secrets.SealedSecret(
    metadata=apimachinery.ObjectMeta(name="mysecret"),
    spec=sealed_secrets.SealedSecretSpec(
        encrypted_data={
            "username": "AgBy8hCi8...",  # Your encrypted data here
            "password": "AgBy8hCi8..."   # Your encrypted data here
        }
    )
).create()

# List SealedSecrets
for secret in sealed_secrets.SealedSecret.list():
    print(f"Found SealedSecret: {secret.metadata.name}")
```

### Using the Fluent Builder API

Cloudcoil provides a powerful fluent builder API for Sealed Secrets resources:

```python
from cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret

# Create a SealedSecret using the fluent builder
sealed_secret = (
    SealedSecret.builder()
    .metadata(lambda metadata: metadata
        .name("mysecret")
        .namespace("default")
        .labels({"app": "myapp"})
    )
    .spec(lambda spec: spec
        .encrypted_data({
            "username": "AgBy8hCi8...",  # Your encrypted data here
            "password": "AgBy8hCi8..."   # Your encrypted data here
        })
        .template(lambda template: template
            .metadata(lambda t_metadata: t_metadata
                .labels({"app": "myapp"})
            )
            .type("Opaque")
        )
    )
    .build()
)
```

### Using the Context Manager Builder API

For complex sealed secret configurations, you can use the context manager-based builder:

```python
from cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret

# Create a SealedSecret using context managers
with SealedSecret.new() as secret:
    with secret.metadata() as metadata:
        metadata.name("mysecret")
        metadata.namespace("default")
    
    with secret.spec() as spec:
        spec.encrypted_data({
            "username": "AgBy8hCi8...",  # Your encrypted data here
            "password": "AgBy8hCi8..."   # Your encrypted data here
        })
        with spec.template() as template:
            template.type("Opaque")
            with template.metadata() as t_metadata:
                t_metadata.labels({"app": "myapp"})

final_secret = secret.build()
```

## 📚 Documentation

For complete documentation, visit [cloudcoil.github.io/cloudcoil](https://cloudcoil.github.io/cloudcoil)

## 📜 License

Apache License, Version 2.0 - see [LICENSE](LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cloudcoil.models.sealed-secrets",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Sambhav Kothari <sambhavs.email@gmail.com>",
    "keywords": "async, cloud-native, cloudcoil, cloudcoil-models, kubernetes, pydantic, python, sealed-secrets",
    "author": null,
    "author_email": "Sambhav Kothari <sambhavs.email@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/00/9d/b7f7a300881839852dec442dcec1195ca199c52882ae6dc9563e6ae2b718/cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz",
    "platform": null,
    "description": "# cloudcoil-models-sealed-secrets\n\nVersioned sealed-secrets models for cloudcoil.\n> [!WARNING]  \n> This repository is auto-generated from the [cloudcoil repository](https://github.com/cloudcoil/cloudcoil/tree/main/models/sealed-secrets). Please do not submit pull requests here. Instead, submit them to the main repository at https://github.com/cloudcoil/cloudcoil.\n\n## \ud83d\udd27 Installation\n\n> [!NOTE]\n> For versioning information and compatibility, see the [Versioning Guide](https://github.com/cloudcoil/cloudcoil/blob/main/VERSIONING.md).\n\nUsing [uv](https://github.com/astral-sh/uv) (recommended):\n\n```bash\n# Install with Sealed Secrets support\nuv add cloudcoil.models.sealed-secrets\n```\n\nUsing pip:\n\n```bash\npip install cloudcoil.models.sealed-secrets\n```\n\n## \ud83d\udca1 Examples\n\n### Using Sealed Secrets Models\n\n```python\nfrom cloudcoil import apimachinery\nimport cloudcoil.models.sealed_secrets.v1alpha1 as sealed_secrets\n\n# Create a SealedSecret\nsealed_secret = sealed_secrets.SealedSecret(\n    metadata=apimachinery.ObjectMeta(name=\"mysecret\"),\n    spec=sealed_secrets.SealedSecretSpec(\n        encrypted_data={\n            \"username\": \"AgBy8hCi8...\",  # Your encrypted data here\n            \"password\": \"AgBy8hCi8...\"   # Your encrypted data here\n        }\n    )\n).create()\n\n# List SealedSecrets\nfor secret in sealed_secrets.SealedSecret.list():\n    print(f\"Found SealedSecret: {secret.metadata.name}\")\n```\n\n### Using the Fluent Builder API\n\nCloudcoil provides a powerful fluent builder API for Sealed Secrets resources:\n\n```python\nfrom cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret\n\n# Create a SealedSecret using the fluent builder\nsealed_secret = (\n    SealedSecret.builder()\n    .metadata(lambda metadata: metadata\n        .name(\"mysecret\")\n        .namespace(\"default\")\n        .labels({\"app\": \"myapp\"})\n    )\n    .spec(lambda spec: spec\n        .encrypted_data({\n            \"username\": \"AgBy8hCi8...\",  # Your encrypted data here\n            \"password\": \"AgBy8hCi8...\"   # Your encrypted data here\n        })\n        .template(lambda template: template\n            .metadata(lambda t_metadata: t_metadata\n                .labels({\"app\": \"myapp\"})\n            )\n            .type(\"Opaque\")\n        )\n    )\n    .build()\n)\n```\n\n### Using the Context Manager Builder API\n\nFor complex sealed secret configurations, you can use the context manager-based builder:\n\n```python\nfrom cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret\n\n# Create a SealedSecret using context managers\nwith SealedSecret.new() as secret:\n    with secret.metadata() as metadata:\n        metadata.name(\"mysecret\")\n        metadata.namespace(\"default\")\n    \n    with secret.spec() as spec:\n        spec.encrypted_data({\n            \"username\": \"AgBy8hCi8...\",  # Your encrypted data here\n            \"password\": \"AgBy8hCi8...\"   # Your encrypted data here\n        })\n        with spec.template() as template:\n            template.type(\"Opaque\")\n            with template.metadata() as t_metadata:\n                t_metadata.labels({\"app\": \"myapp\"})\n\nfinal_secret = secret.build()\n```\n\n## \ud83d\udcda Documentation\n\nFor complete documentation, visit [cloudcoil.github.io/cloudcoil](https://cloudcoil.github.io/cloudcoil)\n\n## \ud83d\udcdc License\n\nApache License, Version 2.0 - see [LICENSE](LICENSE)\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Versioned sealed-secrets models for cloudcoil",
    "version": "0.28.0.1",
    "project_urls": {
        "Changelog": "https://github.com/cloudcoil/models-sealed-secrets/releases",
        "Documentation": "https://cloudcoil.github.io/cloudcoil",
        "Homepage": "https://github.com/cloudcoil/cloudcoil",
        "Issues": "https://github.com/cloudcoil/models-sealed-secrets/issues",
        "Repository": "https://github.com/cloudcoil/models-sealed-secrets"
    },
    "split_keywords": [
        "async",
        " cloud-native",
        " cloudcoil",
        " cloudcoil-models",
        " kubernetes",
        " pydantic",
        " python",
        " sealed-secrets"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8edbbacc8f969c33d31ffe85ac456d173d20ab988818496354cda389b7b14be0",
                "md5": "b791baa5a05d5035d5adfe262c1ac0a2",
                "sha256": "bab68a39eab9ad67ab1010901b55c7d031593cf516c0895487399584b305db1c"
            },
            "downloads": -1,
            "filename": "cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b791baa5a05d5035d5adfe262c1ac0a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 10253,
            "upload_time": "2025-02-10T04:26:46",
            "upload_time_iso_8601": "2025-02-10T04:26:46.231257Z",
            "url": "https://files.pythonhosted.org/packages/8e/db/bacc8f969c33d31ffe85ac456d173d20ab988818496354cda389b7b14be0/cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "009db7f7a300881839852dec442dcec1195ca199c52882ae6dc9563e6ae2b718",
                "md5": "a99e225ae8430015ac2131e6c9834f0b",
                "sha256": "eeb0e12cac7d4037e2dacc4f09336349b72b577c48afc486429094273e862fb4"
            },
            "downloads": -1,
            "filename": "cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a99e225ae8430015ac2131e6c9834f0b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 71932,
            "upload_time": "2025-02-10T04:26:48",
            "upload_time_iso_8601": "2025-02-10T04:26:48.234416Z",
            "url": "https://files.pythonhosted.org/packages/00/9d/b7f7a300881839852dec442dcec1195ca199c52882ae6dc9563e6ae2b718/cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-10 04:26:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cloudcoil",
    "github_project": "models-sealed-secrets",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cloudcoil.models.sealed-secrets"
}
        
Elapsed time: 0.38858s