@kubenode/reference
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@kubenode/reference

Utilities for working with container image references.

Functions

parse(input)Reference

parse() splits an image reference into its various components.

Typedefs

NamedRepository : Object
Reference : Object

parse(input) ⇒ Reference

parse() splits an image reference into its various components.

Kind: global function

Param Type Description
input string The image reference string to parse.

NamedRepository : Object

Kind: global typedef Properties

Name Type Description
[domain] string The repository host and port information.
[path] string The image path.

Reference : Object

Kind: global typedef Properties

Name Type Description
namedRepository NamedRepository Object holding the image host, port, and path information.
[tag] string The image tag if one exists.
[digest] string The image digest if one exists.

Acknowledgment

This package was adapted from the Golang distribution/reference package.

Package Sidebar

Install

npm i @kubenode/reference

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

9.69 kB

Total Files

5

Last publish

Collaborators

  • cjihrig