-
Notifications
You must be signed in to change notification settings - Fork 75
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
1 parent
fd21df2
commit 4acc1a3
Showing
8 changed files
with
238 additions
and
31 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
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,9 @@ | ||
venv/ | ||
build/ | ||
*.charm | ||
.tox/ | ||
.coverage | ||
__pycache__/ | ||
*.py[cod] | ||
.idea | ||
.vscode/ |
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,53 @@ | ||
# This file configures Charmcraft. | ||
# See https://juju.is/docs/sdk/charmcraft-config for guidance. | ||
|
||
name: {{ name }} | ||
|
||
type: charm | ||
|
||
bases: | ||
- build-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
run-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
|
||
# (Required) | ||
summary: A very short one-line summary of the Go application. | ||
|
||
# (Required) | ||
description: | | ||
A comprehensive overview of your Go application. | ||
|
||
extensions: | ||
- go-framework | ||
|
||
# Uncomment the integrations used by your application | ||
# Integrations set to "optional: false" will block the charm | ||
# until the applications are integrated. | ||
# requires: | ||
# mysql: | ||
# interface: mysql_client | ||
# optional: false | ||
# limit: 1 | ||
# postgresql: | ||
# interface: postgresql_client | ||
# optional: false | ||
# limit: 1 | ||
# mongodb: | ||
# interface: mongodb_client | ||
# optional: false | ||
# limit: 1 | ||
# redis: | ||
# interface: redis | ||
# optional: false | ||
# limit: 1 | ||
# s3: | ||
# interface: s3 | ||
# optional: false | ||
# limit: 1 | ||
# saml: | ||
# interface: saml | ||
# optional: false | ||
# limit: 1 |
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 @@ | ||
paas-app-charmer==1.* |
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,30 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright {{ year }} {{ author }} | ||
# See LICENSE file for licensing details. | ||
|
||
"""Go Charm entrypoint.""" | ||
|
||
import logging | ||
import typing | ||
|
||
import ops | ||
|
||
import paas_app_charmer.go | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class GoCharm(paas_app_charmer.go.Charm): | ||
"""Go Charm service.""" | ||
|
||
def __init__(self, *args: typing.Any) -> None: | ||
"""Initialize the instance. | ||
Args: | ||
args: passthrough to CharmBase. | ||
""" | ||
super().__init__(*args) | ||
|
||
|
||
if __name__ == "__main__": | ||
ops.main.main(GoCharm) |
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