create

command
v0.0.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

README

create example

This example demonstrates creating a VM.

What it does:

  • Reads SLICER_URL and SLICER_TOKEN from the environment
  • Calls CreateVM in the vm host group
  • Prints the created VM hostname, IP, timestamp, and architecture

Run:

SLICER_URL=http://192.168.1.34:8080 \
SLICER_TOKEN=$(cat ~/slicer-token.txt) \
go run ./examples/create

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL