addon

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addon

type Addon struct {
	ID            string                 `json:"id,omitempty"`
	EnvironmentID string                 `json:"environment_id,omitempty"`
	LookupKey     string                 `json:"lookup_key,omitempty"`
	Name          string                 `json:"name,omitempty"`
	Description   string                 `json:"description,omitempty"`
	Type          types.AddonType        `json:"type,omitempty"`
	Metadata      map[string]interface{} `json:"metadata,omitempty"`

	types.BaseModel
}

func FromEnt

func FromEnt(ent *ent.Addon) *Addon

func FromEntList

func FromEntList(ents []*ent.Addon) []*Addon

type Repository

type Repository interface {
	// Addon CRUD operations
	Create(ctx context.Context, addon *Addon) error
	GetByID(ctx context.Context, id string) (*Addon, error)
	GetByLookupKey(ctx context.Context, lookupKey string) (*Addon, error)
	Update(ctx context.Context, addon *Addon) error
	Delete(ctx context.Context, id string) error
	List(ctx context.Context, filter *types.AddonFilter) ([]*Addon, error)
	Count(ctx context.Context, filter *types.AddonFilter) (int, error)
}

Repository defines the interface for addon repository operations

Jump to

Keyboard shortcuts

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