Charmed MySQL

  • By Canonical Data Platform
  • Cloud
Channel Revision Published Runs on
8.0/stable 196 29 Sep 2023
Ubuntu 22.04
8.0/candidate 203 14 Dec 2023
Ubuntu 22.04
8.0/beta 216 18 Mar 2024
Ubuntu 22.04
8.0/edge 222 16 Apr 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