toolbox

package
v0.0.518 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 64 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArbiter added in v0.0.452

func NewAuthenticationNoop added in v0.0.490

func NewAuthenticationNoop(l contract.LogOperator) *authentication.DefaultTool

func NewAuthorizationNoop added in v0.0.490

func NewAuthorizationNoop(l contract.LogOperator) *authorization.DefaultTool

func NewBasis

func NewBucket added in v0.0.321

func NewBucketNoop added in v0.0.324

func NewBucketNoop(l contract.LogOperator) *bucket.DefaultTool

func NewCaptioner added in v0.0.458

func NewCert

func NewEmailNoop added in v0.0.490

func NewEmailNoop(l contract.LogOperator) *email.DefaultTool

func NewEmbedder added in v0.0.422

func NewEnvironment added in v0.0.21

func NewFetcher added in v0.0.268

func NewFirebaseNoop added in v0.0.490

func NewFirebaseNoop(l contract.LogOperator) *firebase.DefaultTool

func NewFsys

func NewGeoNoop added in v0.0.490

func NewGeoNoop(l contract.LogOperator) *geo.DefaultTool

func NewGrok added in v0.0.435

func NewGrokNoop added in v0.0.490

func NewGrokNoop(l contract.LogOperator) *grok.DefaultTool

func NewGzip

func NewImageIntel added in v0.0.321

func NewImageIntelNoop added in v0.0.490

func NewImageIntelNoop(l contract.LogOperator) *imageintel.DefaultTool

func NewInout

func NewJSON

func NewLibrary added in v0.0.7

func NewLog

func NewMedia added in v0.0.326

func NewMoney

func NewMongoNoop added in v0.0.18

func NewMongoNoop(l contract.LogOperator) *mongo.DefaultTool

func NewPeriod added in v0.0.403

func NewPool

func NewPrompter added in v0.0.435

func NewPubSubNoop added in v0.0.490

func NewPubSubNoop(l contract.LogOperator) *pubsub.DefaultTool

func NewQR added in v0.0.387

func NewRedisNoop added in v0.0.18

func NewRedisNoop(l contract.LogOperator) *redis.DefaultTool

func NewRouteOptimizationNoop added in v0.0.490

func NewRouteOptimizationNoop(l contract.LogOperator) *routeoptimization.DefaultTool

func NewSecretNoop added in v0.0.490

func NewSecretNoop(l contract.LogOperator) *secret.DefaultTool

func NewSpeech added in v0.0.308

func NewSpeechNoop added in v0.0.490

func NewSpeechNoop(l contract.LogOperator) *speech.DefaultTool

func NewStorage added in v0.0.387

func NewString added in v0.0.206

func NewString(l contract.LogOperator) *string.DefaultTool

func NewStripe added in v0.0.486

func NewStripeNoop added in v0.0.490

func NewStripeNoop(l contract.LogOperator) *stripe.DefaultTool

func NewTemplate added in v0.0.246

func NewTranslation added in v0.0.245

func NewTranslationNoop added in v0.0.490

func NewTranslationNoop(l contract.LogOperator) *translation.DefaultTool

func NewTwilio added in v0.0.228

func NewTwilioNoop added in v0.0.490

func NewTwilioNoop(l contract.LogOperator) *twilio.DefaultTool

func NewVertex added in v0.0.422

func NewVertexNoop added in v0.0.490

func NewVertexNoop(l contract.LogOperator) *vertex.DefaultTool

func NewVideoIntel added in v0.0.321

func NewVideoIntelNoop added in v0.0.490

func NewVideoIntelNoop(l contract.LogOperator) *videointel.DefaultTool

Types

type Loaded added in v0.0.29

Loaded holds the actual secrets loaded from Secret Manager.

func Load added in v0.0.35

func Load(ctx context.Context, c secret.Client, s SI) (*Loaded, error)

Load loads secrets from Secret Manager.

func (*Loaded) Map added in v0.0.35

func (l *Loaded) Map(b *Behavior, o *OutboundCfg) error

Map maps loaded secrets to Behavior and OutboundCfg.

type Noop added in v0.0.18

type Noop struct {
	Redis             bool
	Mongo             bool
	Bucket            bool
	Email             bool
	Geo               bool
	Firebase          bool
	Grok              bool
	ImageIntel        bool
	PubSub            bool
	RouteOptimization bool
	Secret            bool
	Speech            bool
	Stripe            bool
	Translation       bool
	Twilio            bool
	Vertex            bool
	VideoIntel        bool
	Authentication    bool
	Authorization     bool
}

Noop toggles manual bypass of external dependencies (e.g., Redis, Mongo) for emergencies. Ignored in the local environment, where dependencies are always bypassed.

func (*Noop) Local added in v0.0.23

func (n *Noop) Local(e contract.Env)

type Option

type Option = contract.Opt[Options]

