Documentation ¶
Index ¶
- type MongoPersister
- func (MongoPersister) GetTaskByID(id string) (*model.Task, error)
- func (MongoPersister) GetTaskDefinitionByID(id string) (*model.TaskDefinition, error)
- func (p MongoPersister) Prepare() error
- func (MongoPersister) SaveAgent(agent model.Agent) error
- func (MongoPersister) SaveTask(task model.Task) error
- func (MongoPersister) SaveTaskDefinition(taskDefinition model.TaskDefinition) error
- type Persister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoPersister ¶
type MongoPersister struct {
// contains filtered or unexported fields
}
func NewMongoPersister ¶
func NewMongoPersister(c config.PersisterMongo) *MongoPersister
func (MongoPersister) GetTaskByID ¶
func (MongoPersister) GetTaskByID(id string) (*model.Task, error)
func (MongoPersister) GetTaskDefinitionByID ¶
func (MongoPersister) GetTaskDefinitionByID(id string) (*model.TaskDefinition, error)
func (MongoPersister) Prepare ¶
func (p MongoPersister) Prepare() error
func (MongoPersister) SaveTaskDefinition ¶
func (MongoPersister) SaveTaskDefinition(taskDefinition model.TaskDefinition) error
Click to show internal directories.
Click to hide internal directories.