container-image-ref

Crates.iocontainer-image-ref
lib.rscontainer-image-ref
version0.1.0
sourcesrc
created_at2023-01-06 21:11:15.146959
updated_at2023-01-06 21:11:15.146959
descriptionContainer Image Referneces
homepagehttps://seaplane.io
repositoryhttps://github.com/seaplane-io/seaplane/tree/main/crates/container-image-ref
max_upload_size
id752619
size17,928
Kevin K. (kbknapp)

documentation

https://docs.rs/container-image-ref

README

Container Image Reference

Rust Version crates.io Dependency Status

A library for validating and using container image references

Grammar

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}/

License

Licensed under the Apache License, Version 2.0, LICENSE. Copyright 2023 Seaplane IO, Inc.

Commit count: 0

cargo fmt