func WithArbiter added in v0.0.452

func WithArbiter(t *arbiter.DefaultTool) Option

func WithAuthentication added in v0.0.87

func WithAuthentication(t *authentication.DefaultTool) Option

func WithAuthorization added in v0.0.8

func WithAuthorization(t *authorization.DefaultTool) Option

func WithBasis

func WithBasis(t *basis.DefaultTool) Option

func WithBucket added in v0.0.321

func WithBucket(t *bucket.DefaultTool) Option

func WithCache

func WithCache(t *cache.DefaultTool) Option

func WithCaptioner added in v0.0.458

func WithCaptioner(t *captioner.DefaultTool) Option

func WithCert

func WithCert(t *cert.DefaultTool) Option

func WithDB

func WithDB(t *db.DefaultTool) Option

func WithEmail

func WithEmail(t *email.DefaultTool) Option

func WithEmbedder added in v0.0.422

func WithEmbedder(t *embedder.DefaultTool) Option

func WithEnvironment added in v0.0.21

func WithEnvironment(t *environment.DefaultTool) Option

func WithFactory

func WithFactory(t *factory.DefaultTool) Option

func WithFetcher added in v0.0.268

func WithFetcher(t *fetcher.DefaultTool) Option

func WithFirebase

func WithFirebase(t *firebase.DefaultTool) Option

func WithFsys

func WithFsys(t *fsys.DefaultTool) Option

func WithGeo

func WithGeo(t *geo.DefaultTool) Option

func WithGrok added in v0.0.435

func WithGrok(t *grok.DefaultTool) Option

func WithGzip

func WithGzip(t *gzip.DefaultTool) Option

func WithHTTP

func WithHTTP(t *http.DefaultTool) Option

func WithImageIntel added in v0.0.321

func WithImageIntel(t *imageintel.DefaultTool) Option

func WithInout

func WithInout(t *inout.DefaultTool) Option

func WithJSON

func WithJSON(t *json.DefaultTool) Option

func WithLibrary added in v0.0.7

func WithLibrary(t *library.DefaultTool) Option

func WithLimiter

func WithLimiter(t *limiter.DefaultTool) Option

func WithLog

func WithLog(t *log.DefaultTool) Option

func WithMedia added in v0.0.326

func WithMedia(t *media.DefaultTool) Option

func WithMiddleware

func WithMiddleware(t *middleware.DefaultTool) Option

func WithMoney

func WithMoney(t *money.DefaultTool) Option

func WithMongo

func WithMongo(t *mongo.DefaultTool) Option

func WithMultipart

func WithMultipart(t *multipart.DefaultTool) Option

func WithOIDC

func WithOIDC(t *oidc.DefaultTool) Option

func WithPeriod added in v0.0.403

func WithPeriod(t *period.DefaultTool) Option

func WithPool

func WithPool(t *pool.DefaultTool) Option

func WithPrompter added in v0.0.435

func WithPrompter(t *prompter.DefaultTool) Option

func WithPubSub

func WithPubSub(t *pubsub.DefaultTool) Option

func WithQR added in v0.0.387

func WithQR(t *qr.DefaultTool) Option

func WithRedis

func WithRedis(t *redis.DefaultTool) Option

func WithReflect

func WithReflect(t *reflect.DefaultTool) Option

func WithRouteOptimization added in v0.0.470

func WithRouteOptimization(t *routeoptimization.DefaultTool) Option

func WithRouter

func WithRouter(t *router.DefaultTool) Option

func WithSecret

func WithSecret(t *secret.DefaultTool) Option

func WithSemaphore

func WithSemaphore(t *semaphore.DefaultTool) Option

func WithServer

func WithServer(t *server.DefaultTool) Option

func WithSpeech added in v0.0.308

func WithSpeech(t *speech.DefaultTool) Option

func WithStorage added in v0.0.387

func WithStorage(t *storage.DefaultTool) Option

func WithString added in v0.0.206

func WithString(t *string.DefaultTool) Option

func WithStripe added in v0.0.486

func WithStripe(t *stripe.DefaultTool) Option

func WithTemplate added in v0.0.246

func WithTemplate(t *template.DefaultTool) Option

func WithTranslation added in v0.0.245

func WithTranslation(t *translation.DefaultTool) Option

func WithTwilio added in v0.0.228

func WithTwilio(t *twilio.DefaultTool) Option

func WithValidation

func WithValidation(t *validation.DefaultTool) Option

func WithVertex added in v0.0.422

func WithVertex(t *vertex.DefaultTool) Option

func WithVideoIntel added in v0.0.321

func WithVideoIntel(t *videointel.DefaultTool) Option

type Options

