Charmed MySQL

Channel Revision Published Runs on
8.0/stable 313 03 Dec 2024
Ubuntu 22.04
8.0/stable 312 03 Dec 2024
Ubuntu 22.04
8.0/candidate 313 02 Dec 2024
Ubuntu 22.04
8.0/candidate 312 02 Dec 2024
Ubuntu 22.04
8.0/beta 313 02 Dec 2024
Ubuntu 22.04
8.0/beta 312 02 Dec 2024
Ubuntu 22.04
8.0/edge 325 19 Dec 2024
Ubuntu 22.04
8.0/edge 324 19 Dec 2024
Ubuntu 22.04
juju deploy mysql --channel 8.0/stable
Show information

Platform:

Ubuntu
22.04

charms.mysql.v0.s3_helpers

S3 helper functions for the MySQL charms.


def upload_content_to_s3(
    content: str,
    content_path: str,
    s3_parameters: Dict
)

Uploads the provided contents to the provided S3 bucket.

Arguments

content

The content to upload to S3

content_path

The path to which to upload the content

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, region, endpoint, access-key and secret-key

def list_backups_in_s3_path(s3_parameters: Dict)

Retrieve subdirectories in an S3 path.

Arguments

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, path, region, endpoint, access-key and secret-key

def fetch_and_check_existence_of_s3_path(
    path: str,
    s3_parameters
)

Checks the existence of a provided S3 path by fetching the object.

Arguments

s3_parameters

A dictionary containing the S3 parameters The following are expected keys in the dictionary: bucket, region, endpoint, access-key and secret-key

path

The path to check the existence of