generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
191 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
# This file configures Charmcraft. | ||
# See https://juju.is/docs/sdk/charmcraft-config for guidance. | ||
|
||
name: maubot | ||
title: maubot | ||
description: | | ||
A Juju charm deploying and managing maubot on Kubernetes. Maubot is a | ||
plugin-based Matrix bot system written in Python. | ||
summary: An operator deploying and managing maubot. | ||
links: | ||
issues: https://github.com/canonical/maubot-operator/issues | ||
source: https://github.com/canonical/maubot-operator | ||
contact: | ||
- https://launchpad.net/~canonical-is-devops | ||
|
||
resources: | ||
maubot-image: | ||
type: oci-image | ||
description: OCI image for maubot | ||
|
||
containers: | ||
maubot: | ||
resource: maubot-image | ||
|
||
type: charm | ||
bases: | ||
- build-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
run-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
base: [email protected] | ||
build-base: [email protected] | ||
platforms: | ||
amd64: | ||
|
||
parts: | ||
charm: | ||
build-packages: | ||
- cargo | ||
- libffi-dev | ||
- libssl-dev | ||
- pkg-config | ||
- rustc | ||
|
||
assumes: | ||
- juju >= 3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
name: maubot | ||
summary: Maubot rock | ||
description: Maubot OCI image for the Maubot charm | ||
version: "1.0" | ||
license: Apache-2.0 | ||
|
||
base: [email protected] | ||
build-base: [email protected] | ||
platforms: | ||
amd64: | ||
|
||
parts: | ||
hello: | ||
plugin: nil | ||
stage-packages: | ||
- hello |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ops >= 2.2.0 | ||
ops==2.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!-- markdownlint-disable --> | ||
|
||
<a href="../src/charm.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
# <kbd>module</kbd> `charm.py` | ||
Maubot charm service. | ||
|
||
**Global Variables** | ||
--------------- | ||
- **MAUBOT_SERVICE_NAME** | ||
- **MAUBOT_CONTAINER_NAME** | ||
|
||
|
||
--- | ||
|
||
## <kbd>class</kbd> `MaubotCharm` | ||
Maubot charm. | ||
|
||
<a href="../src/charm.py#L25"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>function</kbd> `__init__` | ||
|
||
```python | ||
__init__(*args: Any) | ||
``` | ||
|
||
Construct. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`args`</b>: Arguments passed to the CharmBase parent constructor. | ||
|
||
|
||
--- | ||
|
||
#### <kbd>property</kbd> app | ||
|
||
Application that this unit is part of. | ||
|
||
--- | ||
|
||
#### <kbd>property</kbd> charm_dir | ||
|
||
Root directory of the charm as it is running. | ||
|
||
--- | ||
|
||
#### <kbd>property</kbd> config | ||
|
||
A mapping containing the charm's config and current values. | ||
|
||
--- | ||
|
||
#### <kbd>property</kbd> meta | ||
|
||
Metadata of this charm. | ||
|
||
--- | ||
|
||
#### <kbd>property</kbd> model | ||
|
||
Shortcut for more simple access the model. | ||
|
||
--- | ||
|
||
#### <kbd>property</kbd> unit | ||
|
||
Unit that this execution is responsible for. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.