gormdal

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideDAL

func ProvideDAL(helper interfaces.IHelper, logger interfaces.ILogger) interfaces.IDAL

ProvideDAL ...

Types

type GormDAL

type GormDAL struct {
	// contains filtered or unexported fields
}

GormDAL ...

func (*GormDAL) Create

func (dal *GormDAL) Create(i interface{}) error

Create ...

func (*GormDAL) Delete

func (dal *GormDAL) Delete(i interface{}) error

Delete ...

func (*GormDAL) Read

func (dal *GormDAL) Read(i interface{}) error

Read ...

func (*GormDAL) ReadAll

func (dal *GormDAL) ReadAll(dataType interface{}) (map[string]interface{}, error)

ReadAll ...

func (*GormDAL) Update

func (dal *GormDAL) Update(i interface{}) error

Update ...

type ProfileModel

type ProfileModel struct {
	gorm.Model
	Name             string `gorm:"unique;not null;default:null"`
	HomeDir          string
	HackDir          string
	Projects         []*ProjectModel `gorm:"constraint:OnUpdate:UPDATE,OnDelete:SET NULL;;many2many:profiles_projects;"`
	CurrentProjectID uint
	Initialized      bool
}

ProfileModel ...

func (*ProfileModel) GetID

func (profile *ProfileModel) GetID() uint

GetID ...

func (*ProfileModel) GetName

func (profile *ProfileModel) GetName() string

GetName ...

type ProjectModel

type ProjectModel struct {
	gorm.Model
	Name             string `gorm:"not null;default:null"`
	Path             string
	SettingsYamlPath string
	Initialized      bool
	Description      string
	Profiles         []*ProfileModel `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;;many2many:profiles_projects;"`
}

ProjectModel ...

func (*ProjectModel) GetID

func (p *ProjectModel) GetID() uint

GetID ...

func (*ProjectModel) GetName

func (p *ProjectModel) GetName() string

GetName ...

type ProjectTag

type ProjectTag struct {
	gorm.Model
	Name string
}

ProjectTag ...

type ServiceModel

type ServiceModel struct {
	gorm.Model
	Name           string
	Active         bool
	Environment    string
	Skaffold       bool
	Path           string
	Initialized    bool
	ProjectModelID uint
}

ServiceModel ...

func (*ServiceModel) GetID

func (s *ServiceModel) GetID() uint

GetID ...

func (*ServiceModel) GetName

func (s *ServiceModel) GetName() string

GetName ...

Jump to

Keyboard shortcuts

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