Liking cljdoc? Tell your friends :D

puppetlabs.pcp.broker.inventory


batch-update-interval-msclj

source

build-inventory-dataclj

(build-inventory-data inventory pattern-sets)

Inputs: [inventory :- shared/Inventory pattern-sets :- shared/PatternSets] Returns: p/InventoryResponse

Build the payload of the inventory response message given the inventory snapshot and a set of patterns to filter the snapshot.

Inputs: [inventory :- shared/Inventory pattern-sets :- shared/PatternSets]
Returns: p/InventoryResponse

Build the payload of the inventory response message given the inventory snapshot and
a set of patterns to filter the snapshot.
sourceraw docstring

build-pattern-setsclj

(build-pattern-sets patterns)

Inputs: [patterns :- [p/Uri]] Returns: shared/PatternSets

Parse the passed patterns and split them into explicit and wildcard sets for faster matching.

Inputs: [patterns :- [p/Uri]]
Returns: shared/PatternSets

Parse the passed patterns and split them into explicit and wildcard sets for faster matching.
sourceraw docstring

build-update-dataclj

(build-update-data updates pattern-sets)

Inputs: [updates :- [p/InventoryChange] pattern-sets :- shared/PatternSets] Returns: (s/maybe p/InventoryUpdate)

Build the payload of the inventory update message given the inventory updates snapshot and a set of patterns to filter the snapshot. Return nil if there are no updates matching the patterns.

Inputs: [updates :- [p/InventoryChange] pattern-sets :- shared/PatternSets]
Returns: (s/maybe p/InventoryUpdate)

Build the payload of the inventory update message given the inventory updates snapshot and
a set of patterns to filter the snapshot. Return nil if there are no updates matching the
patterns.
sourceraw docstring

init-databaseclj

(init-database)

Inputs: [] Returns: shared/BrokerDatabase

Inputs: []
Returns: shared/BrokerDatabase
sourceraw docstring

send-updatesclj

(send-updates broker)

Inputs: [broker :- Broker]

Inputs: [broker :- Broker]
sourceraw docstring

start-inventory-updates!clj

(start-inventory-updates! broker)

Inputs: [broker :- Broker]

Start periodic sending of the inventory updates.

Inputs: [broker :- Broker]

Start periodic sending of the inventory updates.
sourceraw docstring

stop-inventory-updates!clj

(stop-inventory-updates! broker)

Inputs: [broker :- Broker]

Stop the periodic sending of the inventory updates.

Inputs: [broker :- Broker]

Stop the periodic sending of the inventory updates.
sourceraw docstring

subscribe-client!clj

(subscribe-client! broker client connection pattern-sets)

Inputs: [broker :- Broker client :- p/Uri connection :- Object pattern-sets :- shared/PatternSets] Returns: shared/BrokerDatabase

Subscribe the specified client for inventory updates. Expects a promise of a connection, to be fulfilled when the initial inventory response has been sent; that prevents messages appearing out of order. Return the broker database snapshot at the time of subscribing.

Inputs: [broker :- Broker client :- p/Uri connection :- Object pattern-sets :- shared/PatternSets]
Returns: shared/BrokerDatabase

Subscribe the specified client for inventory updates. Expects a promise of a connection, to be
fulfilled when the initial inventory response has been sent; that prevents messages appearing out
of order. Return the broker database snapshot at the time of subscribing.
sourceraw docstring

unchecked+clj

(unchecked+ a b)

Inputs: [a :- s/Int b :- s/Int] Returns: s/Int

An addition which can overflow

Inputs: [a :- s/Int b :- s/Int]
Returns: s/Int

An addition which can overflow
sourceraw docstring

unchecked-clj

(unchecked- a b)

Inputs: [a :- s/Int b :- s/Int] Returns: s/Int

A substraction which can overflow

Inputs: [a :- s/Int b :- s/Int]
Returns: s/Int

A substraction which can overflow
sourceraw docstring

unsubscribe-client!clj

(unsubscribe-client! broker client)

Inputs: [broker :- Broker client :- p/Uri] Returns: shared/BrokerDatabase

Unsubscribe the specified client from inventory updates. Return the broker database snapshot at the time of unsubscribing.

Inputs: [broker :- Broker client :- p/Uri]
Returns: shared/BrokerDatabase

Unsubscribe the specified client from inventory updates. Return the broker database snapshot
at the time of unsubscribing.
sourceraw docstring

uri-pattern-sets-match?clj

(uri-pattern-sets-match? {:keys [explicit wildcard]} subject)

Inputs: [{:keys [explicit wildcard]} :- shared/PatternSets subject :- p/Uri] Returns: s/Bool

Does a subject uri match the pattern sets?

Inputs: [{:keys [explicit wildcard]} :- shared/PatternSets subject :- p/Uri]
Returns: s/Bool

Does a subject uri match the pattern sets?
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close