environment

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	ID   string                `db:"id" json:"id"`
	Name string                `db:"name" json:"name"`
	Type types.EnvironmentType `db:"type" json:"type"`

	types.BaseModel
}

func FromEnt

func FromEnt(e *ent.Environment) *Environment

FromEnt converts an ent Environment to a domain Environment

func FromEntList

func FromEntList(environments []*ent.Environment) []*Environment

FromEntList converts a list of ent Environments to domain Environments

type Repository

type Repository interface {
	Create(ctx context.Context, environment *Environment) error
	Get(ctx context.Context, id string) (*Environment, error)
	List(ctx context.Context, filter types.Filter) ([]*Environment, error)
	Update(ctx context.Context, environment *Environment) error
}

Jump to

Keyboard shortcuts

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