Crates.io | container-image-ref |
lib.rs | container-image-ref |
version | 0.1.0 |
source | src |
created_at | 2023-01-06 21:11:15.146959 |
updated_at | 2023-01-06 21:11:15.146959 |
description | Container Image Referneces |
homepage | https://seaplane.io |
repository | https://github.com/seaplane-io/seaplane/tree/main/crates/container-image-ref |
max_upload_size | |
id | 752619 |
size | 17,928 |
A library for validating and using container image references
reference := name [ ":" tag ] [ "@" digest ]
name := [domain '/'] path-component ['/' path-component]*
domain := domain-component ['.' domain-component]* [':' port-number]
domain-component := /([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/
port-number := /[0-9]+/
path-component := alpha-numeric [separator alpha-numeric]*
alpha-numeric := /[a-z0-9]+/
separator := /[_.]|__|[-]*/
tag := /[\w][\w.-]{0,127}/
digest := digest-algorithm ":" digest-hex
digest-algorithm := digest-algorithm-component [ digest-algorithm-separator
digest-algorithm-component ]* digest-algorithm-separator := /[+.-_]/
digest-algorithm-component := /[A-Za-z][A-Za-z0-9]*/
digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value
identifier := /[a-f0-9]{64}/
short-identifier := /[a-f0-9]{6,64}/
Licensed under the Apache License, Version 2.0, LICENSE. Copyright 2023 Seaplane IO, Inc.