和顺 / 衡律 返回所属 Agent
21.2

连接能力档案与调用条件

原能力

登记连接能力、身份、协议、数据许可、法域和副作用类别,固定调用条件。(合同附件 R7 21.2)

首选项目

CKAN(AGPL-3.0)。 CKAN

匹配范围

目录与规则求值保存提供者、用途和条件。

源码

CKAN · def package_create(

ckan/logic/action/package.py · 39–52 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
def package_create(context: Context, data_dict: DataDict) -> ActionResult.PackageCreate:  # noqa: C901
    """Create a new package.

    You must be authorized to create new packages. If you specify any groups
    for the new package, you must also be authorized to edit these groups.

    Plugins may change the parameters of this function depending on the value
    of the ``type`` parameter, see the
    :py:class:`~ckan.plugins.interfaces.IDatasetForm` plugin interface.

    :param name: the name of the new package, must be between 2 and 100
        characters long and contain only lowercase alphanumeric characters,
        ``-`` and ``_``, e.g. ``'warandpeace'``
    :type name: string

Open Policy Agent · func (pq PreparedEvalQuery) Eval(

v1/rego/rego.go · 608–621 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
func (pq PreparedEvalQuery) Eval(ctx context.Context, options ...EvalOption) (ResultSet, error) {
	ectx, finish, err := pq.newEvalContext(ctx, options)
	if err != nil {
		return nil, err
	}
	defer finish(ctx)

	ectx.compiledQuery = pq.r.compiledQueries[evalQueryType]

	return pq.r.eval(ctx, ectx)
}

// PreparedPartialQuery holds the prepared Rego state that has been pre-processed
// for partial evaluations.
  • // Copyright 2017 The OPA Authors. All rights reserved.

实现与验收要点

数据/模型/券商的真实资格、费用、许可与失效。