store

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStoreOptions

type DiskStoreOptions struct {
	AuditLogsStoreDir string `usage:"Audit log store directory, defaults to $XDG_DATA_HOME/obot/audit"`
}

type S3StoreOptions

type S3StoreOptions struct {
	AuditLogsStoreS3Bucket     string `usage:"Audit log store S3 bucket"`
	AuditLogsStoreS3Endpoint   string `usage:"Audit log store S3 endpoint"`
	AuditLogsStoreUsePathStyle bool   `usage:"Use path style for S3 object names"`
}

type Store

type Store interface {
	Persist([]byte) error
}

func NewDiskStore

func NewDiskStore(host string, compress bool, options DiskStoreOptions) (Store, error)

func NewS3Store

func NewS3Store(host string, compress bool, options S3StoreOptions) (Store, error)

Jump to

Keyboard shortcuts

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