blob

package
v0.7.2-rc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	WriteAll(ctx context.Context, key string, p []byte, opts *blob.WriterOptions) error
	ReadAll(ctx context.Context, key string) ([]byte, error)
	List(opts *blob.ListOptions) *blob.ListIterator
	Delete(ctx context.Context, key string) error
	Close() error
}

func NewStore

func NewStore(ctx context.Context, storagePath, storageSecret string) (Bucket, error)

type RuleRepository

type RuleRepository struct {
	// contains filtered or unexported fields
}

func NewRuleRepository

func NewRuleRepository(logger log.Logger, b Bucket) *RuleRepository

func (*RuleRepository) Close

func (repo *RuleRepository) Close() error

func (*RuleRepository) GetAll

func (repo *RuleRepository) GetAll(ctx context.Context) ([]rule.Ruleset, error)

func (*RuleRepository) InitCache

func (repo *RuleRepository) InitCache(ctx context.Context, refreshDelay time.Duration) error

func (*RuleRepository) Upsert added in v0.6.34

func (repo *RuleRepository) Upsert(ctx context.Context, name string, config rule.Ruleset) (rule.Config, error)

type SchemaConfig

type SchemaConfig struct {
	// contains filtered or unexported fields
}

func NewSchemaConfigRepository

func NewSchemaConfigRepository(b Bucket) *SchemaConfig

func (*SchemaConfig) GetSchema

func (*SchemaConfig) UpsertResourceConfigs added in v0.6.34

func (repo *SchemaConfig) UpsertResourceConfigs(ctx context.Context, name string, config schema.NamespaceConfigMapType) (schema.Config, error)

Jump to

Keyboard shortcuts

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