resolvers

package
v2.4.13 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package resolvers provides a registry for workflow target resolution functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys() []string

Keys returns all registered resolver keys

func Register

func Register(key string, fn ResolverFunc)

Register registers a resolver function with a given key

func ResolveGroupMembers

func ResolveGroupMembers(ctx context.Context, client *generated.Client, groupID string) ([]string, error)

ResolveGroupMembers returns the user IDs of all users in the specified group.

Types

type ResolverFunc

type ResolverFunc func(ctx context.Context, client *generated.Client, obj *workflows.Object) ([]string, error)

ResolverFunc resolves a target configuration to a list of user IDs

func Get

func Get(key string) (ResolverFunc, bool)

Get retrieves a resolver function by key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL