├── debian ├── compat ├── source │ ├── format │ └── lintian-overrides ├── vmango-docs.docs ├── ppa.recipe ├── vmango.postinst ├── vmango.service ├── control ├── rules └── changelog ├── docs ├── content │ └── en │ │ ├── docs │ │ └── start.md │ │ └── _index.md ├── .gitignore ├── assets │ └── icons │ │ ├── favicon.ico │ │ └── logo.svg ├── static │ └── favicons │ │ ├── favicon.ico │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── apple-touch-icon.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ └── site.webmanifest ├── go.mod ├── archetypes │ └── default.md ├── package.json └── go.sum ├── static ├── noVNC-1.1.0 │ ├── VERSION │ ├── app │ │ ├── sounds │ │ │ ├── bell.mp3 │ │ │ ├── bell.oga │ │ │ └── CREDITS │ │ ├── styles │ │ │ ├── Orbitron700.ttf │ │ │ └── Orbitron700.woff │ │ └── images │ │ │ └── icons │ │ │ ├── novnc-16x16.png │ │ │ ├── novnc-24x24.png │ │ │ ├── novnc-32x32.png │ │ │ ├── novnc-48x48.png │ │ │ ├── novnc-60x60.png │ │ │ ├── novnc-64x64.png │ │ │ ├── novnc-72x72.png │ │ │ ├── novnc-76x76.png │ │ │ ├── novnc-96x96.png │ │ │ ├── novnc-120x120.png │ │ │ ├── novnc-144x144.png │ │ │ ├── novnc-152x152.png │ │ │ ├── novnc-192x192.png │ │ │ └── Makefile │ ├── utils │ │ ├── .eslintrc │ │ ├── b64-to-binary.pl │ │ ├── README.md │ │ ├── validate │ │ ├── u2x11 │ │ └── img2js.py │ ├── vendor │ │ ├── pako │ │ │ ├── README.md │ │ │ └── lib │ │ │ │ └── zlib │ │ │ │ ├── messages.js │ │ │ │ ├── adler32.js │ │ │ │ ├── crc32.js │ │ │ │ └── zstream.js │ │ └── browser-es-module-loader │ │ │ ├── rollup.config.js │ │ │ └── README.md │ ├── core │ │ ├── util │ │ │ ├── strings.js │ │ │ └── eventtarget.js │ │ └── decoders │ │ │ ├── copyrect.js │ │ │ └── tightpng.js │ ├── AUTHORS │ └── po │ │ └── Makefile ├── coreui │ ├── img │ │ └── logo.png │ ├── fonts │ │ ├── Simple-Line-Icons.eot │ │ ├── Simple-Line-Icons.ttf │ │ ├── Simple-Line-Icons.woff │ │ └── Simple-Line-Icons.woff2 │ └── js │ │ └── popovers.js └── vmango │ ├── img │ ├── logo.png │ ├── favicon.png │ └── linux-logo.png │ ├── vmango.ReactiveForm.js │ └── vmango.QueryStringSelector.js ├── vendor ├── github.com │ ├── rs │ │ └── zerolog │ │ │ ├── CNAME │ │ │ ├── _config.yml │ │ │ ├── pretty.png │ │ │ ├── not_go112.go │ │ │ ├── go112.go │ │ │ ├── internal │ │ │ ├── cbor │ │ │ │ └── base.go │ │ │ └── json │ │ │ │ └── base.go │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ ├── encoder_json.go │ │ │ └── encoder_cbor.go │ ├── libvirt │ │ ├── libvirt-go-xml │ │ │ ├── .gitmodules │ │ │ ├── .gitignore │ │ │ └── document.go │ │ └── libvirt-go │ │ │ ├── libvirtd.sasl │ │ │ ├── .gitignore │ │ │ └── libvirtd.conf │ ├── go-bindata │ │ └── go-bindata │ │ │ ├── _config.yml │ │ │ ├── go-bindata │ │ │ ├── .gitignore │ │ │ ├── AppendSliceValue.go │ │ │ └── version.go │ │ │ ├── Makefile │ │ │ ├── LICENSE │ │ │ ├── .gitignore │ │ │ ├── asset.go │ │ │ ├── stringwriter.go │ │ │ └── bytewriter.go │ ├── go-jose │ │ └── go-jose │ │ │ └── v4 │ │ │ ├── .gitignore │ │ │ ├── json │ │ │ └── README.md │ │ │ ├── SECURITY.md │ │ │ └── CONTRIBUTING.md │ ├── akamensky │ │ └── argparse │ │ │ ├── .travis.yml │ │ │ ├── errors.go │ │ │ ├── .gitignore │ │ │ └── extras.go │ ├── google │ │ └── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTORS │ │ │ ├── CONTRIBUTING.md │ │ │ ├── doc.go │ │ │ ├── node_js.go │ │ │ ├── README.md │ │ │ ├── marshal.go │ │ │ └── node_net.go │ ├── hashicorp │ │ └── hcl │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ ├── hcl │ │ │ └── parser │ │ │ │ └── error.go │ │ │ ├── appveyor.yml │ │ │ ├── hcl.go │ │ │ ├── lex.go │ │ │ └── parse.go │ ├── coreos │ │ └── go-oidc │ │ │ └── v3 │ │ │ ├── NOTICE │ │ │ └── oidc │ │ │ └── jose.go │ ├── imdario │ │ └── mergo │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── unrolled │ │ └── render │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ ├── helpers.go │ │ │ └── helpers_pre16.go │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── appveyor.yml │ ├── gorilla │ │ ├── websocket │ │ │ ├── AUTHORS │ │ │ ├── trace_17.go │ │ │ ├── .gitignore │ │ │ ├── mask_safe.go │ │ │ ├── conn_write.go │ │ │ ├── client_clone.go │ │ │ ├── trace.go │ │ │ ├── conn_write_legacy.go │ │ │ └── join.go │ │ ├── mux │ │ │ ├── AUTHORS │ │ │ ├── context.go │ │ │ └── test_helpers.go │ │ ├── securecookie │ │ │ ├── .travis.yml │ │ │ └── fuzz.go │ │ ├── sessions │ │ │ ├── cookie.go │ │ │ ├── cookie_go111.go │ │ │ ├── options.go │ │ │ └── options_go111.go │ │ └── csrf │ │ │ ├── context.go │ │ │ ├── AUTHORS │ │ │ ├── Gopkg.lock │ │ │ └── Gopkg.toml │ └── dustin │ │ └── go-humanize │ │ ├── humanize.go │ │ ├── ordinals.go │ │ ├── .travis.yml │ │ ├── big.go │ │ └── commaf.go ├── golang.org │ └── x │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── vgetrandom_unsupported.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── endian_big.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_little.go │ │ │ ├── mmap_nomremap.go │ │ │ ├── vgetrandom_linux.go │ │ │ ├── aliases.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sysvshm_linux.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── race0.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── race.go │ │ │ ├── env_unix.go │ │ │ ├── syscall_hurd.go │ │ │ ├── asm_bsd_arm.s │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── asm_openbsd_mips64.s │ │ │ ├── asm_bsd_386.s │ │ │ ├── asm_bsd_arm64.s │ │ │ ├── asm_bsd_riscv64.s │ │ │ ├── asm_bsd_amd64.s │ │ │ ├── asm_bsd_ppc64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── dev_aix_ppc.go │ │ │ ├── dev_darwin.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── fdset.go │ │ │ ├── fcntl_darwin.go │ │ │ ├── dev_zos.go │ │ │ ├── dev_aix_ppc64.go │ │ │ ├── syscall_netbsd_amd64.go │ │ │ ├── syscall_netbsd_arm64.go │ │ │ ├── syscall_netbsd_386.go │ │ │ ├── syscall_netbsd_arm.go │ │ │ ├── dev_netbsd.go │ │ │ ├── dev_openbsd.go │ │ │ └── asm_linux_ppc64x.s │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── pwd_go15_plan9.go │ │ │ ├── pwd_plan9.go │ │ │ ├── race0.go │ │ │ ├── mksysnum_plan9.sh │ │ │ ├── str.go │ │ │ ├── env_plan9.go │ │ │ ├── race.go │ │ │ ├── asm_plan9_arm.s │ │ │ ├── asm_plan9_386.s │ │ │ └── asm_plan9_amd64.s │ │ ├── cpu │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_loong64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_other_riscv64.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_other_ppc64x.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_other_x86.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_openbsd_arm64.s │ │ │ ├── cpu_ppc64x.go │ │ │ ├── endian_big.go │ │ │ ├── runtime_auxv_go121.go │ │ │ ├── runtime_auxv.go │ │ │ ├── endian_little.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_gc_x86.go │ │ │ ├── cpu_linux_mips64x.go │ │ │ ├── cpu_riscv64.go │ │ │ ├── asm_darwin_x86_gc.s │ │ │ ├── cpu_gc_x86.s │ │ │ ├── cpu_gccgo_x86.go │ │ │ ├── cpu_aix.go │ │ │ ├── cpu_zos_s390x.go │ │ │ ├── cpu_gc_s390x.go │ │ │ ├── syscall_aix_gccgo.go │ │ │ ├── cpu_linux_ppc64x.go │ │ │ └── cpu_linux_s390x.go │ │ └── windows │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ ├── str.go │ │ │ ├── race.go │ │ │ ├── eventlog.go │ │ │ ├── types_windows_amd64.go │ │ │ ├── types_windows_arm64.go │ │ │ ├── types_windows_386.go │ │ │ └── types_windows_arm.go │ │ ├── term │ │ ├── codereview.cfg │ │ ├── term_unix_other.go │ │ ├── term_unix_bsd.go │ │ ├── README.md │ │ └── CONTRIBUTING.md │ │ ├── oauth2 │ │ ├── internal │ │ │ ├── doc.go │ │ │ └── transport.go │ │ ├── .travis.yml │ │ └── CONTRIBUTING.md │ │ └── crypto │ │ ├── internal │ │ └── poly1305 │ │ │ └── mac_noasm.go │ │ ├── chacha20 │ │ ├── chacha_noasm.go │ │ ├── chacha_arm64.go │ │ ├── chacha_ppc64x.go │ │ └── chacha_s390x.go │ │ ├── bcrypt │ │ └── base64.go │ │ └── ssh │ │ └── doc.go └── gopkg.in │ └── yaml.v2 │ ├── .travis.yml │ ├── NOTICE │ └── writerc.go ├── configdrive ├── configdrive.go ├── nocloud.go └── format.go ├── web ├── init.go ├── user.go ├── env_csrf_error.go ├── env_handler_network.go └── env_session.go ├── vendortools └── vendortools.go ├── dockerbuild ├── vmango.recipe ├── centos8.yum.conf ├── centos7.dockerfile ├── centos8.dockerfile ├── debian10.dockerfile ├── ubuntu1804.dockerfile └── centos7.yum.conf ├── sample-subscribe-script.sh ├── templates ├── footer.html ├── css.html ├── 404.html ├── 500.html ├── 501.html ├── 400.html └── 403.html ├── .copr └── Makefile ├── compute ├── network.go ├── key.go ├── volume_pool.go ├── volume_pool_service.go ├── network_service.go ├── key_service.go ├── arch.go ├── volume.go ├── node_service.go ├── device_type.go ├── size.go ├── device_bus.go ├── size_unit.go ├── volume_format.go ├── video_model.go └── graphics_type.go ├── util ├── contains.go ├── getenv.go ├── filesize.go ├── expand_homedir.go └── error.go ├── .editorconfig ├── .gitignore ├── vmango.service ├── Dockerfile ├── bootstrap └── genpw.go ├── HOWTO-RELEASE.md ├── main.go └── go.mod /debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /docs/content/en/docs/start.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/VERSION: -------------------------------------------------------------------------------- 1 | 1.1.0 2 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/CNAME: -------------------------------------------------------------------------------- 1 | zerolog.io -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go-xml/.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /debian/vmango-docs.docs: -------------------------------------------------------------------------------- 1 | README 2 | README.Debian 3 | README.source 4 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/_config.yml: -------------------------------------------------------------------------------- 1 | remote_theme: rs/gh-readme 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/go-bindata/.gitignore: -------------------------------------------------------------------------------- 1 | go-bindata 2 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | /public 2 | /resources 3 | /node_modules 4 | .hugo_build.lock 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | make -C testdata 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-jose/go-jose/v4/.gitignore: -------------------------------------------------------------------------------- 1 | jose-util/jose-util 2 | jose-util.t.err -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go-xml/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.bak 3 | .\#* 4 | testdata/ 5 | -------------------------------------------------------------------------------- /static/coreui/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/coreui/img/logo.png -------------------------------------------------------------------------------- /static/vmango/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/vmango/img/logo.png -------------------------------------------------------------------------------- /docs/assets/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/assets/icons/favicon.ico -------------------------------------------------------------------------------- /static/vmango/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/vmango/img/favicon.png -------------------------------------------------------------------------------- /docs/static/favicons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/favicon.ico -------------------------------------------------------------------------------- /static/vmango/img/linux-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/vmango/img/linux-logo.png -------------------------------------------------------------------------------- /vendor/github.com/akamensky/argparse/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.9" 4 | - "1.10" 5 | - "1.11" 6 | -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go/libvirtd.sasl: -------------------------------------------------------------------------------- 1 | mech_list: digest-md5 2 | sasldb_path: /etc/libvirt/passwd.db 3 | -------------------------------------------------------------------------------- /docs/static/favicons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/favicon-16x16.png -------------------------------------------------------------------------------- /docs/static/favicons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/favicon-32x32.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/sounds/bell.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/sounds/bell.mp3 -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/sounds/bell.oga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/sounds/bell.oga -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/vendor/github.com/rs/zerolog/pretty.png -------------------------------------------------------------------------------- /docs/static/favicons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/apple-touch-icon.png -------------------------------------------------------------------------------- /static/coreui/fonts/Simple-Line-Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/coreui/fonts/Simple-Line-Icons.eot -------------------------------------------------------------------------------- /static/coreui/fonts/Simple-Line-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/coreui/fonts/Simple-Line-Icons.ttf -------------------------------------------------------------------------------- /static/coreui/fonts/Simple-Line-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/coreui/fonts/Simple-Line-Icons.woff -------------------------------------------------------------------------------- /configdrive/configdrive.go: -------------------------------------------------------------------------------- 1 | package configdrive 2 | 3 | type Data interface { 4 | Hostname() string 5 | PublicKeys() []string 6 | } 7 | -------------------------------------------------------------------------------- /docs/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/subuk/vmango/website 2 | 3 | go 1.22.3 4 | 5 | require github.com/google/docsy v0.10.0 // indirect 6 | -------------------------------------------------------------------------------- /static/coreui/fonts/Simple-Line-Icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/coreui/fonts/Simple-Line-Icons.woff2 -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/styles/Orbitron700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/styles/Orbitron700.ttf -------------------------------------------------------------------------------- /static/noVNC-1.1.0/utils/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | "rules": { 6 | "no-console": 0 7 | } 8 | } -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/not_go112.go: -------------------------------------------------------------------------------- 1 | // +build !go1.12 2 | 3 | package zerolog 4 | 5 | const contextCallerSkipFrameCount = 3 6 | -------------------------------------------------------------------------------- /web/init.go: -------------------------------------------------------------------------------- 1 | package web 2 | 3 | import ( 4 | "encoding/gob" 5 | ) 6 | 7 | func init() { 8 | gob.Register(&User{}) 9 | } 10 | -------------------------------------------------------------------------------- /docs/static/favicons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/android-chrome-192x192.png -------------------------------------------------------------------------------- /docs/static/favicons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/docs/static/favicons/android-chrome-512x512.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/styles/Orbitron700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/styles/Orbitron700.woff -------------------------------------------------------------------------------- /vendortools/vendortools.go: -------------------------------------------------------------------------------- 1 | // +build tools 2 | package tools 3 | 4 | import ( 5 | _ "github.com/go-bindata/go-bindata/go-bindata" 6 | ) 7 | -------------------------------------------------------------------------------- /debian/ppa.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {debupstream}-{time}~{git-commit} 2 | lp:~subuk/+git/vmango feature/debian_packaging 3 | -------------------------------------------------------------------------------- /docs/archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = '{{ replace .File.ContentBaseName "-" " " | title }}' 3 | date = {{ .Date }} 4 | draft = true 5 | +++ 6 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-16x16.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-24x24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-24x24.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-32x32.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-48x48.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-60x60.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-64x64.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-72x72.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-76x76.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-96x96.png -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go/.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-workspace 2 | *.sublime-project 3 | .vagrant 4 | /libvirt-go.test 5 | *~ 6 | .#* 7 | \#* 8 | -------------------------------------------------------------------------------- /dockerbuild/vmango.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {debupstream}-{time}~{git-commit} 2 | lp:~subuk/+git/vmango feature/debian_packaging 3 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-120x120.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-144x144.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-152x152.png -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/images/icons/novnc-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subuk/vmango/HEAD/static/noVNC-1.1.0/app/images/icons/novnc-192x192.png -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "autoprefixer": "^10.4.19", 4 | "postcss": "^8.4.38", 5 | "postcss-cli": "^11.0.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.gitignore: -------------------------------------------------------------------------------- 1 | y.output 2 | 3 | # ignore intellij files 4 | .idea 5 | *.iml 6 | *.ipr 7 | *.iws 8 | 9 | *.test 10 | -------------------------------------------------------------------------------- /web/user.go: -------------------------------------------------------------------------------- 1 | package web 2 | 3 | type User struct { 4 | Id string 5 | FullName string 6 | Email string 7 | Authenticated bool 8 | } 9 | -------------------------------------------------------------------------------- /dockerbuild/centos8.yum.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | cachedir=/cache/yum/$basearch/$releasever 3 | gpgcheck=1 4 | installonly_limit=3 5 | clean_requirements_on_remove=True 6 | best=True 7 | -------------------------------------------------------------------------------- /dockerbuild/centos7.dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7 2 | 3 | RUN yum install -y rpmdevtools make epel-release git 4 | RUN echo '%_topdir /tmp/buildd' > ~/.rpmmacros && rpmdev-setuptree 5 | -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go-xml/document.go: -------------------------------------------------------------------------------- 1 | package libvirtxml 2 | 3 | type Document interface { 4 | Unmarshal(doc string) error 5 | Marshal() (string, error) 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-oidc/v3/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /dockerbuild/centos8.dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:8 2 | 3 | RUN yum install -y rpmdevtools make epel-release git dnf-utils 4 | RUN echo '%_topdir /tmp/buildd' > ~/.rpmmacros && rpmdev-setuptree 5 | -------------------------------------------------------------------------------- /sample-subscribe-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo ARGS: $@ 4 | echo "VM ${VMANGO_VM_ID} has been created with root volume ${VMANGO_VM_VOLUME_0_PATH}" 5 | echo "Env:" 6 | env | grep VMANGO_ 7 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/libvirt/libvirt-go/libvirtd.conf: -------------------------------------------------------------------------------- 1 | listen_tls = 0 2 | listen_tcp = 1 3 | tcp_port = "16509" 4 | listen_addr = "127.0.0.1" 5 | auth_unix_rw = "none" 6 | auth_tcp = "sasl" 7 | -------------------------------------------------------------------------------- /debian/vmango.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | configure) 5 | adduser --system --group --home /var/lib/vmango vmango 6 | ;; 7 | esac 8 | 9 | #DEBHELPER# 10 | -------------------------------------------------------------------------------- /templates/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | {{template "js" }} 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | - tip 8 | 9 | branches: 10 | only: 11 | - master 12 | 13 | script: make test 14 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/app/sounds/CREDITS: -------------------------------------------------------------------------------- 1 | bell 2 | Copyright: Dr. Richard Boulanger et al 3 | URL: http://www.archive.org/details/Berklee44v12 4 | License: CC-BY Attribution 3.0 Unported 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/LICENSE: -------------------------------------------------------------------------------- 1 | This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication 2 | license. Its contents can be found at: 3 | http://creativecommons.org/publicdomain/zero/1.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/go112.go: -------------------------------------------------------------------------------- 1 | // +build go1.12 2 | 3 | package zerolog 4 | 5 | // Since go 1.12, some auto generated init functions are hidden from 6 | // runtime.Caller. 7 | const contextCallerSkipFrameCount = 2 8 | -------------------------------------------------------------------------------- /.copr/Makefile: -------------------------------------------------------------------------------- 1 | # make -f .copr/Makefile srpm outdir="/tmp/coprtest" spec="" 2 | outdir = 3 | spec = 4 | 5 | srpm: 6 | yum install -y git || dnf install -y git 7 | $(MAKE) srpm RPM_OUTDIR=$(outdir) RPM_SPEC=$(spec) 8 | -------------------------------------------------------------------------------- /compute/network.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ErrInterfaceNotFound = errors.New("interface not found") 8 | 9 | type Network struct { 10 | NodeId string 11 | Name string 12 | } 13 | -------------------------------------------------------------------------------- /util/contains.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | func ArrayContainsString(haystack []string, needle string) bool { 4 | for _, item := range haystack { 5 | if item == needle { 6 | return true 7 | } 8 | } 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | tab_width = 4 10 | 11 | [*.html] 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /util/getenv.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | func GetenvDefault(key, defaultValue string) string { 8 | value := os.Getenv(key) 9 | if value == "" { 10 | return defaultValue 11 | } 12 | return value 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | install: 3 | - go get -t 4 | - go get golang.org/x/tools/cmd/cover 5 | - go get github.com/mattn/goveralls 6 | script: 7 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 8 | -------------------------------------------------------------------------------- /vendor/github.com/unrolled/render/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - tip 7 | 8 | env: 9 | - GO111MODULE=on 10 | 11 | install: 12 | - go mod download 13 | 14 | script: 15 | - go test -v -race -tags=integration 16 | -------------------------------------------------------------------------------- /templates/css.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /compute/key.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | type Key struct { 4 | Type string 5 | Value []byte 6 | Comment string 7 | Options []string 8 | Fingerprint string 9 | } 10 | 11 | func (key *Key) ValueString() string { 12 | return string(key.Value) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.4.x 5 | - 1.5.x 6 | - 1.6.x 7 | - 1.7.x 8 | - 1.8.x 9 | - 1.9.x 10 | - 1.10.x 11 | - 1.11.x 12 | - tip 13 | 14 | script: 15 | - go test -v ./... 16 | -------------------------------------------------------------------------------- /dockerbuild/debian10.dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:10 2 | ENV TZ=UTC 3 | ENV DEBIAN_FRONTEND noninteractive 4 | RUN rm -f /etc/apt/apt.conf.d/docker-clean 5 | RUN apt-get update && apt-get install -y wget dpkg-dev devscripts equivs fakeroot debhelper software-properties-common vim git-build-recipe 6 | -------------------------------------------------------------------------------- /docs/static/favicons/site.webmanifest: -------------------------------------------------------------------------------- 1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} -------------------------------------------------------------------------------- /compute/volume_pool.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | type VolumePool struct { 4 | NodeId string 5 | Name string 6 | Size Size 7 | Used Size 8 | Free Size 9 | } 10 | 11 | func (pool *VolumePool) UsagePercent() int { 12 | return int(100 * pool.Used.Bytes() / pool.Size.Bytes()) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /pkg/ 3 | /vendor/pkg/ 4 | /vendor/bin/ 5 | /*.sublime-* 6 | /images/ 7 | /*.db 8 | /coverage*.out 9 | /web/assets_generated.go 10 | /dockerfile.build.* 11 | /rpm/vmango.spec 12 | /rpm/*.tar.gz 13 | /deb/*.tar.gz 14 | /.vscode/ 15 | /vmango.spec 16 | /result/ 17 | /vmango.conf 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Gorilla WebSocket authors for copyright 2 | # purposes. 3 | # 4 | # Please keep the list sorted. 5 | 6 | Gary Burd 7 | Google LLC (https://opensource.google.com/) 8 | Joachim Bauch 9 | 10 | -------------------------------------------------------------------------------- /debian/vmango.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Vmango web service 3 | After=network-online.target 4 | 5 | [Service] 6 | Type=simple 7 | User=vmango 8 | Group=vmango 9 | EnvironmentFile=-/etc/default/vmango 10 | ExecStart=/usr/bin/vmango web --config /etc/vmango.conf 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/trace_17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package websocket 4 | 5 | import ( 6 | "crypto/tls" 7 | "net/http/httptrace" 8 | ) 9 | 10 | func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error { 11 | return doHandshake(tlsConn, cfg) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/akamensky/argparse/errors.go: -------------------------------------------------------------------------------- 1 | package argparse 2 | 3 | type subCommandError struct { 4 | error 5 | cmd *Command 6 | } 7 | 8 | func (e subCommandError) Error() string { 9 | return "[sub]Command required" 10 | } 11 | 12 | func newSubCommandError(cmd *Command) error { 13 | return subCommandError{cmd: cmd} 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of gorilla/mux authors for copyright purposes. 2 | # 3 | # Please keep the list sorted. 4 | 5 | Google LLC (https://opensource.google.com/) 6 | Kamil Kisielk 7 | Matt Silverlock 8 | Rodrigo Moraes (https://github.com/moraes) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build loong64 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 64 10 | 11 | func initOptions() { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /dockerbuild/ubuntu1804.dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | ENV TZ=UTC 3 | ENV DEBIAN_FRONTEND noninteractive 4 | RUN rm -f /etc/apt/apt.conf.d/docker-clean 5 | RUN apt-get update && apt-get install -y wget dpkg-dev devscripts equivs fakeroot debhelper software-properties-common vim git-build-recipe 6 | RUN add-apt-repository ppa:longsleep/golang-backports 7 | -------------------------------------------------------------------------------- /util/filesize.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | func GetFileSize(filename string) (uint64, error) { 8 | file, err := os.Open(filename) 9 | if err != nil { 10 | return 0, err 11 | } 12 | size, err := file.Seek(0, os.SEEK_END) 13 | if err != nil { 14 | return 0, err 15 | } 16 | return uint64(size), nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/humanize.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package humanize converts boring ugly numbers to human-friendly strings and back. 3 | 4 | Durations can be turned into strings such as "3 days ago", numbers 5 | representing sizes like 82854982 into useful strings like, "83 MB" or 6 | "79 MiB" (whichever you prefer). 7 | */ 8 | package humanize 9 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/internal/cbor/base.go: -------------------------------------------------------------------------------- 1 | package cbor 2 | 3 | type Encoder struct{} 4 | 5 | // AppendKey adds a key (string) to the binary encoded log message 6 | func (e Encoder) AppendKey(dst []byte, key string) []byte { 7 | if len(dst) < 1 { 8 | dst = e.AppendBeginMarker(dst) 9 | } 10 | return e.AppendString(dst, key) 11 | } -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Goland project files 15 | .idea/ 16 | *.iml 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/vendor/pako/README.md: -------------------------------------------------------------------------------- 1 | This is an ES6-modules-compatible version of 2 | https://github.com/nodeca/pako, based on pako version 1.0.3. 3 | 4 | It's more-or-less a direct translation of the original, with unused parts 5 | removed, and the dynamic support for non-typed arrays removed (since ES6 6 | modules don't work well with dynamic exports). 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | install: 7 | - export GOPATH="$HOME/gopath" 8 | - mkdir -p "$GOPATH/src/golang.org/x" 9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" 10 | - go get -v -t -d golang.org/x/oauth2/... 11 | 12 | script: 13 | - go test -v golang.org/x/oauth2/... 14 | -------------------------------------------------------------------------------- /vmango.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Virtual Machine Manager 3 | After=network.target 4 | 5 | [Service] 6 | EnvironmentFile=-/etc/sysconfig/vmango 7 | User=vmango 8 | Group=vmango 9 | ExecStart=/usr/bin/vmango web --config /etc/vmango.conf 10 | Restart=on-failure 11 | RestartSec=5s 12 | PrivateTmp=true 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.7" 4 | - "1.8" 5 | - "1.9" 6 | - "1.10" 7 | - "1.11" 8 | - "1.12" 9 | - "master" 10 | matrix: 11 | allow_failures: 12 | - go: "master" 13 | script: 14 | - go test -v -race -cpu=1,2,4 -bench . -benchmem ./... 15 | - go test -v -tags binary_log -race -cpu=1,2,4 -bench . -benchmem ./... 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !ppc64le && !ppc64 && !s390x) || !gc || purego 6 | 7 | package poly1305 8 | 9 | type mac struct{ macGeneric } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/internal/json/base.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | type Encoder struct{} 4 | 5 | // AppendKey appends a new key to the output JSON. 6 | func (e Encoder) AppendKey(dst []byte, key string) []byte { 7 | if len(dst) > 1 && dst[len(dst)-1] != '{' { 8 | dst = append(dst, ',') 9 | } 10 | dst = e.AppendString(dst, key) 11 | return append(dst, ':') 12 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | fmt: generate 6 | go fmt ./... 7 | 8 | test: generate 9 | go get -t ./... 10 | go test $(TEST) $(TESTARGS) 11 | 12 | generate: 13 | go generate ./... 14 | 15 | updatedeps: 16 | go get -u golang.org/x/tools/cmd/stringer 17 | 18 | .PHONY: default generate test updatedeps 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl/parser/error.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/token" 7 | ) 8 | 9 | // PosError is a parse error that contains a position. 10 | type PosError struct { 11 | Pos token.Pos 12 | Err error 13 | } 14 | 15 | func (e *PosError) Error() string { 16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/akamensky/argparse/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | 16 | .idea/ -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/core/util/strings.js: -------------------------------------------------------------------------------- 1 | /* 2 | * noVNC: HTML5 VNC client 3 | * Copyright (C) 2018 The noVNC Authors 4 | * Licensed under MPL 2.0 (see LICENSE.txt) 5 | * 6 | * See README.md for usage and integration instructions. 7 | */ 8 | 9 | /* 10 | * Decode from UTF-8 11 | */ 12 | export function decodeUTF8(utf8string) { 13 | return decodeURIComponent(escape(utf8string)); 14 | } 15 | -------------------------------------------------------------------------------- /web/env_csrf_error.go: -------------------------------------------------------------------------------- 1 | package web 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | 7 | "github.com/gorilla/csrf" 8 | ) 9 | 10 | func (env *Environ) CsrfError(rw http.ResponseWriter, req *http.Request) { 11 | errorText := fmt.Sprintf("%s - %s", 12 | http.StatusText(http.StatusForbidden), 13 | csrf.FailureReason(req), 14 | ) 15 | http.Error(rw, errorText, http.StatusBadRequest) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /docs/go.sum: -------------------------------------------------------------------------------- 1 | github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= 2 | github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg= 3 | github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc= 4 | github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || linux || solaris || zos 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /util/expand_homedir.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "fmt" 5 | os_user "os/user" 6 | "strings" 7 | ) 8 | 9 | func ExpandHomeDir(filename string) string { 10 | if strings.HasPrefix(filename, "~/") { 11 | user, err := os_user.Current() 12 | if err != nil { 13 | panic(fmt.Errorf("cannot get current user: %s", err)) 14 | } 15 | return user.HomeDir + filename[1:] 16 | } 17 | return filename 18 | } 19 | -------------------------------------------------------------------------------- /util/error.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type Error struct { 8 | Original error 9 | Message string 10 | } 11 | 12 | func NewError(err error, msg string, args ...interface{}) Error { 13 | return Error{ 14 | Original: err, 15 | Message: fmt.Sprintf(msg, args...), 16 | } 17 | } 18 | 19 | func (e Error) Error() string { 20 | return fmt.Sprintf("%s: %s", e.Message, e.Original) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | .idea/ 25 | *.iml 26 | -------------------------------------------------------------------------------- /vendor/github.com/rs/zerolog/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | tmp 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /templates/404.html: -------------------------------------------------------------------------------- 1 | {{template "header" .}} 2 |
3 |
4 |
5 |
6 |

