functions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name          string = "function"
	Category      string = "gcp"
	Description   string = "Invoke a GCP function forwarding the Falco event payload"
	Source        string = "any"
	Continue      bool   = true
	AllowOutput   bool   = false
	RequireOutput bool   = false
	Permissions   string = `{
        "cloudfunctions.functions.get",
        "cloudfunctions.functions.invoke"
	}`
	Example string = `` /* 183-byte string literal not displayed */

)

Variables

View Source
var (
	RequiredOutputFields = []string{}
)

Functions

This section is empty.

Types

type Actionner

type Actionner struct{}

func Register

func Register() *Actionner

func (Actionner) CheckParameters

func (a Actionner) CheckParameters(action *rules.Action) error

func (Actionner) Checks

func (a Actionner) Checks(_ *events.Event, action *rules.Action) error

func (Actionner) Information

func (a Actionner) Information() models.Information

func (Actionner) Init

func (a Actionner) Init() error

func (Actionner) Parameters

func (a Actionner) Parameters() models.Parameters

func (Actionner) Run

func (a Actionner) Run(event *events.Event, action *rules.Action) (utils.LogLine, *models.Data, error)

func (Actionner) RunWithClient

func (a Actionner) RunWithClient(c client.GCPClientAPI, event *events.Event, action *rules.Action) (utils.LogLine, *models.Data, error)

type Parameters

type Parameters struct {
	GCPFunctionName     string `mapstructure:"gcp_function_name" validate:"required"`
	GCPFunctionLocation string `mapstructure:"gcp_function_location" validate:"required"`
	GCPFunctionTimeout  int    `mapstructure:"gcp_function_timeout"`
}

Jump to

Keyboard shortcuts

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