local

package
v0.0.0-...-47d88b0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string
}

type LocalStorage

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

func NewLocalStorage

func NewLocalStorage(config Config) (*LocalStorage, error)

func (*LocalStorage) CountCachedJwtRulesByCondition

func (l *LocalStorage) CountCachedJwtRulesByCondition(condition api.RuleConditions, jwtProvider string) int

func (*LocalStorage) CountCachedObjectByCondition

func (l *LocalStorage) CountCachedObjectByCondition(condition api.RuleConditions, actions []api.RuleActions) int

func (*LocalStorage) CreateAccountKey

func (l *LocalStorage) CreateAccountKey() error

func (*LocalStorage) CreateKey

func (l *LocalStorage) CreateKey(name string) error

func (*LocalStorage) DeleteCachedObject

func (l *LocalStorage) DeleteCachedObject(filename string) error

func (*LocalStorage) GetCachedObjectName

func (l *LocalStorage) GetCachedObjectName(filename string) ([]*api.Object, error)

func (*LocalStorage) GetCachedRule

func (l *LocalStorage) GetCachedRule(name string) *api.Object

func (*LocalStorage) GetCert

func (l *LocalStorage) GetCert(name string) (string, error)

func (*LocalStorage) GetCertBundle

func (l *LocalStorage) GetCertBundle(name string) (string, error)

func (*LocalStorage) GetError

func (l *LocalStorage) GetError(name string) error

func (*LocalStorage) GetObject

func (l *LocalStorage) GetObject(name string) ([]api.Object, error)

* GetObject gets a single rule from storage and converts contents into rules

func (*LocalStorage) GetPrivateAccountkey

func (l *LocalStorage) GetPrivateAccountkey() (*rsa.PrivateKey, error)

func (*LocalStorage) GetPrivateKey

func (l *LocalStorage) GetPrivateKey(name string) (*rsa.PrivateKey, error)

func (*LocalStorage) GetPrivateKeyPem

func (l *LocalStorage) GetPrivateKeyPem(name string) (string, error)

func (*LocalStorage) GetPublicAccountkey

func (l *LocalStorage) GetPublicAccountkey() (*rsa.PublicKey, error)

func (*LocalStorage) ListCerts

func (l *LocalStorage) ListCerts() (map[string]string, error)

func (*LocalStorage) ListObjects

func (l *LocalStorage) ListObjects() ([]api.Object, error)

* ListObjects read directory contents and converts contents into rules

func (*LocalStorage) SetLogLevel

func (l *LocalStorage) SetLogLevel(loglevel string)

func (*LocalStorage) SetStoragePath

func (l *LocalStorage) SetStoragePath(path string)

* SetStoragePath allows you to set a new path

func (*LocalStorage) WriteCert

func (l *LocalStorage) WriteCert(name string, cert []byte) error

func (*LocalStorage) WriteCertBundle

func (l *LocalStorage) WriteCertBundle(name string, certs []byte) error

func (*LocalStorage) WriteChallenge

func (l *LocalStorage) WriteChallenge(name string, data []byte) error

Jump to

Keyboard shortcuts

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