Documentation ¶
Index ¶
- type Local
- func (l *Local) CurrentlyQueuedTasksCount() (count uint64, err error)
- func (l *Local) DelEnvironment(k schemas.EnvironmentKey) error
- func (l *Local) DelMetric(k schemas.MetricKey) error
- func (l *Local) DelProject(k schemas.ProjectKey) error
- func (l *Local) DelRef(k schemas.RefKey) error
- func (l *Local) EnvironmentExists(k schemas.EnvironmentKey) (bool, error)
- func (l *Local) Environments() (environments schemas.Environments, err error)
- func (l *Local) EnvironmentsCount() (int64, error)
- func (l *Local) ExecutedTasksCount() (uint64, error)
- func (l *Local) GetEnvironment(environment *schemas.Environment) error
- func (l *Local) GetMetric(m *schemas.Metric) error
- func (l *Local) GetProject(p *schemas.Project) error
- func (l *Local) GetRef(ref *schemas.Ref) error
- func (l *Local) MetricExists(k schemas.MetricKey) (bool, error)
- func (l *Local) Metrics() (metrics schemas.Metrics, err error)
- func (l *Local) MetricsCount() (int64, error)
- func (l *Local) ProjectExists(k schemas.ProjectKey) (bool, error)
- func (l *Local) Projects() (projects schemas.Projects, err error)
- func (l *Local) ProjectsCount() (int64, error)
- func (l *Local) QueueTask(tt schemas.TaskType, uniqueID string) (bool, error)
- func (l *Local) RefExists(k schemas.RefKey) (bool, error)
- func (l *Local) Refs() (refs schemas.Refs, err error)
- func (l *Local) RefsCount() (int64, error)
- func (l *Local) SetEnvironment(environment schemas.Environment) error
- func (l *Local) SetMetric(m schemas.Metric) error
- func (l *Local) SetProject(p schemas.Project) error
- func (l *Local) SetRef(ref schemas.Ref) error
- func (l *Local) UnqueueTask(tt schemas.TaskType, uniqueID string) error
- type Redis
- func (r *Redis) CurrentlyQueuedTasksCount() (uint64, error)
- func (r *Redis) DelEnvironment(k schemas.EnvironmentKey) error
- func (r *Redis) DelMetric(k schemas.MetricKey) error
- func (r *Redis) DelProject(k schemas.ProjectKey) error
- func (r *Redis) DelRef(k schemas.RefKey) error
- func (r *Redis) EnvironmentExists(k schemas.EnvironmentKey) (bool, error)
- func (r *Redis) Environments() (schemas.Environments, error)
- func (r *Redis) EnvironmentsCount() (int64, error)
- func (r *Redis) ExecutedTasksCount() (uint64, error)
- func (r *Redis) GetEnvironment(e *schemas.Environment) error
- func (r *Redis) GetMetric(m *schemas.Metric) error
- func (r *Redis) GetProject(p *schemas.Project) error
- func (r *Redis) GetRef(ref *schemas.Ref) error
- func (r *Redis) MetricExists(k schemas.MetricKey) (bool, error)
- func (r *Redis) Metrics() (schemas.Metrics, error)
- func (r *Redis) MetricsCount() (int64, error)
- func (r *Redis) ProjectExists(k schemas.ProjectKey) (bool, error)
- func (r *Redis) Projects() (schemas.Projects, error)
- func (r *Redis) ProjectsCount() (int64, error)
- func (r *Redis) QueueTask(tt schemas.TaskType, uniqueID string) (bool, error)
- func (r *Redis) RefExists(k schemas.RefKey) (bool, error)
- func (r *Redis) Refs() (schemas.Refs, error)
- func (r *Redis) RefsCount() (int64, error)
- func (r *Redis) SetEnvironment(e schemas.Environment) error
- func (r *Redis) SetMetric(m schemas.Metric) error
- func (r *Redis) SetProject(p schemas.Project) error
- func (r *Redis) SetRef(ref schemas.Ref) error
- func (r *Redis) UnqueueTask(tt schemas.TaskType, uniqueID string) (err error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local ..
func (*Local) CurrentlyQueuedTasksCount ¶ added in v0.5.1
CurrentlyQueuedTasksCount ..
func (*Local) DelEnvironment ¶
func (l *Local) DelEnvironment(k schemas.EnvironmentKey) error
DelEnvironment ..
func (*Local) EnvironmentExists ¶
func (l *Local) EnvironmentExists(k schemas.EnvironmentKey) (bool, error)
EnvironmentExists ..
func (*Local) Environments ¶
func (l *Local) Environments() (environments schemas.Environments, err error)
Environments ..
func (*Local) EnvironmentsCount ¶
EnvironmentsCount ..
func (*Local) ExecutedTasksCount ¶ added in v0.5.1
ExecutedTasksCount ..
func (*Local) GetEnvironment ¶
func (l *Local) GetEnvironment(environment *schemas.Environment) error
GetEnvironment ..
func (*Local) MetricExists ¶
MetricExists ..
func (*Local) ProjectExists ¶
func (l *Local) ProjectExists(k schemas.ProjectKey) (bool, error)
ProjectExists ..
func (*Local) SetEnvironment ¶
func (l *Local) SetEnvironment(environment schemas.Environment) error
SetEnvironment ..
type Redis ¶
type Redis struct { *redis.Client // contains filtered or unexported fields }
Redis ..
func (*Redis) CurrentlyQueuedTasksCount ¶ added in v0.5.1
CurrentlyQueuedTasksCount ..
func (*Redis) DelEnvironment ¶
func (r *Redis) DelEnvironment(k schemas.EnvironmentKey) error
DelEnvironment ..
func (*Redis) EnvironmentExists ¶
func (r *Redis) EnvironmentExists(k schemas.EnvironmentKey) (bool, error)
EnvironmentExists ..
func (*Redis) Environments ¶
func (r *Redis) Environments() (schemas.Environments, error)
Environments ..
func (*Redis) EnvironmentsCount ¶
EnvironmentsCount ..
func (*Redis) ExecutedTasksCount ¶ added in v0.5.1
ExecutedTasksCount ..
func (*Redis) GetEnvironment ¶
func (r *Redis) GetEnvironment(e *schemas.Environment) error
GetEnvironment ..
func (*Redis) MetricExists ¶
MetricExists ..
func (*Redis) ProjectExists ¶
func (r *Redis) ProjectExists(k schemas.ProjectKey) (bool, error)
ProjectExists ..
func (*Redis) SetEnvironment ¶
func (r *Redis) SetEnvironment(e schemas.Environment) error
SetEnvironment ..
type Store ¶
type Store interface { SetProject(schemas.Project) error DelProject(schemas.ProjectKey) error GetProject(*schemas.Project) error ProjectExists(schemas.ProjectKey) (bool, error) Projects() (schemas.Projects, error) ProjectsCount() (int64, error) SetEnvironment(schemas.Environment) error DelEnvironment(schemas.EnvironmentKey) error GetEnvironment(*schemas.Environment) error EnvironmentExists(schemas.EnvironmentKey) (bool, error) Environments() (schemas.Environments, error) EnvironmentsCount() (int64, error) SetRef(schemas.Ref) error DelRef(schemas.RefKey) error GetRef(*schemas.Ref) error RefExists(schemas.RefKey) (bool, error) Refs() (schemas.Refs, error) RefsCount() (int64, error) SetMetric(schemas.Metric) error DelMetric(schemas.MetricKey) error GetMetric(*schemas.Metric) error MetricExists(schemas.MetricKey) (bool, error) Metrics() (schemas.Metrics, error) MetricsCount() (int64, error) // Helpers to keep track of currently queued tasks and avoid scheduling them // twice at the risk of ending up with loads of dangling goroutines being locked QueueTask(schemas.TaskType, string) (bool, error) UnqueueTask(schemas.TaskType, string) error CurrentlyQueuedTasksCount() (uint64, error) ExecutedTasksCount() (uint64, error) }
Store ..
Click to show internal directories.
Click to hide internal directories.