class DppmRestApi::Actions::RouteFilters

Overview

A series of filters, which may be parsed from the current context. They currently allow filtering the #pkg_file attributes of DPPM::Prefix's Pkg, App, and Src.

Defined in:

actions/route_filters.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : HTTP::Server::Context) #

[View source]

Instance Method Detail

def &(*args, **options) #

[View source]
def &(*args, **options, &) #

[View source]
def [](*args, **options) #

[View source]
def [](*args, **options, &) #

[View source]
def []=(*args, **options) #

[View source]
def []?(*args, **options) #

[View source]
def []?(*args, **options, &) #

[View source]
def add(key : String, value : String) : Nil #

Add a single value to the filters on the given key. If there are already some filters on this key, the original values are kept as well.


[View source]
def add(key : String, values : Enumerable(String)) #

Add a series of values to the filters on the given key. If there are already some filters on this key, the original values are kept as well.


[View source]
def apps_json(builder : JSON::Builder, keys : Enumerable(String)) #

build the JSON list of data from the package files of all apps that pass the filters.


[View source]
def filters_allow?(pkg_file : DPPM::Prefix::PkgFile) : Bool #

Return true if the given package file's attributes pass the filters


[View source]
def has_key?(*args, **options) #

[View source]
def has_key?(*args, **options, &) #

[View source]
def pkgs_json(builder : JSON::Builder, keys : Enumerable(String)) #

build the JSON list of data from the package files of all pkgs that pass the filters.


[View source]
def srcs_json(builder : JSON::Builder, keys : Enumerable(String)) #

build the JSON list of data from the package files of all srcs that pass the filters.


[View source]