404

7 |

Not found

8 |

{{ .Error }}

9 |
10 |
11 |
12 |
13 | {{template "footer" .}} 14 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: vmango 2 | Maintainer: Matvey Kruglov 3 | Section: admin 4 | Priority: optional 5 | Build-Depends: libvirt-dev (>=1.2.0), debhelper (>=10), golang, pkg-config 6 | Standards-Version: 4.1.2 7 | Homepage: https://github.com/subuk/vmango 8 | 9 | Package: vmango 10 | Architecture: any 11 | Depends: genisoimage, ${shlibs:Depends}, ${misc:Depends} 12 | Description: Your own personal IaaS cloud 13 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/context.go: -------------------------------------------------------------------------------- 1 | package mux 2 | 3 | import ( 4 | "context" 5 | "net/http" 6 | ) 7 | 8 | func contextGet(r *http.Request, key interface{}) interface{} { 9 | return r.Context().Value(key) 10 | } 11 | 12 | func contextSet(r *http.Request, key, val interface{}) *http.Request { 13 | if val == nil { 14 | return r 15 | } 16 | 17 | return r.WithContext(context.WithValue(r.Context(), key, val)) 18 | } 19 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/AUTHORS: -------------------------------------------------------------------------------- 1 | maintainers: 2 | - Joel Martin (@kanaka) 3 | - Solly Ross (@directxman12) 4 | - Samuel Mannehed for Cendio AB (@samhed) 5 | - Pierre Ossman for Cendio AB (@CendioOssman) 6 | maintainersEmeritus: 7 | - @astrand 8 | contributors: 9 | # There are a bunch of people that should be here. 10 | # If you want to be on this list, feel free send a PR 11 | # to add yourself. 12 | - jalf 13 | - NTT corp. 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/securecookie/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | matrix: 5 | include: 6 | - go: 1.3 7 | - go: 1.4 8 | - go: 1.5 9 | - go: 1.6 10 | - go: 1.7 11 | - go: tip 12 | allow_failures: 13 | - go: tip 14 | 15 | script: 16 | - go get -t -v ./... 17 | - diff -u <(echo -n) <(gofmt -d .) 18 | - go vet $(go list ./... | grep -v /vendor/) 19 | - go test -v -race ./... 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /compute/volume_pool_service.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | type VolumePoolListOptions struct { 4 | NodeIds []string 5 | } 6 | 7 | type VolumePoolRepository interface { 8 | List(options VolumePoolListOptions) ([]*VolumePool, error) 9 | } 10 | 11 | type VolumePoolService struct { 12 | VolumePoolRepository 13 | } 14 | 15 | func NewVolumePoolService(repo VolumePoolRepository) *VolumePoolService { 16 | return &VolumePoolService{repo} 17 | } 18 | -------------------------------------------------------------------------------- /templates/500.html: -------------------------------------------------------------------------------- 1 | {{template "header" .}} 2 |
3 |
4 |
5 |
6 |

