Exemplo n.º 1
0
 public StartDockerContainerAction(DockerContainer dockerContainer)
     : base(dockerContainer,
            string.Format(Messages.ACTION_START_CONTAINER_TITLE, dockerContainer.Name()),
            Messages.ACTION_START_CONTAINER_DESCRIPTION,
            Messages.ACTION_START_CONTAINER_END_DESCRIPTION,
            "start")
 {
 }
Exemplo n.º 2
0
 public ResumeDockerContainerAction(DockerContainer dockerContainer)
     : base(dockerContainer,
            string.Format(Messages.ACTION_RESUME_CONTAINER_TITLE, dockerContainer.Name()),
            Messages.ACTION_RESUME_CONTAINER_DESCRIPTION,
            Messages.ACTION_RESUME_CONTAINER_END_DESCRIPTION,
            "unpause")
 {
 }
Exemplo n.º 3
0
        private void StartUpdating()
        {
            var args = new Dictionary <string, string>();

            args["vmuuid"] = parentVM.uuid;
            args["object"] = container.Name();

            var action = new ExecuteContainerPluginAction(container, host,
                                                          "xscontainer", "get_top", args, true);

            action.Completed += action_Completed;
            action.RunAsync();
        }
Exemplo n.º 4
0
 private VirtualTreeNode AddDockerContainerNode(DockerContainer cont)
 {
     return(AddNode(cont.Name().Ellipsise(1000), Images.GetIconFor(cont), cont.IsHidden(), cont));
 }