github.com/Benchkram/bob@v0.0.0-20220321080157-7c8f3876e225/pkg/buildinfostore/store.go (about) 1 package buildinfostore 2 3 import ( 4 "fmt" 5 6 "github.com/Benchkram/bob/bobtask/buildinfo" 7 ) 8 9 // get inspiration from https://github.com/tus/tusd/blob/48ffebec56fcf3221461b3f8cbe000e5367e2d48/pkg/handler/datastore.go#L50 10 11 var ErrBuildInfoDoesNotExist = fmt.Errorf("Build info does not exist") 12 13 type Store interface { 14 NewBuildInfo(id string, _ *buildinfo.I) error 15 16 GetBuildInfo(id string) (*buildinfo.I, error) 17 GetBuildInfos() ([]*buildinfo.I, error) 18 19 Clean() error 20 }