events_subscriptions

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanIdentifier

func CleanIdentifier(s string) string

func UpdateStateAfterRead

func UpdateStateAfterRead(apiEntities []*sdkNotification.EventSubscription, state *ResourceModel, scope string, scopeId *string)

Types

type MergedEntities

type MergedEntities struct {
	EntitiesToCreate []*sdkNotification.EventSubscription
	EntitiesToUpdate []*sdkNotification.EventSubscription
	EntitiesToDelete []*sdkNotification.EventSubscription
}

func Merge

func Merge(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) *MergedEntities

type ResourceModel

type ResourceModel struct {
	ID            types.String         `tfsdk:"id"`
	Scope         types.String         `tfsdk:"scope"`
	ScopeId       types.String         `tfsdk:"scope_id"`
	Subscriptions []*SubscriptionModel `tfsdk:"subscriptions"`
}

type SubscriptionModel

type SubscriptionModel struct {
	ID                     types.String `tfsdk:"id"`
	EventType              types.String `tfsdk:"event_type"`
	NotificationEndpointId types.String `tfsdk:"notification_endpoint_id"`
}

func (*SubscriptionModel) GetBlockIdentifier

func (e *SubscriptionModel) GetBlockIdentifier() string

func (*SubscriptionModel) Hash

func (e *SubscriptionModel) Hash() string

Jump to

Keyboard shortcuts

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