juju-go-example

command module
v0.0.0-...-4814668 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

juju-go-example

Summary

This is a minimal example repository showcasing how to connect to the Juju API and execute commands directly from Go, without relying on the juju client.

Running the example program will connect to a Juju controller, retrieve the status (the equivalent of running the juju status command) and print the list of applications available from the model.

The default Juju configuration from .local/share/juju is used.

Requirements
  • Go (tested with 1.15, should work with 1.14)
  • A deployed Juju controller, a model with a few deployed applications and user credentials.
Usage
$ go run ./main.go

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