slackfn

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 14 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 slackfn is the Slack module's controller function: the workspaces' user-group passes, on a schedule (`tick`) or when the console asks (`run`). It has no HTTP surface and serves no module call. It registers itself with internal/lambdaapp; cmd/sluis-slack and the lambda build of cmd/sluis import it.

Index

Constants

This section is empty.

Variables

View Source
var Kinds []string

Kinds are the kinds of secret the module's check reads. The module declares none: a workspace's credential is made at run time, and the policy's client secrets and the directory's keys are the issuer's and the Google module's.

Functions

func CheckFile

func CheckFile(file string) func(context.Context) (deploycheck.Report, error)

CheckFile is the {"kind":"check"} answer of the function whose document is in file: the adapters a pass builds (State, the blobs, the secrets, the trigger, the audit sink), built from the document and refused with the setting that is missing; then the secrets it declares. Nothing it reaches mutates.

func Handler

func Handler(log *slog.Logger, declared func(target string) bool, open func(context.Context) (lambdaapp.Pass, error),
	check func(context.Context) (deploycheck.Report, error)) *lambdaapp.HTTP

Handler is the function's entry: tick and run events for the targets declared says are the policy's, opening one pass per invocation; check is the {"kind":"check"} answer. It answers no module call and no HTTP request.

func Server

func Server(log *slog.Logger, open func(context.Context) (*slackconsole.Service, error)) *modcall.Server

Server is the server of the module's calls over the service open assembles.

func WithCalls

func WithCalls(h *lambdaapp.HTTP, s *modcall.Server) *lambdaapp.HTTP

WithCalls adds the module's calls to a handler: the server answers `slack.console.*` to the class `console`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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