pod

package
v0.0.0-...-89c19b0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPodRepository

type IPodRepository interface {
	GetPod(where interface{}) *models.Pod

	AddPod(pod *models.Pod) bool

	UpdatePod(pod *models.Pod) bool

	GetPods(PageNum, PageSize uint, total *uint64, where interface{}) *[]models.Pod

	ExistPodByName(where interface{}) bool

	DeletePod(id uint) bool

	DeletePodByCol(pod *models.Pod) bool
}

type PodRepository

type PodRepository struct {
	Log    logger.ILogger         `inject:""`
	Base   baseRep.BaseRepository `inject:"inline"`
	Source datasource.IDb         `inject:""`
}

func (*PodRepository) AddPod

func (pod *PodRepository) AddPod(modPod *models.Pod) bool

func (*PodRepository) DeletePod

func (pod *PodRepository) DeletePod(id uint) bool

func (*PodRepository) DeletePodByCol

func (pod *PodRepository) DeletePodByCol(modPod *models.Pod) bool

func (*PodRepository) ExistPodByName

func (pod *PodRepository) ExistPodByName(where interface{}) bool

func (*PodRepository) GetPod

func (pod *PodRepository) GetPod(where interface{}) *models.Pod

func (*PodRepository) GetPods

func (pod *PodRepository) GetPods(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Pod

func (*PodRepository) UpdatePod

func (pod *PodRepository) UpdatePod(modPod *models.Pod) bool

Jump to

Keyboard shortcuts

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