예제 #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")
 {
 }
예제 #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")
 {
 }
예제 #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();
        }
예제 #4
0
 private VirtualTreeNode AddDockerContainerNode(DockerContainer cont)
 {
     return(AddNode(cont.Name().Ellipsise(1000), Images.GetIconFor(cont), cont.IsHidden(), cont));
 }