Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Object IAMObject
Action EventAction
ObjectType IAMObjectType
}
type EventAction ¶
type EventAction string
const ( EventActionCreated EventAction = "created" EventActionUpdated EventAction = "updated" EventActionDeleted EventAction = "deleted" )
type EventHandler ¶
type EventListener ¶
type EventListener struct {
ObjectType IAMObjectType
Action EventAction
Handle EventHandler
}
type IAMObjectType ¶
type IAMObjectType string
const ( IAMObjectTypeWorkspace IAMObjectType = "account.Workspace" IAMObjectTypeUser IAMObjectType = "account.User" IAMObjectTypeUserWorkspace IAMObjectType = "account.UserWorkspace" )
type IAMWebhookServer ¶
type IAMWebhookServer struct {
IamSecret string
IP net.IP
Port uint16
MaxAcceptableRequestTimestampDiff time.Duration
IgnoreAuthentication bool
// contains filtered or unexported fields
}
func (*IAMWebhookServer) AddListener ¶
func (s *IAMWebhookServer) AddListener(el EventListener)
func (*IAMWebhookServer) StartServer ¶
func (s *IAMWebhookServer) StartServer() error
Click to show internal directories.
Click to hide internal directories.