Skip to content

Commit

Permalink
feat(resource): add metadata annotations to struct type
Browse files Browse the repository at this point in the history
  • Loading branch information
erabedtit committed Feb 7, 2025
1 parent 9b0d78d commit 0b141e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resource/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ package resource
import "github.com/telekom/pubsub-horizon-go/enum"

type SubscriptionResource struct {
Spec struct {
Metadata Metadata `json:"metadata"`
Spec struct {
Subscription Subscription `json:"subscription"`
Environment string `json:"environment"`
} `json:"spec"`
}

type Metadata struct {
Annotations map[string]any `json:"annotations"`
}

type Subscription struct {
SubscriptionId string `json:"subscriptionId"`
SubscriberId string `json:"subscriberId"`
Expand Down

0 comments on commit 0b141e1

Please sign in to comment.