ImageName class
Used to parse and hold the components of a docker image name.
Constructors
- ImageName(String? registry, String? repository, String name, String? tag)
- construct an image name from it sparts.
- ImageName.fromName(String fullname)
- constructs an image name from a full docker image name of the form registry/repo/name:tag Any of the parts may be missing except for the name.
- ImageName.fromRepositoryAndName(String repositoryAndName, {String? tag})
- Constructs an ImageName from just its repo/name with an optional tag.
Properties
- fullname → String
-
Returns the full name of the image.
Any parts that we don't have are excluded.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The simple name of this image.
getter/setter pair
- registry ↔ String?
-
The registry where this image is located.
getter/setter pair
- repository ↔ String?
-
The repository name of this image.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ String?
-
the tag name of this image. Defaults to 'latest' if an tag
is not supplied.
getter/setter pair
Methods
-
isSameFullname(
Image image) → bool -
Returns true if the passed
image
has the same name as this image. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited