aboutsummaryrefslogtreecommitdiff
path: root/job/job.go
blob: e15b2eb0aba5d2aed770e838c572d8a387211aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package job

import "fmt"

// Job is a bareos job
type Job struct {
	Name      string
	Timestamp uint64
	Success   bool
}

func (job Job) String() string {
	return fmt.Sprintf("Name: \"%s\", Timestamp: \"%d\", Success: \"%t\"", job.Name, job.Timestamp, job.Success)
}