Documentation
¶
Index ¶
- Variables
- type DB
- type LocalDB
- func (db *LocalDB) DeleteCheckpoint(ctx context.Context, id string) error
- func (db *LocalDB) DeleteHost(ctx context.Context, id string) error
- func (db *LocalDB) DeleteJob(ctx context.Context, jid string) error
- func (db *LocalDB) ListCheckpoints(ctx context.Context, ids ...string) ([]*daemon.Checkpoint, error)
- func (db *LocalDB) ListCheckpointsByJIDs(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
- func (db *LocalDB) ListHosts(ctx context.Context, ids ...string) ([]*daemon.Host, error)
- func (db *LocalDB) ListJobs(ctx context.Context, jids ...string) ([]*daemon.Job, error)
- func (db *LocalDB) ListJobsByHostIDs(ctx context.Context, hostIDs ...string) ([]*daemon.Job, error)
- func (db *LocalDB) PutCheckpoint(ctx context.Context, checkpoint *daemon.Checkpoint) error
- func (db *LocalDB) PutHost(ctx context.Context, host *daemon.Host) error
- func (db *LocalDB) PutJob(ctx context.Context, job *daemon.Job) error
- type RemoteDB
- func (db *RemoteDB) DeleteCheckpoint(ctx context.Context, id string) error
- func (db *RemoteDB) DeleteJob(ctx context.Context, jid string) error
- func (db *RemoteDB) ListCheckpoints(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
- func (db *RemoteDB) ListCheckpointsByJIDs(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
- func (db *RemoteDB) ListJobs(ctx context.Context, jids ...string) ([]*daemon.Job, error)
- func (db *RemoteDB) ListJobsByHostIDs(ctx context.Context, hostIDs ...string) ([]*daemon.Job, error)
- func (db *RemoteDB) PutCheckpoint(ctx context.Context, checkpoint *daemon.Checkpoint) error
- func (db *RemoteDB) PutJob(ctx context.Context, job *daemon.Job) error
- type UnimplementedDB
- func (UnimplementedDB) DeleteCheckpoint(ctx context.Context, id string) error
- func (UnimplementedDB) DeleteHost(ctx context.Context, id string) error
- func (UnimplementedDB) DeleteJob(ctx context.Context, jid string) error
- func (UnimplementedDB) ListCheckpoints(ctx context.Context, ids ...string) ([]*daemon.Checkpoint, error)
- func (UnimplementedDB) ListCheckpointsByJID(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
- func (UnimplementedDB) ListHosts(ctx context.Context, ids ...string) ([]*daemon.Host, error)
- func (UnimplementedDB) ListJobs(ctx context.Context, jids ...string) ([]*daemon.Job, error)
- func (UnimplementedDB) PutCheckpoint(ctx context.Context, checkpoint *daemon.Checkpoint) error
- func (UnimplementedDB) PutHost(ctx context.Context, host *daemon.Host) error
- func (UnimplementedDB) PutJob(ctx context.Context, job *daemon.Job) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Ddl string
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface {
PutJob(ctx context.Context, job *daemon.Job) error
ListJobs(ctx context.Context, jids ...string) ([]*daemon.Job, error)
ListJobsByHostIDs(ctx context.Context, hostIDs ...string) ([]*daemon.Job, error)
DeleteJob(ctx context.Context, jid string) error
PutHost(ctx context.Context, host *daemon.Host) error
ListHosts(ctx context.Context, ids ...string) ([]*daemon.Host, error)
DeleteHost(ctx context.Context, id string) error
PutCheckpoint(ctx context.Context, checkpoint *daemon.Checkpoint) error
ListCheckpoints(ctx context.Context, ids ...string) ([]*daemon.Checkpoint, error)
ListCheckpointsByJIDs(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
DeleteCheckpoint(ctx context.Context, id string) error
}
type LocalDB ¶
type LocalDB struct {
UnimplementedDB
// contains filtered or unexported fields
}
func (*LocalDB) DeleteCheckpoint ¶
func (*LocalDB) ListCheckpoints ¶
func (*LocalDB) ListCheckpointsByJIDs ¶
func (*LocalDB) ListJobsByHostIDs ¶
func (*LocalDB) PutCheckpoint ¶
type RemoteDB ¶
type RemoteDB struct {
UnimplementedDB
// contains filtered or unexported fields
}
func NewRemoteDB ¶
func NewRemoteDB(ctx context.Context, connection config.Connection) *RemoteDB
func (*RemoteDB) DeleteCheckpoint ¶
func (*RemoteDB) ListCheckpoints ¶
func (*RemoteDB) ListCheckpointsByJIDs ¶
func (*RemoteDB) ListJobsByHostIDs ¶
func (*RemoteDB) PutCheckpoint ¶
type UnimplementedDB ¶
type UnimplementedDB struct{}
func (UnimplementedDB) DeleteCheckpoint ¶
func (UnimplementedDB) DeleteCheckpoint(ctx context.Context, id string) error
func (UnimplementedDB) DeleteHost ¶
func (UnimplementedDB) DeleteHost(ctx context.Context, id string) error
func (UnimplementedDB) DeleteJob ¶
func (UnimplementedDB) DeleteJob(ctx context.Context, jid string) error
func (UnimplementedDB) ListCheckpoints ¶
func (UnimplementedDB) ListCheckpoints(ctx context.Context, ids ...string) ([]*daemon.Checkpoint, error)
func (UnimplementedDB) ListCheckpointsByJID ¶
func (UnimplementedDB) ListCheckpointsByJID(ctx context.Context, jids ...string) ([]*daemon.Checkpoint, error)
func (UnimplementedDB) PutCheckpoint ¶
func (UnimplementedDB) PutCheckpoint(ctx context.Context, checkpoint *daemon.Checkpoint) error
Click to show internal directories.
Click to hide internal directories.