dashboard

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL_DELETE_API_KEYS = "/v2/dashboard/projects/%s/api-key"
)
View Source
const (
	URL_DELETE_PROJECT = "/v2/dashboard/projects/%s"
)
View Source
const (
	URL_GET_API_KEYS = "/v2/dashboard/projects/%s/api-keys"
)
View Source
const (
	URL_GET_ORGANIZATION = "/v2/dashboard/organizations/%s"
)
View Source
const (
	URL_LIST_ORGANIZATIONS = "/v2/dashboard/organizations"
)
View Source
const (
	URL_LIST_PROJECTS = "/management/organizations/%s/projects"
)
View Source
const (
	URL_POST_API_KEYS = "/v2/dashboard/projects/%s/api-key"
)
View Source
const (
	URL_POST_PROJECTS = "/v2/dashboard/organizations/%s/projects"
)

Variables

This section is empty.

Functions

func GetDashboardBaseURL added in v0.0.21

func GetDashboardBaseURL() (string, error)

func GetPineconeBaseURL added in v0.0.53

func GetPineconeBaseURL() (string, error)

Types

type CreateApiKeyRequest added in v0.0.5

type CreateApiKeyRequest struct {
	Label string `json:"label"`
}

type CreateApiKeyResponse added in v0.0.5

type CreateApiKeyResponse struct {
	Success bool `json:"success"`
	Key     Key  `json:"key"`
}

func CreateApiKey added in v0.0.5

func CreateApiKey(projId string, keyName string) (*CreateApiKeyResponse, error)

type CreateProjectRequest

type CreateProjectRequest struct {
	Name        string `json:"name"`
	PodQuota    int32  `json:"quota"`
	Environment string `json:"environment"`
}

type CreateProjectResponse

type CreateProjectResponse struct {
	Success bool    `json:"success"`
	Project Project `json:"globalProject"`
}

func CreateProject

func CreateProject(orgId string, projName string, podQuota int32) (*CreateProjectResponse, error)

type DeleteApiKeyRequest added in v0.0.5

type DeleteApiKeyRequest struct {
	Label    string `json:"label"`
	UserName string `json:"userName"`
}

type DeleteApiKeyResponse added in v0.0.5

type DeleteApiKeyResponse struct {
	Success bool `json:"success"`
}

func DeleteApiKey added in v0.0.5

func DeleteApiKey(projId string, key Key) (*DeleteApiKeyResponse, error)

type DeletePostResponse

type DeletePostResponse struct {
	Success bool `json:"success"`
}

func DeleteProject

func DeleteProject(orgId string, projId string) (*DeletePostResponse, error)

type DescribeOrganizationResponse

type DescribeOrganizationResponse struct {
	Success   bool       `json:"success"`
	UserRoles []UserRole `json:"userRoles"`
}

func DescribeOrganization

func DescribeOrganization(orgId string) (*DescribeOrganizationResponse, error)

type Key

type Key struct {
	Id        string `json:"id"`
	UserLabel string `json:"user_label"`
	Value     string `json:"value"`
	UserName  string `json:"user_name"`
}

type KeyResponse

type KeyResponse struct {
	Keys []Key `json:"keys"`
}

func GetApiKeys

func GetApiKeys(project Project) (*KeyResponse, error)

func GetApiKeysById added in v0.0.5

func GetApiKeysById(projectId string) (*KeyResponse, error)

type Organization

type Organization struct {
	Id       string     `json:"id"`
	Name     string     `json:"name"`
	Projects *[]Project `json:"projects"`
}

type OrganizationsResponse

type OrganizationsResponse struct {
	Organizations []Organization `json:"newOrgs"`
}

func ListOrganizations

func ListOrganizations() (*OrganizationsResponse, error)

type Project

type Project struct {
	Id                      string `json:"id"`
	Name                    string `json:"name"`
	OrganizationId          string `json:"organization_id"`
	Quota                   string `json:"quota"`
	IndexQuota              string `json:"index_quota"`
	ForceEncryptionWithCmek bool   `json:"force_encryption_with_cmek"`
}

func GetProjectById

func GetProjectById(orgId string, projId string) (*Project, error)

func GetProjectByName

func GetProjectByName(orgName string, projName string) (*Project, error)

type ProjectsResponse added in v0.0.53

type ProjectsResponse struct {
	Projects []Project `json:"data"`
}

func ListProjects added in v0.0.53

func ListProjects(orgId string) (*ProjectsResponse, error)

type UserRole

type UserRole struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
	Role  string `json:"role"`
}

Jump to

Keyboard shortcuts

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