Documentation
¶
Index ¶
- type Config
- type LocalStorage
- func (l *LocalStorage) CountCachedJwtRulesByCondition(condition api.RuleConditions, jwtProvider string) int
- func (l *LocalStorage) CountCachedObjectByCondition(condition api.RuleConditions, actions []api.RuleActions) int
- func (l *LocalStorage) CreateAccountKey() error
- func (l *LocalStorage) CreateKey(name string) error
- func (l *LocalStorage) DeleteCachedObject(filename string) error
- func (l *LocalStorage) GetCachedObjectName(filename string) ([]*api.Object, error)
- func (l *LocalStorage) GetCachedRule(name string) *api.Object
- func (l *LocalStorage) GetCert(name string) (string, error)
- func (l *LocalStorage) GetCertBundle(name string) (string, error)
- func (l *LocalStorage) GetError(name string) error
- func (l *LocalStorage) GetObject(name string) ([]api.Object, error)
- func (l *LocalStorage) GetPrivateAccountkey() (*rsa.PrivateKey, error)
- func (l *LocalStorage) GetPrivateKey(name string) (*rsa.PrivateKey, error)
- func (l *LocalStorage) GetPrivateKeyPem(name string) (string, error)
- func (l *LocalStorage) GetPublicAccountkey() (*rsa.PublicKey, error)
- func (l *LocalStorage) ListCerts() (map[string]string, error)
- func (l *LocalStorage) ListObjects() ([]api.Object, error)
- func (l *LocalStorage) SetLogLevel(loglevel string)
- func (l *LocalStorage) SetStoragePath(path string)
- func (l *LocalStorage) WriteCert(name string, cert []byte) error
- func (l *LocalStorage) WriteCertBundle(name string, certs []byte) error
- func (l *LocalStorage) WriteChallenge(name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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) 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) WriteCertBundle ¶
func (l *LocalStorage) WriteCertBundle(name string, certs []byte) error
func (*LocalStorage) WriteChallenge ¶
func (l *LocalStorage) WriteChallenge(name string, data []byte) error
Click to show internal directories.
Click to hide internal directories.