common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SINGLETON_ID_COMMENT_DATA = "" /* 140-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func GenerateCommentInformation

func GenerateCommentInformation(data map[string]string) string

func GetMFAEmbedded

func GetMFAEmbedded(apiExecuteFunc func() (*mfa.EntityArray, *http.Response, error), apiFunctionName string, resourceType string) (*mfa.EntityArrayEmbedded, error)

Executes the function apiExecuteFunc for the MFAAPIClient Handles err and response if Client call failed Returns embedded data if not nil Treats nil embedded data as an error

func GetManagementEmbedded

func GetManagementEmbedded(apiExecuteFunc func() (*management.EntityArray, *http.Response, error), apiFunctionName string, resourceType string) (*management.EntityArrayEmbedded, error)

Executes the function apiExecuteFunc for the ManagementAPIClient Handles err and response if Client call failed Returns embedded data if not nil Treats nil embedded data as an error

func GetProtectEmbedded

func GetProtectEmbedded(apiExecuteFunc func() (*risk.EntityArray, *http.Response, error), apiFunctionName string, resourceType string) (*risk.EntityArrayEmbedded, error)

Executes the function apiExecuteFunc for the RiskAPIClient Handles err and response if Client call failed Returns embedded data if not nil Treats nil embedded data as an error

func HandleClientResponse

func HandleClientResponse(response *http.Response, err error, apiFunctionName string, resourceType string) error

func WriteFiles

func WriteFiles(exportableResources []connector.ExportableResource, format, outputDir string, overwriteExport bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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