internal DockerImageHistory(DockerImage image, IShellExecutor shellExecutor)
            : base(shellExecutor)
        {
            _image = image;

            _placeHolders = new List <GoFormattingPlaceHolders>();
        }
        internal DockerImage(string imageName, IShellExecutor shellExecutor)
        {
            Guard.IsNotNullOrEmpty(nameof(imageName), imageName);

            _shellExecutor = shellExecutor;

            ImageName = imageName;
        }
Ejemplo n.º 3
0
 public SearchableBase(IShellExecutor shellExecutor)
 {
     _shellExecutor = shellExecutor;
 }
Ejemplo n.º 4
0
        public DockerContainer(string containerId, IShellExecutor shellExecutor)
        {
            ContainerId = containerId;

            _shellExecutor = shellExecutor;
        }
Ejemplo n.º 5
0
 public ScriptExecutor(ScriptStorage storage, IShellExecutor shellExecutor)
 {
     _storage       = storage;
     _shellExecutor = shellExecutor;
 }
 protected ExtendedSearchableBase(IShellExecutor shellExecutor)
     : base(shellExecutor)
 {
     _filters = new Dictionary <string, string>();
 }
Ejemplo n.º 7
0
 public DockerStatus(IShellExecutor shellExecutor)
 {
     _shellExecutor = shellExecutor;
 }
 public EventsStreamer(IShellExecutor shellExecutor)
 {
     _mainStream = shellExecutor.ObserveStandardOutput("docker", " events --format \"{{json .}}\"")
                   .SubscribeOn(NewThreadScheduler.Default)
                   .Where(e => { return(e.StartsWith("{ \"status\":") || e.StartsWith("{\"status\":")); });
 }
 public DockerContainers(IShellExecutor shellExecutor)
     : base(shellExecutor)
 {
 }
Ejemplo n.º 10
0
 internal DockerImages(IShellExecutor shellExecutor)
     : base(shellExecutor)
 {
     _filters      = new Dictionary <string, string>();
     _placeHolders = new List <GoFormattingPlaceHolders>();
 }
Ejemplo n.º 11
0
        public static async Task <Result> ExecuteWithResult(this IShellExecutor shellExecutor, string arguments)
        {
            var shellResult = await shellExecutor.Execute(Commands.Docker, " " + arguments);

            return(new Result(shellResult.IsSuccessFull, shellResult.Output, shellResult.Error));
        }