tenablesc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	gotenable.Config
	Vendor    string
	Product   string
	Version   string
	AccessKey string
	SecretKey string
}

Client models

type Request

type Request struct {
	gotenable.Request
}

func New

func New(config Config) Request

func (Request) Delete

func (request Request) Delete(path string) Response

func (Request) Do

func (request Request) Do(req *retryablehttp.Request) (response Response)

func (Request) Get

func (request Request) Get(path string) Response

func (Request) InteractiveLogin

func (request Request) InteractiveLogin()

InteractiveLogin takes user input to generate a session token

func (Request) Login

func (request Request) Login(username string, password string)

func (Request) Logout

func (request Request) Logout()

func (Request) Patch

func (request Request) Patch(path string, body io.Reader) Response

func (Request) Post

func (request Request) Post(path string, body io.Reader) Response

func (Request) Put

func (request Request) Put(path string, body io.Reader) Response

type Response

type Response struct {
	gotenable.Response
}

Jump to

Keyboard shortcuts

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