probeArtifact

get_most_recent_docker_image

Get the most recent image information for a container.

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosgcp.artifact.probes
Nameget_most_recent_docker_image
Returnmapping

Usage

JSON

{
  "name": "get-most-recent-docker-image",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.artifact.probes",
    "func": "get_most_recent_docker_image",
    "arguments": {
      "repository": "",
      "package_name": ""
    }
  }
}

YAML

name: get-most-recent-docker-image
provider:
  arguments:
    package_name: ""
    repository: ""
  func: get_most_recent_docker_image
  module: chaosgcp.artifact.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
repositorystringYesRepositoryName of the repository
package_namestringYesContainer NameName of the container in the repository

Signature

def get_most_recent_docker_image(
        repository: str,
        package_name: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass