extension

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtensionSliceToJSON

func ExtensionSliceToJSON(e []Extension) json.RawMessage

func ExtensionToJSON

func ExtensionToJSON(e Extension) json.RawMessage

func ExtensionTypeSliceToJSON

func ExtensionTypeSliceToJSON(in []ExtensionType) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

Types

type Extension

type Extension struct {
	UUID              uuid.UUID               `json:"uuid"`
	Version           int64                   `json:"version"`
	Identifier        string                  `json:"identifier"`
	DisplayName       *string                 `json:"display_name"`
	DisplayAuthorName *string                 `json:"display_author_name"`
	Description       *string                 `json:"description"`
	URL               *string                 `json:"url"`
	Verified          bool                    `json:"verified"`
	Repository        string                  `json:"repository"`
	ExtensionType     ExtensionType           `json:"extension_type"`
	Tags              []string                `json:"tags"`
	Pro               bool                    `json:"pro"`
	Public            bool                    `json:"public"`
	Visibility        []visibility.Visibility `json:"visibility"`
	Status            Status                  `json:"status"`
	OwnerUUID         uuid.UUID               `json:"owner_uuid"`
	CreatedAt         time.Time               `json:"created_at"`
	UpdatedAt         time.Time               `json:"updated_at"`
	CreatedByUUID     uuid.UUID               `json:"created_by_uuid"`
	UpdatedByUUID     uuid.UUID               `json:"updated_by_uuid"`
}

func ExtensionFromJSON

func ExtensionFromJSON(data json.RawMessage) Extension

func ExtensionSliceFromJSON

func ExtensionSliceFromJSON(data json.RawMessage) []Extension

func NewExtensionSliceWithRandomValues

func NewExtensionSliceWithRandomValues(n int) []Extension

func NewExtensionWithRandomValues

func NewExtensionWithRandomValues() Extension

func (Extension) ArrayFieldIdentifierToType

func (e Extension) ArrayFieldIdentifierToType() map[string]types.FieldType

func (Extension) DependantFieldIdentifierToTypeMap

func (e Extension) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType

func (Extension) EntityIdentifier

func (e Extension) EntityIdentifier() string

func (Extension) FieldIdentfierToTypeMap

func (e Extension) FieldIdentfierToTypeMap() map[string]types.FieldType

func (Extension) IsDependant

func (e Extension) IsDependant() bool

func (Extension) OrderedFieldIdentifiers added in v1.0.35

func (e Extension) OrderedFieldIdentifiers() []string

func (Extension) PrimaryKeyIdentifier

func (e Extension) PrimaryKeyIdentifier() string

func (Extension) PrimaryKeyValue

func (e Extension) PrimaryKeyValue() string

func (Extension) String

func (e Extension) String() string

func (Extension) ToJSON

func (e Extension) ToJSON() json.RawMessage

type ExtensionType

type ExtensionType int64
const (
	EXTENSION_TYPE_INVALID ExtensionType = iota
	EXTENSION_TYPE_IMPORTER
	EXTENSION_TYPE_SYNCHRONIZER
	EXTENSION_TYPE_GENERATOR
)

func ExtensionTypeFromPointerString

func ExtensionTypeFromPointerString(in *string) ExtensionType

func ExtensionTypeFromString

func ExtensionTypeFromString(in string) ExtensionType

func JSONToExtensionTypeSlice

func JSONToExtensionTypeSlice(in json.RawMessage) []ExtensionType

func (ExtensionType) String

func (e ExtensionType) String() string

func (ExtensionType) StringPtr

func (e ExtensionType) StringPtr() *string

func (ExtensionType) ToInt64

func (e ExtensionType) ToInt64() int64

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

Jump to

Keyboard shortcuts

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