Class Inspect
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<C>
-
- com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList<Inspect>
-
- com.oracle.bedrock.runtime.docker.commands.Inspect
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
public class Inspect extends CommandWithArgumentList<Inspect>
A representation of the Docker inspect command.Instances of
Inspectare immutable, methods that add options and configuration to thisInspectcommand return a new instance of aInspectcommand with the modifications applied.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Inspectcontainer(Object... names)Create anInspectcommand to inspect the images with the specified names.static Inspectcontainer(List<?> names)Create anInspectcommand to inspect the container with the specified name.Inspectformat(String format)Format the output using the given go template.static Inspectimage(Object... names)Create anInspectcommand to inspect the images with the specified names.static Inspectimage(List<?> names)Create anInspectcommand to inspect the image with the specified name.InspectincludeSizes(boolean include)Display total file sizes if the type is container.javax.json.JsonValuerun(com.oracle.bedrock.runtime.Platform platform, Docker environment)protected InspectwithCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> names, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.protected InspectwithoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> names, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList
onLaunch, withCommandArguments, withoutCommandArguments
-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Method Detail
-
format
public Inspect format(String format)
Format the output using the given go template.- Parameters:
format- the template to use to format the output.- Returns:
- a copy of this
Inspectcommand with the specified format
-
includeSizes
public Inspect includeSizes(boolean include)
Display total file sizes if the type is container.- Parameters:
include-trueto include sizes- Returns:
- a copy of this
Inspectcommand with the specified size argument
-
withCommandArguments
protected Inspect withCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> names, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.- Specified by:
withCommandArgumentsin classCommandWithArgumentList<Inspect>- Parameters:
names- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwith the addition of the specified command argumentsArguments
-
withoutCommandArguments
protected Inspect withoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> names, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.- Specified by:
withoutCommandArgumentsin classCommandWithArgumentList<Inspect>- Parameters:
names- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwithout the specified command argumentsArguments
-
image
public static Inspect image(List<?> names)
Create anInspectcommand to inspect the image with the specified name.- Parameters:
names- the name of the image to inspect- Returns:
- an
Inspectcommand to inspect the image with the specified name
-
image
public static Inspect image(Object... names)
Create anInspectcommand to inspect the images with the specified names.- Parameters:
names- the names of the image to inspect- Returns:
- an
Inspectcommand to inspect the images with the specified name
-
container
public static Inspect container(List<?> names)
Create anInspectcommand to inspect the container with the specified name.- Parameters:
names- the name of the container to inspect- Returns:
- an
Inspectcommand to inspect the container with the specified name
-
container
public static Inspect container(Object... names)
Create anInspectcommand to inspect the images with the specified names.- Parameters:
names- the names of the image to inspect- Returns:
- an
Inspectcommand to inspect the images with the specified name
-
-