pax_global_header00006660000000000000000000000064136160761070014521gustar00rootroot0000000000000052 comment=147ff83818ae939913b2e20b91ae3cd6c391771c mitchellh-go-ps-147ff83/000077500000000000000000000000001361607610700150615ustar00rootroot00000000000000mitchellh-go-ps-147ff83/.gitignore000066400000000000000000000000121361607610700170420ustar00rootroot00000000000000.vagrant/ mitchellh-go-ps-147ff83/.travis.yml000066400000000000000000000000341361607610700171670ustar00rootroot00000000000000language: go go: - 1.2.1 mitchellh-go-ps-147ff83/LICENSE.md000066400000000000000000000020751361607610700164710ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2014 Mitchell Hashimoto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. mitchellh-go-ps-147ff83/README.md000066400000000000000000000021321361607610700163360ustar00rootroot00000000000000# Process List Library for Go [![GoDoc](https://godoc.org/github.com/mitchellh/go-ps?status.png)](https://godoc.org/github.com/mitchellh/go-ps) go-ps is a library for Go that implements OS-specific APIs to list and manipulate processes in a platform-safe way. The library can find and list processes on Linux, Mac OS X, Solaris, and Windows. If you're new to Go, this library has a good amount of advanced Go educational value as well. It uses some advanced features of Go: build tags, accessing DLL methods for Windows, cgo for Darwin, etc. How it works: * **Darwin** uses the `sysctl` syscall to retrieve the process table. * **Unix** uses the procfs at `/proc` to inspect the process tree. * **Windows** uses the Windows API, and methods such as `CreateToolhelp32Snapshot` to get a point-in-time snapshot of the process table. ## Installation Install using standard `go get`: ``` $ go get github.com/mitchellh/go-ps ... ``` ## TODO Want to contribute? Here is a short TODO list of things that aren't implemented for this library that would be nice: * FreeBSD support * Plan9 support mitchellh-go-ps-147ff83/Vagrantfile000066400000000000000000000021651361607610700172520ustar00rootroot00000000000000# -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "chef/ubuntu-12.04" config.vm.provision "shell", inline: $script ["vmware_fusion", "vmware_workstation"].each do |p| config.vm.provider "p" do |v| v.vmx["memsize"] = "1024" v.vmx["numvcpus"] = "2" v.vmx["cpuid.coresPerSocket"] = "1" end end end $script = <