Documentation ¶
Index ¶
- type Bucket
- type Config
- type NotificationEntry
- type NotificationReceiver
- type Notifications
- type Object
- type OwnerIdentity
- type Peer
- type Records
- type RequestParameters
- type ResponseElements
- type S3
- type S3NotificationBody
- type S3Storage
- func (l *S3Storage) CountCachedJwtRulesByCondition(condition api.RuleConditions, jwtProvider string) int
- func (s *S3Storage) CountCachedObjectByCondition(condition api.RuleConditions, actions []api.RuleActions) int
- func (s *S3Storage) CreateAccountKey() error
- func (s *S3Storage) CreateKey(name string) error
- func (s *S3Storage) DeleteCachedObject(filename string) error
- func (s *S3Storage) GetCachedObjectName(filename string) ([]*api.Object, error)
- func (s *S3Storage) GetCachedRule(name string) *api.Object
- func (s *S3Storage) GetCert(name string) (string, error)
- func (s *S3Storage) GetCertBundle(name string) (string, error)
- func (s *S3Storage) GetError(name string) error
- func (s *S3Storage) GetObject(filename string) ([]api.Object, error)
- func (s *S3Storage) GetPrivateAccountkey() (*rsa.PrivateKey, error)
- func (s *S3Storage) GetPrivateKey(name string) (*rsa.PrivateKey, error)
- func (s *S3Storage) GetPrivateKeyPem(name string) (string, error)
- func (s *S3Storage) GetPublicAccountkey() (*rsa.PublicKey, error)
- func (s *S3Storage) ListCerts() (map[string]string, error)
- func (s *S3Storage) ListObjects() ([]api.Object, error)
- func (l *S3Storage) SetLogLevel(loglevel string)
- func (l *S3Storage) SetStoragePath(prefix string)
- func (s *S3Storage) WriteCert(name string, cert []byte) error
- func (s *S3Storage) WriteCertBundle(name string, certs []byte) error
- func (s *S3Storage) WriteChallenge(name string, data []byte) error
- type UserIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Name string `json:"name"` OwnerIdentity OwnerIdentity `json:"ownerIdentity"` Arn string `json:"arn"` }
type NotificationEntry ¶
type NotificationEntry struct {
// contains filtered or unexported fields
}
type NotificationReceiver ¶
type NotificationReceiver struct {
// contains filtered or unexported fields
}
server is used to implement notification.
func NewNotificationReceiver ¶
func NewNotificationReceiver() *NotificationReceiver
func (*NotificationReceiver) GetQueue ¶
func (s *NotificationReceiver) GetQueue() chan []*n.NotificationRequest_NotificationItem
func (*NotificationReceiver) SendNotification ¶
func (s *NotificationReceiver) SendNotification(ctx context.Context, in *n.NotificationRequest) (*n.NotificationReply, error)
type Notifications ¶
type Notifications struct {
// contains filtered or unexported fields
}
func NewNotifications ¶
func NewNotifications(config Config) *Notifications
func (*Notifications) RunSQSQueue ¶
func (n *Notifications) RunSQSQueue(queueURL string)
func (*Notifications) SendNotificationToPeers ¶
func (n *Notifications) SendNotificationToPeers(req pbN.NotificationRequest, peerAddresses []Peer, timeout int) error
func (*Notifications) StartQueue ¶
func (n *Notifications) StartQueue() error
type OwnerIdentity ¶
type OwnerIdentity struct {
PrincipalID string `json:"principalId"`
}
type Records ¶
type Records struct { EventVersion string `json:"eventVersion"` EventSource string `json:"eventSource"` AwsRegion string `json:"awsRegion"` EventTime time.Time `json:"eventTime"` EventName string `json:"eventName"` UserIdentity UserIdentity `json:"userIdentity"` RequestParameters RequestParameters `json:"requestParameters"` ResponseElements ResponseElements `json:"responseElements"` S3 S3 `json:"s3"` }
type RequestParameters ¶
type RequestParameters struct {
SourceIPAddress string `json:"sourceIPAddress"`
}
type ResponseElements ¶
type S3NotificationBody ¶
type S3NotificationBody struct {
Records []Records `json:"Records"`
}
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
func NewS3Storage ¶
func (*S3Storage) CountCachedJwtRulesByCondition ¶
func (l *S3Storage) CountCachedJwtRulesByCondition(condition api.RuleConditions, jwtProvider string) int
func (*S3Storage) CountCachedObjectByCondition ¶
func (s *S3Storage) CountCachedObjectByCondition(condition api.RuleConditions, actions []api.RuleActions) int
func (*S3Storage) CreateAccountKey ¶
func (*S3Storage) DeleteCachedObject ¶
func (*S3Storage) GetCachedObjectName ¶
func (*S3Storage) GetPrivateAccountkey ¶
func (s *S3Storage) GetPrivateAccountkey() (*rsa.PrivateKey, error)
func (*S3Storage) GetPrivateKey ¶
func (s *S3Storage) GetPrivateKey(name string) (*rsa.PrivateKey, error)
func (*S3Storage) GetPrivateKeyPem ¶
func (*S3Storage) GetPublicAccountkey ¶
func (*S3Storage) SetLogLevel ¶
func (*S3Storage) SetStoragePath ¶
* SetStoragePath allows you to set a new path
func (*S3Storage) WriteCertBundle ¶
type UserIdentity ¶
type UserIdentity struct {
PrincipalID string `json:"principalId"`
}
Click to show internal directories.
Click to hide internal directories.