core

package
v0.8.135 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package core provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

This is not autogenerated.

This is not autogenerated.

This is not autogenerated.

Package core provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToStruct added in v0.8.80

func MapToStruct(m map[string]interface{}, obj interface{}) error

func StructToMap added in v0.8.80

func StructToMap(obj interface{}) (map[string]interface{}, error)

func UUIDOrUUIDNil added in v0.8.27

func UUIDOrUUIDNil(value *uuid.UUID) uuid.UUID

Types

type AcceptedTermsAt

type AcceptedTermsAt = string

AcceptedTermsAt defines model for accepted_terms_at.

type AvatarUrl

type AvatarUrl = string

AvatarUrl Link for profile picture

type Bio

type Bio = string

Bio defines model for bio.

type ConnectionId added in v0.7.11

type ConnectionId = Id

ConnectionId defines model for connectionId.

type ConnectionKind added in v0.7.11

type ConnectionKind = string

ConnectionKind defines model for connectionKind.

type ContextId added in v0.7.11

type ContextId = Id

ContextId defines model for contextId.

type CreatedAt

type CreatedAt = time.Time

CreatedAt Timestamp when the resource was created.

type CredentialID

type CredentialID = uuid.UUID

CredentialID defines model for credential_uuid.

type CredentialId added in v0.7.11

type CredentialId = string

CredentialId defines model for credentialId.

type Cumulative added in v0.7.11

type Cumulative = string

Cumulative defines model for cumulative.

type DeletedAt

type DeletedAt = time.Time

DeletedAt Timestamp when the resource was deleted.

type DesignId added in v0.7.14

type DesignId = uuid.UUID

DesignId defines model for design_id.

type Email

type Email = openapi_types.Email

Email email

type EmailPreference

type EmailPreference struct {
	NotifyRoleChange bool `json:"notify_role_change,omitempty"`
	WelcomeEmail     bool `json:"welcome_email,omitempty"`
}

EmailPreference defines model for email_preference.

type Emails

type Emails = []Email

Emails defines model for emails.

type Empty

type Empty = map[string]interface{}

Empty Body for empty request

type Endpoint

type Endpoint = Text

Endpoint defines model for endpoint.

type EnvironmentId added in v0.7.11

type EnvironmentId = uuid.UUID

EnvironmentId defines model for environment_id.

type EventsFilter added in v0.7.11

type EventsFilter struct {
	EventType *[]string `json:"event_type,omitempty"`
	Provider  *[]string `json:"provider,omitempty"`
}

EventsFilter defines model for eventsFilter.

type Filter added in v0.7.11

type Filter = string

Filter defines model for filter.

type GeneralId added in v0.7.14

type GeneralId = uuid.UUID

GeneralId defines model for general_id.

type Id added in v0.7.11

type Id = uuid.UUID

Id defines model for id.

type InstanceId added in v0.7.11

type InstanceId = Id

InstanceId defines model for instanceId.

type IsOAuth added in v0.7.11

type IsOAuth = string

IsOAuth defines model for isOAuth.

type KubernetesServerID

type KubernetesServerID = uuid.UUID

KubernetesServerID defines model for kubernetes_server_uuid.

type Map added in v0.8.27

type Map map[string]any

Map is a map[string]interface.

func (*Map) Scan added in v0.8.27

func (m *Map) Scan(src interface{}) error

Scan implements the sql.Scanner interface. It allows to read the map from the database value.

func (*Map) UnmarshalJSON added in v0.8.27

func (m *Map) UnmarshalJSON(b []byte) error

UnmarshalJSON will unmarshall JSON value into the map representation of this value.

func (Map) Value added in v0.8.27

func (m Map) Value() (driver.Value, error)

Value implements the driver.Valuer interface. It allows to convert the map to a driver.value.

type MapObject

type MapObject map[string]string

MapObject defines model for map_object.

func (MapObject) GormDataType added in v0.8.135

func (m MapObject) GormDataType() string

GormDataType returns the data type for GORM to use when creating the database column.

func (*MapObject) Scan added in v0.8.135

func (m *MapObject) Scan(value interface{}) error

Scan implements the sql.Scanner interface, deserializing a JSON string into MapObject.

func (MapObject) Value added in v0.8.135

func (m MapObject) Value() (driver.Value, error)

Value implements the driver.Valuer interface, serializing MapObject as a JSON string.

type MesheryInstanceID

type MesheryInstanceID = uuid.UUID

MesheryInstanceID defines model for meshery_instance_uuid.

type MesheryVersion added in v0.7.11

type MesheryVersion = string

MesheryVersion defines model for mesheryVersion.

type Name added in v0.7.11

type Name = string

Name defines model for name.

type Namespace added in v0.7.11

type Namespace = string

Namespace defines model for namespace.

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool // Valid is true if NullTime is not NULL
}

