repo

package
v0.0.0-...-a4eaa21 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[T model.Resource](ctx context.Context, collection *mongo.Collection, model T) string

func Delete

func Delete(ctx context.Context, collection *mongo.Collection, id string)

func GetAll

func GetAll[T model.Resource](ctx context.Context, collection *mongo.Collection, resources []T)

func GetById

func GetById[T model.Resource](ctx context.Context, collection *mongo.Collection, id string, res T)

func NewCalTaskRepo

func NewCalTaskRepo(ctx context.Context, database *mongo.Database) infra.CalTaskRepo

func NewEvictorRepo

func NewEvictorRepo(ctx context.Context, database *mongo.Database) infra.EvictorRepo

func NewOperatorRepo

func NewOperatorRepo(ctx context.Context, database *mongo.Database) infra.OperatorRepo

func NewTriggerRepo

func NewTriggerRepo(ctx context.Context, database *mongo.Database) infra.TriggerRepo

func NewWindowRepo

func NewWindowRepo(ctx context.Context, database *mongo.Database) infra.WindowsRepo

Types

type CalTask

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

func (*CalTask) Create

func (o *CalTask) Create(model *model.CalTask) string

func (*CalTask) DeleteByProcessorId

func (o *CalTask) DeleteByProcessorId(id string)

func (*CalTask) GetAll

func (o *CalTask) GetAll() []*model.CalTask

func (*CalTask) GetByProcessorId

func (o *CalTask) GetByProcessorId(id string) []*model.CalTask

type Evictor

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

func (*Evictor) Create

func (e *Evictor) Create(model *model.Evictor) string

func (*Evictor) Delete

func (e *Evictor) Delete(id string)

func (*Evictor) GetAll

func (e *Evictor) GetAll() (evictorList []*model.Evictor)

func (*Evictor) GetById

func (e *Evictor) GetById(id string) *model.Evictor

type Operator

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

func (*Operator) Create

func (o *Operator) Create(model *model.Operator) string

func (*Operator) Delete

func (o *Operator) Delete(id string)

func (*Operator) GetAll

func (o *Operator) GetAll() (operatorList []*model.Operator)

func (*Operator) GetById

func (o *Operator) GetById(id string) *model.Operator

type Trigger

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

func (*Trigger) Create

func (t *Trigger) Create(model *model.Trigger) string

func (*Trigger) Delete

func (t *Trigger) Delete(id string)

func (*Trigger) GetAll

func (t *Trigger) GetAll() (triggerList []*model.Trigger)

func (*Trigger) GetById

func (t *Trigger) GetById(id string) *model.Trigger

type Windows

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

func (*Windows) Create

func (w *Windows) Create(window *model.Window) string

func (*Windows) Delete

func (w *Windows) Delete(id string)

func (*Windows) GetAll

func (w *Windows) GetAll() (windowsList []*model.Window)

func (*Windows) GetById

func (w *Windows) GetById(id string) *model.Window

Jump to

Keyboard shortcuts

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