modulepackage
0.1.0
Repository: https://github.com/andrewspearson/gotenable.git
Documentation: pkg.go.dev
# README
GoTenable
GoTenable is a Go library for interfacing with Tenable product APIs.
Getting Started
Tenable.io
package main
import (
"github.com/andrewspearson/gotenable/gotenableutils"
"github.com/andrewspearson/gotenable/tenableio"
)
func main() {
config := tenableio.Config{}
config.AccessKey = `ACCESS_KEY`
config.SecretKey = `SECRET_KEY`
tio := tenableio.New(config)
resp := tio.Get(`/scans`)
gotenableutils.PPrintJSON(resp.Body)
}
Tenable.sc
package main
import (
"github.com/andrewspearson/gotenable/gotenableutils"
"github.com/andrewspearson/gotenable/tenablesc"
)
func main() {
config := tenablesc.Config{}
config.BaseURL = `https://tenablesc.company.local`
config.AccessKey = `ACCESS_KEY`
config.SecretKey = `SECRET_KEY`
tsc := tenablesc.New(config)
resp := tsc.Get(`/scan`)
gotenableutils.PPrintJSON(resp.Body)
}
Downloads
package main
import (
"github.com/andrewspearson/gotenable/downloads"
"github.com/andrewspearson/gotenable/gotenableutils"
)
func main() {
config := downloads.Config{}
config.BearerToken = `BEARER_TOKEN`
dl := downloads.New(config)
resp := dl.Get(`/pages`)
gotenableutils.PPrintJSON(resp.Body)
}
Documentation
See DOCUMENTATION.md for complete details.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
RequestDefaults sets default values on new Request objects.
# Variables
Create leveled logging.
No description provided by the author
No description provided by the author
No description provided by the author
RegExes for input validation.
# Structs
Client models that will be inherited.
gotenable models for global settings.
No description provided by the author
No description provided by the author