localfile

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "localfile"
)

Variables

This section is empty.

Functions

func Factory

func Factory() plugins.Factory

Types

type Config

type Config struct {
	FilePath                string `json:"file_path"`
	FileType                string `json:"file_type,omitempty"`                 // default "json"
	Timeout                 string `json:"timeout,omitempty"`                   // no timeouts by default
	Interval                string `json:"polling_interval,omitempty"`          // default 30s
	ChangeDetectionStrategy string `json:"change_detection_strategy,omitempty"` // default "hash"

	Path string `json:"path"`

	RegoTransformRule string `json:"rego_transform"`
	// contains filtered or unexported fields
}

Config represents the configuration of the localfile data plugin

func (Config) Equal

func (c Config) Equal(other Config) bool

type Data

type Data struct {
	Config Config

	*transform.Rego
	// contains filtered or unexported fields
}

Data plugin

func (*Data) Name

func (c *Data) Name() string

dataPlugin accessors

func (*Data) Path

func (c *Data) Path() storage.Path

func (*Data) Reconfigure

func (c *Data) Reconfigure(ctx context.Context, next any)

func (*Data) Start

func (c *Data) Start(ctx context.Context) error

func (*Data) Stop

func (c *Data) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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