global

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationTypeLower = "openai"                                    // example: aws, azure
	IntegrationName      = integration.Type("openai_integration")      // example: AWS_ACCOUNT, AZURE_SUBSCRIPTION
	OGPluginRepoURL      = "github.com/opengovern/og-describer-openai" // example: github.com/opengovern/og-describer-aws
)
View Source
const (
	StreamName           = "og_describer_openai"
	JobQueueTopic        = "og_describer_openai_job_queue"
	ConsumerGroup        = "describer-openai"
	JobQueueTopicManuals = "og_describer_openai_manuals_job_queue"
	ConsumerGroupManuals = "describer-openai-manuals"
)

Variables

This section is empty.

Functions

func ExtractResourceType

func ExtractResourceType(tableName string) string

func ExtractTableName

func ExtractTableName(resourceType string) string

func ExtractTagsAndNames

func ExtractTagsAndNames(logger *zap.Logger, plg *plugin.Plugin, resourceType string, source interface{}) (map[string]string, string, error)

func GetResourceTypeByTableName

func GetResourceTypeByTableName(tableName string) string

GetResourceTypeByTableName TODO: use this in integration implementation

func Plugin

func Plugin() *plugin.Plugin

Types

type IntegrationCredentials

type IntegrationCredentials struct {
	APIKey         string `json:"api_key"`
	ProjectID      string `json:"project_id"`
	ProjectName    string `json:"project_name"`
	OrganizationID string `json:"organization_id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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