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;
        }
Esempio n. 3
0
 public SearchableBase(IShellExecutor shellExecutor)
 {
     _shellExecutor = shellExecutor;
 }
Esempio n. 4
0
        public DockerContainer(string containerId, IShellExecutor shellExecutor)
        {
            ContainerId = containerId;

            _shellExecutor = shellExecutor;
        }
Esempio n. 5
0
 public ScriptExecutor(ScriptStorage storage, IShellExecutor shellExecutor)
 {
     _storage       = storage;
     _shellExecutor = shellExecutor;
 }
 protected ExtendedSearchableBase(IShellExecutor shellExecutor)
     : base(shellExecutor)
 {
     _filters = new Dictionary <string, string>();
 }
Esempio 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)
 {
 }
Esempio n. 10
0
 internal DockerImages(IShellExecutor shellExecutor)
     : base(shellExecutor)
 {
     _filters      = new Dictionary <string, string>();
     _placeHolders = new List <GoFormattingPlaceHolders>();
 }
Esempio 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));
        }