Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { gormsupport.Lifecycle ID *uuid.UUID `sql:"type:uuid default uuid_generate_v4()" gorm:"primary_key"` Name *string Type *string SpaceID *uuid.UUID `sql:"type:uuid"` NamespaceName *string ClusterURL *string }
func (Environment) TableName ¶
func (e Environment) TableName() string
type GormRepository ¶
type GormRepository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *GormRepository
func (*GormRepository) Create ¶
func (r *GormRepository) Create(ctx context.Context, env *Environment) (*Environment, error)
func (*GormRepository) List ¶
func (r *GormRepository) List(ctx context.Context, spaceID uuid.UUID) ([]*Environment, error)
func (*GormRepository) Load ¶
func (r *GormRepository) Load(ctx context.Context, envID uuid.UUID) (*Environment, error)
type Repository ¶
type Repository interface { Create(ctx context.Context, env *Environment) (*Environment, error) List(ctx context.Context, spaceID uuid.UUID) ([]*Environment, error) Load(ctx context.Context, envID uuid.UUID) (*Environment, error) }
Click to show internal directories.
Click to hide internal directories.