Documentation ¶
Index ¶
- type Memory
- func (m *Memory) CreateRunner(ctx context.Context, runner datastore.Runner) error
- func (m *Memory) CreateTarget(ctx context.Context, target datastore.Target) error
- func (m *Memory) DeleteJob(ctx context.Context, id uuid.UUID) error
- func (m *Memory) DeleteRunner(ctx context.Context, id uuid.UUID, deletedAt time.Time, ...) error
- func (m *Memory) DeleteTarget(ctx context.Context, id uuid.UUID) error
- func (m *Memory) EnqueueJob(ctx context.Context, job datastore.Job) error
- func (m *Memory) GetLock(ctx context.Context) error
- func (m *Memory) GetRunner(ctx context.Context, id uuid.UUID) (*datastore.Runner, error)
- func (m *Memory) GetTarget(ctx context.Context, id uuid.UUID) (*datastore.Target, error)
- func (m *Memory) GetTargetByScope(ctx context.Context, scope string) (*datastore.Target, error)
- func (m *Memory) IsLocked(ctx context.Context) (string, error)
- func (m *Memory) ListJobs(ctx context.Context) ([]datastore.Job, error)
- func (m *Memory) ListRunners(ctx context.Context) ([]datastore.Runner, error)
- func (m *Memory) ListRunnersByTargetID(ctx context.Context, targetID uuid.UUID) ([]datastore.Runner, error)
- func (m *Memory) ListTargets(ctx context.Context) ([]datastore.Target, error)
- func (m *Memory) UpdateTargetParam(ctx context.Context, targetID uuid.UUID, ...) error
- func (m *Memory) UpdateTargetStatus(ctx context.Context, targetID uuid.UUID, newStatus datastore.TargetStatus, ...) error
- func (m *Memory) 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 Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is implement datastore on-memory
func (*Memory) CreateRunner ¶
CreateRunner add a runner
func (*Memory) CreateTarget ¶
CreateTarget create a target
func (*Memory) DeleteRunner ¶
func (m *Memory) DeleteRunner(ctx context.Context, id uuid.UUID, deletedAt time.Time, reason datastore.RunnerStatus) error
DeleteRunner delete a runner
func (*Memory) DeleteTarget ¶
DeleteTarget delete a target
func (*Memory) EnqueueJob ¶
EnqueueJob add a job
func (*Memory) GetTargetByScope ¶
GetTargetByScope get a target from scope
func (*Memory) ListRunners ¶
ListRunners get a all runners
func (*Memory) ListRunnersByTargetID ¶ added in v1.10.1
func (m *Memory) ListRunnersByTargetID(ctx context.Context, targetID uuid.UUID) ([]datastore.Runner, error)
ListRunnersByTargetID get a not deleted runners that has target_id
func (*Memory) ListTargets ¶
ListTargets get a all targets
func (*Memory) UpdateTargetParam ¶ added in v1.10.0
func (m *Memory) UpdateTargetParam(ctx context.Context, targetID uuid.UUID, newResourceType datastore.ResourceType, newProviderURL string) error
UpdateTargetParam update parameter of target
Click to show internal directories.
Click to hide internal directories.