type Options struct {
	Arbiter           *arbiter.DefaultTool
	Authentication    *authentication.DefaultTool
	Authorization     *authorization.DefaultTool
	Basis             *basis.DefaultTool
	Bucket            *bucket.DefaultTool
	Cache             *cache.DefaultTool
	Captioner         *captioner.DefaultTool
	Cert              *cert.DefaultTool
	DB                *db.DefaultTool
	Email             *email.DefaultTool
	Embedder          *embedder.DefaultTool
	Environment       *environment.DefaultTool
	Factory           *factory.DefaultTool
	Fetcher           *fetcher.DefaultTool
	Firebase          *firebase.DefaultTool
	Fsys              *fsys.DefaultTool
	Geo               *geo.DefaultTool
	Gzip              *gzip.DefaultTool
	HTTP              *http.DefaultTool
	ImageIntel        *imageintel.DefaultTool
	Inout             *inout.DefaultTool
	JSON              *json.DefaultTool
	Limiter           *limiter.DefaultTool
	Grok              *grok.DefaultTool
	Prompter          *prompter.DefaultTool
	Log               *log.DefaultTool
	Media             *media.DefaultTool
	Middleware        *middleware.DefaultTool
	Money             *money.DefaultTool
	Mongo             *mongo.DefaultTool
	Multipart         *multipart.DefaultTool
	OIDC              *oidc.DefaultTool
	Period            *period.DefaultTool
	Pool              *pool.DefaultTool
	PubSub            *pubsub.DefaultTool
	QR                *qr.DefaultTool
	Redis             *redis.DefaultTool
	Reflect           *reflect.DefaultTool
	Router            *router.DefaultTool
	RouteOptimization *routeoptimization.DefaultTool
	Secret            *secret.DefaultTool
	Semaphore         *semaphore.DefaultTool
	Server            *server.DefaultTool
	Speech            *speech.DefaultTool
	Storage           *storage.DefaultTool
	String            *string.DefaultTool
	Template          *template.DefaultTool
	Translation       *translation.DefaultTool
	Twilio            *twilio.DefaultTool
	Validation        *validation.DefaultTool
	Vertex            *vertex.DefaultTool
	VideoIntel        *videointel.DefaultTool
	Library           *library.DefaultTool
	Stripe            *stripe.DefaultTool
}

func ApplyOptions

func ApplyOptions(opts *Options, modifiers ...Option) Options

type SI added in v0.0.27

type SI struct {
	UsrRedis                           contract.SecretInfo
	UsrTwilio                          contract.SecretInfo
	PwdRedis                           contract.SecretInfo
	PwdTwilio                          contract.SecretInfo
	SIDTwilio                          contract.SecretInfo
	AuthTokenTwilio                    contract.SecretInfo
	APIKeyGrok                         contract.SecretInfo
	APIKeyMaps                         contract.SecretInfo
	HeaderKeyUserID                    contract.SecretInfo
	HeaderKeyIdempotency               contract.SecretInfo
	APIKeyFirebase                     contract.SecretInfo
	APIKeyFirebaseMod                  contract.SecretInfo
	CredentialsJSONFirebase            contract.SecretInfo
	CredentialsJSONFirebaseMod         contract.SecretInfo
	CredentialsJSONToolboxAccess       contract.SecretInfo
	LimiterMaxScore                    contract.SecretInfo
	OIDCAudience                       contract.SecretInfo
	OIDCIssuer                         contract.SecretInfo
	AuthenticationSecret               contract.SecretInfo
	ProjectIDToolbox                   contract.SecretInfo
	PubSubDeadLetterTopicID            contract.SecretInfo
	PubSubDeadLetterPullSubscriptionID contract.SecretInfo
	PathAuthorizationEntities          contract.SecretInfo
	PathAuthorizationAuthorize         contract.SecretInfo
	PathAuthorizationAuthorizeMany     contract.SecretInfo
	PathStorageUpload                  contract.SecretInfo
	URLAuthorizationBase               contract.SecretInfo
	URLBackendBase                     contract.SecretInfo
	URLStorageBase                     contract.SecretInfo
	URLCallbackTwilio                  contract.SecretInfo
	EmailToolboxServiceAccount         contract.SecretInfo
	EmailScope                         contract.SecretInfo
	EmailImpersonate                   contract.SecretInfo
	BucketLocation                     contract.SecretInfo
	BucketPrefix                       contract.SecretInfo
	VertexLocation                     contract.SecretInfo
	AccountIDStripe                    contract.SecretInfo
	WebhookSecretTestStripe            contract.SecretInfo
	WebhookSecretStripe                contract.SecretInfo
	APIKeyTestStripe                   contract.SecretInfo
	APIKeyStripe                       contract.SecretInfo
}

SI holds secret identifiers for secrets.

type Toolbox

type Toolbox struct {
	Options
}

func Open

func Open(ctx context.Context, b Behavior, o OutboundCfg, n Noop, si SI) (*Toolbox, error)

Jump to

Keyboard shortcuts

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