api

package module
v0.0.0-...-d913076 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 6 Imported by: 1

README

Go Report Card

Veracode Go API

A Go version of the Veracode API.

Running

Create a Go file with the following example contents:

package main

import (
	api "github.com/antfie/veracode-go-api"
)

func main() {
	var apiKeyID = "YOUR_VERACODE_API_KEY_ID"
	var apiKeySecret = "YOUR_VERACODE_API_KEY_SECRET"

	response, err := api.GetApplicationList(apiKeyID, apiKeySecret)

	if err != nil {
		panic(err)
	}

	print(response)
}

Configure your apiKeyID and apiKeySecret values and then run.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	XMLName xml.Name `xml:"app"`
	Id      int      `xml:"app_id"`
	Name    string   `xml:"app_name"`
}

type ApplicationList

type ApplicationList struct {
	XMLName      xml.Name      `xml:"applist"`
	Applications []Application `xml:"app"`
}

func GetApplicationList

func GetApplicationList(apiKeyID, apiKeySecret string) (ApplicationList, error)

GetApplicationList returns a list of applications.

Jump to

Keyboard shortcuts

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