Service class

Base class for a Docker Service.

Constructors

Service(DockerHost dockerHost, String serviceName, String? id, String? image, List<String>? ports, String? containerNetwork, String? containerHostname, [List<String>? args])

Properties

args List<String>?
getter/setter pair
containerHostname String?
final
containerNetwork String?
final
dockerHost DockerHost
final
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
image String?
final
ports List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceName String
final

Methods

catLogs({String? taskName, int? taskNumber, bool stderr = false, Pattern? waitDataMatcher, Duration? waitDataTimeout, bool waitExit = false, int? desiredExitCode, bool follow = false}) Future<String?>
Returns this Service logs as String.
listTasks() Future<List<ServiceTaskInfos>?>
Returns a list of ServiceTaskInfos of this service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openLogs(String serviceNameOrTask) Future<DockerProcess?>
Opens this Service logs.
remove() Future<bool>
Removes this service from Swarm cluster.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited