api

package
v0.0.0-...-01bf647 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocks

func GetLocks(w http.ResponseWriter, _ *http.Request, sp state.Provider)

GetLocks returns information on locked States

func GetState

func GetState(w http.ResponseWriter, r *http.Request, d *db.Database)

GetState provides information on a State

func GetStateActivity

func GetStateActivity(w http.ResponseWriter, r *http.Request, d *db.Database)

GetStateActivity returns the activity (version history) of a State

func GetUser

func GetUser(w http.ResponseWriter, r *http.Request)

GetUser returns information about the logged user

func JSONError

func JSONError(w http.ResponseWriter, message string, err error)

JSONError is a wrapper function for errors which prints them to the http.ResponseWriter as a JSON response

func ListAttributeKeys

func ListAttributeKeys(w http.ResponseWriter, r *http.Request, d *db.Database)

ListAttributeKeys lists all Resource Attribute Keys, optionally filtered by resource_type

func ListResourceNames

func ListResourceNames(w http.ResponseWriter, _ *http.Request, d *db.Database)

ListResourceNames lists all Resource names

func ListResourceTypes

func ListResourceTypes(w http.ResponseWriter, _ *http.Request, d *db.Database)

ListResourceTypes lists all Resource types

func ListResourceTypesWithCount

func ListResourceTypesWithCount(w http.ResponseWriter, _ *http.Request, d *db.Database)

ListResourceTypesWithCount lists all Resource types with their associated count

func ListStateStats

func ListStateStats(w http.ResponseWriter, r *http.Request, d *db.Database)

ListStateStats returns State information for a given path as parameter

func ListStates

func ListStates(w http.ResponseWriter, _ *http.Request, d *db.Database)

ListStates lists States

func ListTerraformVersionsWithCount

func ListTerraformVersionsWithCount(w http.ResponseWriter, r *http.Request, d *db.Database)

ListTerraformVersionsWithCount lists Terraform versions with their associated counts, sorted by the 'orderBy' parameter (version by default)

func ListTfVersions

func ListTfVersions(w http.ResponseWriter, _ *http.Request, d *db.Database)

ListTfVersions lists all Terraform versions

func SearchAttribute

func SearchAttribute(w http.ResponseWriter, r *http.Request, d *db.Database)

SearchAttribute performs a search on Resource Attributes by various parameters

func StateCompare

func StateCompare(w http.ResponseWriter, r *http.Request, d *db.Database)

StateCompare compares two versions ('from' and 'to') of a State

Types

This section is empty.

Jump to

Keyboard shortcuts

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