webhook

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 13 Imported by: 0

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 EventHandler func(Event) error

type EventListener

type EventListener struct {
	ObjectType IAMObjectType
	Action     EventAction
	Handle     EventHandler
}

type IAMObject

type IAMObject interface{}

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

Jump to

Keyboard shortcuts

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