Documentation
¶
Index ¶
- Constants
- func DeleteAndDecode[T any](path string) (*T, error)
- func GetAndDecode[T any](path string) (*T, error)
- func PostAndDecode[B any, R any](path string, body B) (*R, error)
- func RequestWithBodyAndDecode[B any, R any](path string, method string, body B) (*R, error)
- func RequestWithoutBodyAndDecode[T any](path string, method string) (*T, error)
- type CreateApiKeyRequest
- type CreateApiKeyResponse
- type CreateProjectRequest
- type CreateProjectResponse
- type DeleteApiKeyRequest
- type DeleteApiKeyResponse
- type DeletePostResponse
- type DescribeOrganizationResponse
- type GlobalProject
- type Key
- type KeyResponse
- type Organization
- type OrganizationsResponse
- type Project
- type UserRole
Constants ¶
View Source
const DashboardBaseURL = "https://console-api.pinecone.io"
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_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 DeleteAndDecode ¶
func GetAndDecode ¶
Types ¶
type CreateApiKeyRequest ¶ added in v0.0.5
type CreateApiKeyRequest struct {
Label string `json:"label"`
}
type CreateApiKeyResponse ¶ added in v0.0.5
func CreateApiKey ¶ added in v0.0.5
func CreateApiKey(projId string, keyName string) (*CreateApiKeyResponse, error)
type CreateProjectRequest ¶
type CreateProjectResponse ¶
type CreateProjectResponse struct { Success bool `json:"success"` GlobalProject GlobalProject `json:"globalProject"` }
func CreateProject ¶
func CreateProject(orgId string, projName string, podQuota int32) (*CreateProjectResponse, error)
type DeleteApiKeyRequest ¶ added in v0.0.5
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 GlobalProject ¶
type GlobalProject struct { Id string `json:"id"` Name string `json:"name"` Quota string `json:"quota"` IndexQuota string `json:"indexQuota"` }
func GetProjectById ¶
func GetProjectById(orgId string, projId string) (*GlobalProject, error)
func GetProjectByName ¶
func GetProjectByName(orgName string, projName string) (*GlobalProject, error)
type KeyResponse ¶
type KeyResponse struct {
Keys []Key `json:"keys"`
}
func GetApiKeys ¶
func GetApiKeys(project GlobalProject) (*KeyResponse, error)
func GetApiKeysById ¶ added in v0.0.5
func GetApiKeysById(projectId string) (*KeyResponse, error)
type Organization ¶
type OrganizationsResponse ¶
type OrganizationsResponse struct {
Organizations []Organization `json:"organizations"`
}
func ListOrganizations ¶
func ListOrganizations() (*OrganizationsResponse, error)
type Project ¶
type Project struct { Id string `json:"id"` Name string `json:"name"` GlobalProject GlobalProject `json:"globalProject"` }
Click to show internal directories.
Click to hide internal directories.