Documentation ¶
Index ¶
- Constants
- type Table
- func (t *Table) Chan(ctx context.Context) chan struct{}
- func (t *Table) GetCurrent(ctx context.Context) ([]*types.License, error)
- func (t *Table) Reserve(ctx context.Context, licenseIDs []string, node string) (ret []*types.License, retErr error)
- func (t *Table) UpdateInUse(ctx context.Context, licenses []*types.License) (retErr error)
Constants ¶
View Source
const ( QueryAllLicenses = "SELECT id, vendor, feature, usage_state, last_state_change, reserved_by_node, used_by_process FROM license_state" NotifyLicenseState = "NOTIFY license_state_update_channel" StateFree = "FREE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.