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