storage

package
v0.0.0-...-d11cad2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotificationReceiver

func NewNotificationReceiver() *s3.NotificationReceiver

Types

type Config

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

type Storage

type Storage interface {
	SetLogLevel(loglevel string)
	SetStoragePath(path string)
	GetError(name string) error
	ListObjects() ([]api.Object, error)
	GetObject(name string) ([]api.Object, error)
	ListCerts() (map[string]string, error)
	GetCert(name string) (string, error)
	GetCertBundle(name string) (string, error)
	WriteCert(name string, cert []byte) error
	WriteCertBundle(name string, certs []byte) error
	GetPrivateAccountkey() (*rsa.PrivateKey, error)
	GetPublicAccountkey() (*rsa.PublicKey, error)
	CreateAccountKey() error
	CreateKey(name string) error
	GetPrivateKey(name string) (*rsa.PrivateKey, error)
	GetPrivateKeyPem(name string) (string, error)
	WriteChallenge(name string, data []byte) error
	GetCachedObjectName(filename string) ([]*api.Object, error)
	DeleteCachedObject(filename string) error
	CountCachedObjectByCondition(condition api.RuleConditions, actions []api.RuleActions) int
	CountCachedJwtRulesByCondition(condition api.RuleConditions, jwtProvider string) int
	GetCachedRule(name string) *api.Object
}

func NewLocalStorage

func NewLocalStorage(storagePath string) (Storage, error)

func NewS3Storage

func NewS3Storage(storageBucket, storagePath, awsRegion, storageNotifications string, startQueue bool) (Storage, error)

func NewStorage

func NewStorage(t string, config interface{}) (Storage, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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