actionandtrigger

package
v1.21.0-capdev.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 12 Imported by: ? 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

Index

Constants

This section is empty.

Variables

View Source
var File_capabilities_internal_actionandtrigger_v1_action_and_trigger_proto protoreflect.FileDescriptor

Functions

func Trigger

func Trigger(config *Config) cre.Trigger[*TriggerEvent, *TriggerEvent]

Types

type Basic

type Basic struct {
}

func (*Basic) Action

func (c *Basic) Action(runtime cre.Runtime, input *Input) cre.Promise[*Output]

type BasicRestrictor added in v1.18.0

type BasicRestrictor struct {
}

func (*BasicRestrictor) LimitAction added in v1.18.0

func (c *BasicRestrictor) LimitAction(maxCalls uint32) *sdkpb.CapabilityRestriction

type Config

type Config struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Number int32  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetName

func (x *Config) GetName() string

func (*Config) GetNumber

func (x *Config) GetNumber() int32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Input

type Input struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Input) Descriptor deprecated

func (*Input) Descriptor() ([]byte, []int)

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetName

func (x *Input) GetName() string

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

func (x *Input) ProtoReflect() protoreflect.Message

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

type Output

type Output struct {
	Welcome string `protobuf:"bytes,1,opt,name=welcome,proto3" json:"welcome,omitempty"`
	// contains filtered or unexported fields
}

func (*Output) Descriptor deprecated

func (*Output) Descriptor() ([]byte, []int)

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetWelcome

func (x *Output) GetWelcome() string

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

type TriggerEvent

type TriggerEvent struct {
	CoolOutput string `protobuf:"bytes,1,opt,name=cool_output,json=coolOutput,proto3" json:"cool_output,omitempty"`
	// contains filtered or unexported fields
}

func (*TriggerEvent) Descriptor deprecated

func (*TriggerEvent) Descriptor() ([]byte, []int)

Deprecated: Use TriggerEvent.ProtoReflect.Descriptor instead.

func (*TriggerEvent) GetCoolOutput

func (x *TriggerEvent) GetCoolOutput() string

func (*TriggerEvent) ProtoMessage

func (*TriggerEvent) ProtoMessage()

func (*TriggerEvent) ProtoReflect

func (x *TriggerEvent) ProtoReflect() protoreflect.Message

func (*TriggerEvent) Reset

func (x *TriggerEvent) Reset()

func (*TriggerEvent) String

func (x *TriggerEvent) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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