Charmed MySQL

Channel Revision Published Runs on
8.0/stable 240 20 Jun 2024
Ubuntu 22.04
8.0/candidate 306 14 Nov 2024
Ubuntu 22.04
8.0/candidate 305 14 Nov 2024
Ubuntu 22.04
8.0/beta 306 14 Nov 2024
Ubuntu 22.04
8.0/beta 305 14 Nov 2024
Ubuntu 22.04
8.0/edge 306 14 Nov 2024
Ubuntu 22.04
8.0/edge 305 14 Nov 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