Documentation
¶
Index ¶
- type MySQL
- func (m *MySQL) CreateRunner(ctx context.Context, runner datastore.Runner) error
- func (m *MySQL) CreateTarget(ctx context.Context, target datastore.Target) error
- func (m *MySQL) DeleteJob(ctx context.Context, id uuid.UUID) error
- func (m *MySQL) DeleteRunner(ctx context.Context, id uuid.UUID, deletedAt time.Time, ...) error
- func (m *MySQL) DeleteTarget(ctx context.Context, id uuid.UUID) error
- func (m *MySQL) EnqueueJob(ctx context.Context, job datastore.Job) error
- func (m *MySQL) GetRunner(ctx context.Context, id uuid.UUID) (*datastore.Runner, error)
- func (m *MySQL) GetTarget(ctx context.Context, id uuid.UUID) (*datastore.Target, error)
- func (m *MySQL) GetTargetByScope(ctx context.Context, gheDomain, scope string) (*datastore.Target, error)
- func (m *MySQL) ListJobs(ctx context.Context) ([]datastore.Job, error)
- func (m *MySQL) ListRunners(ctx context.Context) ([]datastore.Runner, error)
- func (m *MySQL) ListTargets(ctx context.Context) ([]datastore.Target, error)
- func (m *MySQL) UpdateTargetStatus(ctx context.Context, targetID uuid.UUID, newStatus datastore.TargetStatus, ...) error
- func (m *MySQL) UpdateToken(ctx context.Context, targetID uuid.UUID, newToken string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
MySQL is implement datastore in MySQL
func (*MySQL) CreateRunner ¶
CreateRunner add a runner
func (*MySQL) CreateTarget ¶
CreateTarget create a target
func (*MySQL) DeleteRunner ¶
func (m *MySQL) DeleteRunner(ctx context.Context, id uuid.UUID, deletedAt time.Time, reason datastore.RunnerStatus) error
DeleteRunner delete a runner
func (*MySQL) DeleteTarget ¶
DeleteTarget delete a target
func (*MySQL) EnqueueJob ¶
EnqueueJob add a job
func (*MySQL) GetTargetByScope ¶
func (m *MySQL) GetTargetByScope(ctx context.Context, gheDomain, scope string) (*datastore.Target, error)
GetTargetByScope get a target from scope
func (*MySQL) ListRunners ¶
ListRunners get a not deleted runners
func (*MySQL) ListTargets ¶
ListTargets get a all target
Click to show internal directories.
Click to hide internal directories.