NullTime replaces sql.NullTime with an implementation that supports proper JSON encoding/decoding.

func NewTime added in v0.8.27

func NewTime(t time.Time) NullTime

NewTime returns a new, properly instantiated NullTime object.

func (NullTime) MarshalJSON added in v0.8.27

func (nt NullTime) MarshalJSON() ([]byte, error)

MarshalJSON marshals the underlying value to a proper JSON representation.

func (NullTime) MarshalYAML added in v0.8.28

func (nt NullTime) MarshalYAML() (any, error)

func (*NullTime) Scan added in v0.8.27

func (nt *NullTime) Scan(value any) error

Scan implements the Scanner interface.

func (*NullTime) UnmarshalJSON added in v0.8.27

func (nt *NullTime) UnmarshalJSON(text []byte) error

UnmarshalJSON will unmarshal a JSON value into the propert representation of that value. -- This NullTime implementation supports unmarshaling from both: - A JSON time string (e.g., "2023-07-05T15:04:05Z") - A JSON object (e.g., {"Time":"0001-01-01T00:00:00Z","Valid":false}) - A JSON null value

we need support for JSON object as provider is using sql.NullTime now for DeletedAt field which is marshaled to json as such object and is returned from api

func (*NullTime) UnmarshalYAML added in v0.8.28

func (nt *NullTime) UnmarshalYAML(value *yaml.Node) error

func (NullTime) Value added in v0.8.27

func (nt NullTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Number added in v0.7.11

type Number = int

Number defines model for number.

type OamType added in v0.7.11

type OamType = string

OamType defines model for oamType.

type OperationID

type OperationID = uuid.UUID

OperationID defines model for operation_id.

type Order added in v0.7.11

type Order = string

Order defines model for order.

type OrgId added in v0.7.11

type OrgId = string

OrganizationId defines model for organizationId.

type OrganizationId added in v0.7.11

type OrganizationId = uuid.UUID

OrganizationId defines model for organization_id.

type Os added in v0.7.11

type Os = string

Os defines model for os.

type Page added in v0.7.11

type Page = string

Page defines model for page.

type PageSize added in v0.7.11

type PageSize = string

PageSize defines model for page_size.

type PlanId added in v0.7.11

type PlanId = string

PlanId defines model for planId.

type Playground added in v0.7.11

type Playground = string

Playground defines model for playground.

type Price

type Price = int32

Price defines model for price.

type Provider

type Provider = string

Provider One of (x-oapi-codegen-extra-tags-cloud, github, google)

type Purpose added in v0.7.11

type Purpose = string

Purpose defines model for purpose.

type RecordsPage

type RecordsPage struct {
	Page         int    `json:"page,omitempty"`
	PageSize     int    `json:"page_size,omitempty"`
	RecordType   string `json:"recordType,omitempty"`
	RecordsTotal int    `json:"records_total,omitempty"`
}

RecordsPage defines model for recordsPage.

type RequestFilter added in v0.7.11

type RequestFilter struct {
	ID     Id        `db:"id" json:"id"`
	Status *[]string `json:"status,omitempty"`
}

RequestFilter defines model for requestFilter.

type ResultID added in v0.7.11

type ResultID = string

ResultID defines model for resultID.

type ResultsPage

type ResultsPage struct {
	Page       int    `json:"page,omitempty"`
	PageSize   int    `json:"page_size,omitempty"`
	ResultType string `json:"resultType,omitempty"`
	TotalCount int    `json:"total_count,omitempty"`
}

ResultsPage defines model for resultsPage.

type RoleNames

type RoleNames = []string

RoleNames defines model for roleNames.

type Search = string

Search defines model for search.

type ServerId added in v0.7.11

type ServerId = Id

ServerId defines model for serverId.

type Status

type Status = string

Status defines model for status.

type SystemID

type SystemID = uuid.UUID

SystemID defines model for system_id.

type TeamId added in v0.7.14

type TeamId = uuid.UUID

TeamId defines model for team_id.

type Text

type Text = string

Text defines model for text.

type Time

type Time = time.Time

Time defines model for time.

type Type added in v0.7.11

type Type = string

Type defines model for type.

type UpdatedAt

type UpdatedAt = time.Time

UpdatedAt Timestamp when the resource was updated.

type UserID

type UserID = uuid.UUID

UserID defines model for user_uuid.

type UserId

type UserId = string

UserId user's email or username

type UserIds

type UserIds = []Id

UserIds defines model for user_ids.

type Username

type Username = string

Username defines model for username.

type ViewId added in v0.7.14

type ViewId = uuid.UUID

ViewId defines model for view_id.

type WorkspaceId added in v0.7.14

type WorkspaceId = uuid.UUID

WorkspaceId defines model for workspace_id.

Jump to

Keyboard shortcuts

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