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) GetLock(ctx context.Context) 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, scope string) (*datastore.Target, error)
- func (m *MySQL) IsLocked(ctx context.Context) (string, error)
- func (m *MySQL) ListJobs(ctx context.Context) ([]datastore.Job, error)
- func (m *MySQL) ListRunners(ctx context.Context) ([]datastore.Runner, error)
- func (m *MySQL) ListRunnersByTargetID(ctx context.Context, targetID uuid.UUID) ([]datastore.Runner, error)
- func (m *MySQL) ListTargets(ctx context.Context) ([]datastore.Target, error)
- func (m *MySQL) UpdateTargetParam(ctx context.Context, targetID uuid.UUID, ...) 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 ¶
GetTargetByScope get a target from scope
func (*MySQL) ListRunners ¶
ListRunners get a not deleted runners
func (*MySQL) ListRunnersByTargetID ¶ added in v1.10.1
func (m *MySQL) ListRunnersByTargetID(ctx context.Context, targetID uuid.UUID) ([]datastore.Runner, error)
ListRunnersByTargetID get a not deleted runners that has target_id
func (*MySQL) ListTargets ¶
ListTargets get a all target
func (*MySQL) UpdateTargetParam ¶ added in v1.10.0
func (m *MySQL) UpdateTargetParam(ctx context.Context, targetID uuid.UUID, newResourceType datastore.ResourceType, newProviderURL sql.NullString) error
UpdateTargetParam update parameter of target
Click to show internal directories.
Click to hide internal directories.