500

7 |

Internal server error

8 |

{{ .Error }}

9 |
10 |
11 |
12 |
13 | {{template "footer" .}} 14 | -------------------------------------------------------------------------------- /templates/501.html: -------------------------------------------------------------------------------- 1 | {{template "header" .}} 2 |
3 |
4 |
5 |
6 |

404

7 |

Method not implemented

8 |

{{ .Error }}

9 |
10 |
11 |
12 |
13 | {{template "footer" .}} 14 | -------------------------------------------------------------------------------- /vendor/github.com/unrolled/render/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | 25 | 26 | *.pem 27 | .DS_Store 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/mask_safe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. Use of 2 | // this source code is governed by a BSD-style license that can be found in the 3 | // LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package websocket 8 | 9 | func maskBytes(key [4]byte, pos int, b []byte) int { 10 | for i := range b { 11 | b[i] ^= key[pos&3] 12 | pos++ 13 | } 14 | return pos & 3 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf false 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -t ./... 17 | 18 | build_script: 19 | - cmd: go test -v ./... 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_write.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.8 6 | 7 | package websocket 8 | 9 | import "net" 10 | 11 | func (c *Conn) writeBufs(bufs ...[]byte) error { 12 | b := net.Buffers(bufs) 13 | _, err := b.WriteTo(c.conn) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /compute/network_service.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | type NetworkListOptions struct { 4 | NodeIds []string 5 | } 6 | 7 | type NetworkRepository interface { 8 | List(options NetworkListOptions) ([]*Network, error) 9 | Get(name, node string) (*Network, error) 10 | } 11 | 12 | type NetworkService struct { 13 | NetworkRepository 14 | } 15 | 16 | func NewNetworkService(repo NetworkRepository) *NetworkService { 17 | return &NetworkService{repo} 18 | } 19 | -------------------------------------------------------------------------------- /templates/400.html: -------------------------------------------------------------------------------- 1 | {{template "header" .}} 2 |
3 |
4 |
5 |
6 |

