pool

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceLockedByDifferentUser = fmt.Errorf("resources locked by different user")
	ErrNoLockedResourceFound         = fmt.Errorf("no locked resource found")
	ErrNoResourceAvailable           = fmt.Errorf("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