pool

package
v2.3.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceLockedByDifferentUser = errors.New("resources locked by different user")
	ErrNoLockedResourceFound         = errors.New("no locked resource found")
	ErrNoResourceAvailable           = errors.New("no resource available")
)

Functions

func GetCommands

func GetCommands(cfg *config.Pool, slackClient client.SlackClient) bot.Commands

GetCommands will return a list of available Pool commands...if the config is set!

Types

type ResourceLock

type ResourceLock struct {
	Resource    config.Resource `json:"-"`
	User        string
	Reason      string
	WarningSend bool `json:"-"`
	LockUntil   time.Time
}

ResourceLock struct to hold and store the current locks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL