Help us shape the future of Go! Take the 2026 Go Developer Survey

resolvers

package
v1.11.21 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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