aboutsummaryrefslogtreecommitdiff
path: root/spool/spool.go
blob: e0959793656c29b24c03a3f28cb65ba63258c0be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package spool

import (
	"bareos-zabbix-check/config"
	"bareos-zabbix-check/job"
)

const (
	spoolFile = "bareos-zabbix-check.spool"
)

// Spool is an object for manipulating a bareos spool file
type Spool struct {
	config *config.Config
	jobs   []job.Job
}

// Jobs exports a spool to a jobs list
func (s *Spool) Jobs() []job.Job {
	return s.jobs
}

// SetJobs sets a jobs list
func (s *Spool) SetJobs(jobs []job.Job) {
	s.jobs = jobs
}