Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResourceTypeConfigs = map[string]*interfaces.ResourceTypeConfiguration{ "OpenAI/Project": { Name: "OpenAI/Project", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Project/ApiKey": { Name: "OpenAI/Project/ApiKey", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Project/RateLimit": { Name: "OpenAI/Project/RateLimit", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Project/ServiceAccount": { Name: "OpenAI/Project/ServiceAccount", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Project/User": { Name: "OpenAI/Project/User", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Model": { Name: "OpenAI/Model", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/File": { Name: "OpenAI/File", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/VectorStore": { Name: "OpenAI/VectorStore", IntegrationType: constants.IntegrationName, Description: "", }, "OpenAI/Assistant": { Name: "OpenAI/Assistant", IntegrationType: constants.IntegrationName, Description: "", }, }
View Source
var ResourceTypeToDescription = map[string]interface{}{
"OpenAI/Project": opengovernance.Project{},
"OpenAI/Project/ApiKey": opengovernance.ProjectApiKey{},
"OpenAI/Project/RateLimit": opengovernance.ProjectRateLimit{},
"OpenAI/Project/ServiceAccount": opengovernance.ProjectServiceAccount{},
"OpenAI/Project/User": opengovernance.ProjectUser{},
"OpenAI/Model": opengovernance.Models{},
"OpenAI/File": opengovernance.File{},
"OpenAI/VectorStore": opengovernance.VectorStore{},
"OpenAI/Assistant": opengovernance.Assistant{},
}
View Source
var ResourceTypes = map[string]model.ResourceType{ "OpenAI/Project": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Project", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListProjects), GetDescriber: provider.DescribeSingleByOpenAI(describers.GetProject), }, "OpenAI/Project/ApiKey": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Project/ApiKey", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListProjectAPIKeys), GetDescriber: nil, }, "OpenAI/Project/RateLimit": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Project/RateLimit", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListProjectRateLimits), GetDescriber: nil, }, "OpenAI/Project/ServiceAccount": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Project/ServiceAccount", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListProjectServiceAccounts), GetDescriber: nil, }, "OpenAI/Project/User": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Project/User", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListProjectUsers), GetDescriber: nil, }, "OpenAI/Model": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Model", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListModels), GetDescriber: provider.DescribeSingleByOpenAI(describers.GetModel), }, "OpenAI/File": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/File", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListFiles), GetDescriber: nil, }, "OpenAI/VectorStore": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/VectorStore", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListVectorStores), GetDescriber: provider.DescribeSingleByOpenAI(describers.GetVectorStore), }, "OpenAI/Assistant": { IntegrationType: constants.IntegrationName, ResourceName: "OpenAI/Assistant", Tags: map[string][]string{}, Labels: map[string]string{}, Annotations: map[string]string{}, ListDescriber: provider.DescribeListByOpenAI(describers.ListAssistants), GetDescriber: provider.DescribeSingleByOpenAI(describers.GetAssistant), }, }
View Source
var ResourceTypesList = []string{
"OpenAI/Project",
"OpenAI/Project/ApiKey",
"OpenAI/Project/RateLimit",
"OpenAI/Project/ServiceAccount",
"OpenAI/Project/User",
"OpenAI/Model",
"OpenAI/File",
"OpenAI/VectorStore",
"OpenAI/Assistant",
}
View Source
var ResourceTypesToTables = map[string]string{
"OpenAI/Project": "openai_project",
"OpenAI/Project/ApiKey": "openai_project_api_key",
"OpenAI/Project/RateLimit": "openai_project_rate_limit",
"OpenAI/Project/ServiceAccount": "openai_project_service_account",
"OpenAI/Project/User": "openai_project_user",
"OpenAI/Model": "openai_model",
"OpenAI/File": "openai_file",
"OpenAI/VectorStore": "openai_vector_store",
"OpenAI/Assistant": "openai_assistant",
}
View Source
var TablesToResourceTypes = map[string]string{
"openai_project": "OpenAI/Project",
"openai_project_api_key": "OpenAI/Project/ApiKey",
"openai_project_rate_limit": "OpenAI/Project/RateLimit",
"openai_project_service_account": "OpenAI/Project/ServiceAccount",
"openai_project_user": "OpenAI/Project/User",
"openai_model": "OpenAI/Model",
"openai_file": "OpenAI/File",
"openai_vector_store": "OpenAI/VectorStore",
"openai_assistant": "OpenAI/Assistant",
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.