400

7 |

{{ .Error }}

8 |

Please fix your input and try again.

9 |
10 |
11 |
12 |
13 | {{template "footer" .}} 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /docs/assets/icons/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /templates/403.html: -------------------------------------------------------------------------------- 1 | {{template "header" .}} 2 |
3 |
4 |
5 |
6 |

403

7 |

{{ .Error }}

8 |

You don't have enought rights to access this page.

9 |
10 |
11 |
12 |
13 | {{template "footer" .}} 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/client_clone.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.8 6 | 7 | package websocket 8 | 9 | import "crypto/tls" 10 | 11 | func cloneTLSConfig(cfg *tls.Config) *tls.Config { 12 | if cfg == nil { 13 | return &tls.Config{} 14 | } 15 | return cfg.Clone() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /dockerbuild/centos7.yum.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | cachedir=/cache/yum/$basearch/$releasever 3 | keepcache=1 4 | debuglevel=2 5 | logfile=/var/log/yum.log 6 | exactarch=1 7 | assumeyes=1 8 | obsoletes=1 9 | gpgcheck=1 10 | plugins=1 11 | installonly_limit=5 12 | bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum 13 | distroverpkg=centos-release 14 | override_install_langs=en_US.UTF-8 15 | tsflags=nodocs 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego 6 | 7 | package chacha20 8 | 9 | const bufSize = blockSize 10 | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { 12 | s.xorKeyStreamBlocksGeneric(dst, src) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/vendor/browser-es-module-loader/rollup.config.js: -------------------------------------------------------------------------------- 1 | import nodeResolve from 'rollup-plugin-node-resolve'; 2 | 3 | export default { 4 | entry: 'src/browser-es-module-loader.js', 5 | dest: 'dist/browser-es-module-loader.js', 6 | format: 'umd', 7 | moduleName: 'BrowserESModuleLoader', 8 | sourceMap: true, 9 | 10 | plugins: [ 11 | nodeResolve(), 12 | ], 13 | 14 | // skip rollup warnings (specifically the eval warning) 15 | onwarn: function() {} 16 | }; 17 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /static/coreui/js/popovers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | /** 4 | * -------------------------------------------------------------------------- 5 | * CoreUI Free Boostrap Admin Template (v2.1.15): popovers.js 6 | * Licensed under MIT (https://coreui.io/license) 7 | * -------------------------------------------------------------------------- 8 | */ 9 | $('[data-toggle="popover"]').popover(); 10 | $('.popover-dismiss').popover({ 11 | trigger: 'focus' 12 | }); 13 | //# sourceMappingURL=popovers.js.map -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/utils/b64-to-binary.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | use MIME::Base64; 3 | 4 | for (<>) { 5 | unless (/^'([{}])(\d+)\1(.+?)',$/) { 6 | print; 7 | next; 8 | } 9 | 10 | my ($dir, $amt, $b64) = ($1, $2, $3); 11 | 12 | my $decoded = MIME::Base64::decode($b64) or die "Could not base64-decode line `$_`"; 13 | 14 | my $decoded_escaped = join "", map { "\\x$_" } unpack("(H2)*", $decoded); 15 | 16 | print "'${dir}${amt}${dir}${decoded_escaped}',\n"; 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.5 6 | 7 | package plan9 8 | 9 | import "syscall" 10 | 11 | func fixwd() { 12 | syscall.Fixwd() 13 | } 14 | 15 | func Getwd() (wd string, err error) { 16 | return syscall.Getwd() 17 | } 18 | 19 | func Chdir(path string) error { 20 | return syscall.Chdir(path) 21 | } 22 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:8 2 | RUN yum install -y golang libvirt-devel make 3 | COPY . /source 4 | WORKDIR /source 5 | RUN make 6 | 7 | FROM centos:8 8 | RUN yum install -y libvirt-libs && yum clean all 9 | COPY --from=0 /source/bin/vmango /usr/bin/vmango 10 | COPY vmango.dist.conf /etc/vmango.conf 11 | 12 | RUN useradd -s /bin/bash -m -d /var/lib/vmango vmango 13 | USER vmango 14 | WORKDIR /var/lib/vmango 15 | 16 | VOLUME /var/lib/vmango 17 | EXPOSE 8080 18 | CMD /usr/bin/vmango web --config /etc/vmango.conf 19 | -------------------------------------------------------------------------------- /static/vmango/vmango.ReactiveForm.js: -------------------------------------------------------------------------------- 1 | (function(exports){ 2 | exports.Vmango = exports.Vmango || {}; 3 | exports.Vmango.ReactiveForm = function(selector){ 4 | var $form = $(selector); 5 | $form.on('submit', function(){ 6 | var $button = $('button[type=submit]', selector); 7 | $button.prop('disabled', true); 8 | $button.html( 9 | $button.attr('data-loading') || 'Loading...' 10 | ); 11 | }); 12 | } 13 | })(window); 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/trace.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package websocket 4 | 5 | import ( 6 | "crypto/tls" 7 | "net/http/httptrace" 8 | ) 9 | 10 | func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error { 11 | if trace.TLSHandshakeStart != nil { 12 | trace.TLSHandshakeStart() 13 | } 14 | err := doHandshake(tlsConn, cfg) 15 | if trace.TLSHandshakeDone != nil { 16 | trace.TLSHandshakeDone(tlsConn.ConnectionState(), err) 17 | } 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /compute/key_service.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | import "errors" 4 | 5 | var ErrKeyNotFound = errors.New("key not found") 6 | var ErrKeyAlreadyExists = errors.New("already exists") 7 | 8 | type KeyRepository interface { 9 | List() ([]*Key, error) 10 | Get(fingerprint string) (*Key, error) 11 | Add(input string) error 12 | Delete(fingerprint string) error 13 | } 14 | 15 | type KeyService struct { 16 | KeyRepository 17 | } 18 | 19 | func NewKeyService(repo KeyRepository) *KeyService { 20 | return &KeyService{repo} 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/ordinals.go: -------------------------------------------------------------------------------- 1 | package humanize 2 | 3 | import "strconv" 4 | 5 | // Ordinal gives you the input number in a rank/ordinal format. 6 | // 7 | // Ordinal(3) -> 3rd 8 | func Ordinal(x int) string { 9 | suffix := "th" 10 | switch x % 10 { 11 | case 1: 12 | if x%100 != 11 { 13 | suffix = "st" 14 | } 15 | case 2: 16 | if x%100 != 12 { 17 | suffix = "nd" 18 | } 19 | case 3: 20 | if x%100 != 13 { 21 | suffix = "rd" 22 | } 23 | } 24 | return strconv.Itoa(x) + suffix 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_write_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.8 6 | 7 | package websocket 8 | 9 | func (c *Conn) writeBufs(bufs ...[]byte) error { 10 | for _, buf := range bufs { 11 | if len(buf) > 0 { 12 | if _, err := c.conn.Write(buf); err != nil { 13 | return err 14 | } 15 | } 16 | } 17 | return nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/sessions/cookie.go: -------------------------------------------------------------------------------- 1 | // +build !go1.11 2 | 3 | package sessions 4 | 5 | import "net/http" 6 | 7 | // newCookieFromOptions returns an http.Cookie with the options set. 8 | func newCookieFromOptions(name, value string, options *Options) *http.Cookie { 9 | return &http.Cookie{ 10 | Name: name, 11 | Value: value, 12 | Path: options.Path, 13 | Domain: options.Domain, 14 | MaxAge: options.MaxAge, 15 | Secure: options.Secure, 16 | HttpOnly: options.HttpOnly, 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /static/noVNC-1.1.0/vendor/browser-es-module-loader/README.md: -------------------------------------------------------------------------------- 1 | Custom Browser ES Module Loader 2 | =============================== 3 | 4 | This is a module loader using babel and the ES Module Loader polyfill. 5 | It's based heavily on 6 | https://github.com/ModuleLoader/browser-es-module-loader, but uses 7 | WebWorkers to compile the modules in the background. 8 | 9 | To generate, run `rollup -c` in this directory, and then run `browserify 10 | src/babel-worker.js > dist/babel-worker.js`. 11 | 12 | LICENSE 13 | ------- 14 | 15 | MIT 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/asset.go: -------------------------------------------------------------------------------- 1 | // This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication 2 | // license. Its contents can be found at: 3 | // http://creativecommons.org/publicdomain/zero/1.0/ 4 | 5 | package bindata 6 | 7 | // Asset holds information about a single asset to be processed. 8 | type Asset struct { 9 | Path string // Full file path. 10 | Name string // Key used in TOC -- name by which asset is referenced. 11 | Func string // Function name for the procedure returning the asset contents. 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.5 6 | 7 | package plan9 8 | 9 | func fixwd() { 10 | } 11 | 12 | func Getwd() (wd string, err error) { 13 | fd, err := open(".", O_RDONLY) 14 | if err != nil { 15 | return "", err 16 | } 17 | defer Close(fd) 18 | return Fd2path(fd) 19 | } 20 | 21 | func Chdir(path string) error { 22 | return chdir(path) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl.go: -------------------------------------------------------------------------------- 1 | // Package hcl decodes HCL into usable Go structures. 2 | // 3 | // hcl input can come in either pure HCL format or JSON format. 4 | // It can be parsed into an AST, and then decoded into a structure, 5 | // or it can be decoded directly from a string into a structure. 6 | // 7 | // If you choose to parse HCL into a raw AST, the benefit is that you 8 | // can write custom visitor implementations to implement custom 9 | // semantic checks. By default, HCL does not perform any semantic 10 | // checks. 11 | package hcl 12 | -------------------------------------------------------------------------------- /vendor/github.com/unrolled/render/helpers.go: -------------------------------------------------------------------------------- 1 | // +build go1.6 2 | 3 | package render 4 | 5 | import ( 6 | "fmt" 7 | "html/template" 8 | ) 9 | 10 | // Included helper functions for use when rendering HTML. 11 | var helperFuncs = template.FuncMap{ 12 | "yield": func() (string, error) { 13 | return "", fmt.Errorf("yield called with no layout defined") 14 | }, 15 | "partial": func() (string, error) { 16 | return "", fmt.Errorf("block called with no layout defined") 17 | }, 18 | "current": func() (string, error) { 19 | return "", nil 20 | }, 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/securecookie/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package securecookie 4 | 5 | var hashKey = []byte("very-secret12345") 6 | var blockKey = []byte("a-lot-secret1234") 7 | var s = New(hashKey, blockKey) 8 | 9 | type Cookie struct { 10 | B bool 11 | I int 12 | S string 13 | } 14 | 15 | func Fuzz(data []byte) int { 16 | datas := string(data) 17 | var c Cookie 18 | if err := s.Decode("fuzz", datas, &c); err != nil { 19 | return 0 20 | } 21 | if _, err := s.Encode("fuzz", c); err != nil { 22 | panic(err) 23 | } 24 | return 1 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.3.x 5 | - 1.5.x 6 | - 1.6.x 7 | - 1.7.x 8 | - 1.8.x 9 | - 1.9.x 10 | - master 11 | matrix: 12 | allow_failures: 13 | - go: master 14 | fast_finish: true 15 | install: 16 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 17 | script: 18 | - go get -t -v ./... 19 | - diff -u <(echo -n) <(gofmt -d -s .) 20 | - go tool vet . 21 | - go test -v -race ./... 22 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/sessions/cookie_go111.go: -------------------------------------------------------------------------------- 1 | // +build go1.11 2 | 3 | package sessions 4 | 5 | import "net/http" 6 | 7 | // newCookieFromOptions returns an http.Cookie with the options set. 8 | func newCookieFromOptions(name, value string, options *Options) *http.Cookie { 9 | return &http.Cookie{ 10 | Name: name, 11 | Value: value, 12 | Path: options.Path, 13 | Domain: options.Domain, 14 | MaxAge: options.MaxAge, 15 | Secure: options.Secure, 16 | HttpOnly: options.HttpOnly, 17 | SameSite: options.SameSite, 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /bootstrap/genpw.go: -------------------------------------------------------------------------------- 1 | package bootstrap 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "strings" 7 | 8 | "golang.org/x/crypto/bcrypt" 9 | "golang.org/x/crypto/ssh/terminal" 10 | ) 11 | 12 | func GenPassword() { 13 | fmt.Fprintf(os.Stderr, "Password: ") 14 | passwordBytes, _ := terminal.ReadPassword(0) 15 | password := strings.TrimSpace(string(passwordBytes)) 16 | hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost) 17 | if err != nil { 18 | panic(err) 19 | } 20 | fmt.Printf(string(hashedPassword)) 21 | fmt.Fprintf(os.Stderr, "\n") 22 | } 23 | -------------------------------------------------------------------------------- /compute/arch.go: -------------------------------------------------------------------------------- 1 | package compute 2 | 3 | type Arch int 4 | 5 | const ( 6 | ArchUnknown = Arch(0) 7 | ArchAmd64 = Arch(1) 8 | ArchAarch64 = Arch(2) 9 | ) 10 | 11 | func (arch Arch) String() string { 12 | switch arch { 13 | default: 14 | return "unknown" 15 | case ArchAmd64: 16 | return "x86_64" 17 | case ArchAarch64: 18 | return "aarch64" 19 | } 20 | } 21 | 22 | func NewArch(input string) Arch { 23 | switch input { 24 | default: 25 | return ArchUnknown 26 | case "x86_64": 27 | return ArchAmd64 28 | case "aarch64": 29 | return ArchAarch64 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego && (ppc64 || ppc64le) 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/sessions/options.go: -------------------------------------------------------------------------------- 1 | // +build !go1.11 2 | 3 | package sessions 4 | 5 | // Options stores configuration for a session or session store. 6 | // 7 | // Fields are a subset of http.Cookie fields. 8 | type Options struct { 9 | Path string 10 | Domain string 11 | // MaxAge=0 means no Max-Age attribute specified and the cookie will be 12 | // deleted after the browser session ends. 13 | // MaxAge<0 means delete cookie immediately. 14 | // MaxAge>0 means Max-Age attribute present and given in seconds. 15 | MaxAge int 16 | Secure bool 17 | HttpOnly bool 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build plan9 && !race 6 | 7 | package plan9 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <