eventgrid

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventGridEventResource

type EventGridEventResource struct {
	// the event grid event message
	Message *eventgrid.Event

	// the azure resource instance
	Resource *armresources.GenericResource

	// the azure deployment resource instance
	Deployment *armresources.DeploymentExtended

	// the lookup tags for the resource
	Tags deployment.LookupTags
}

combines event grid event message and the resource instance it's related to

func (*EventGridEventResource) CorrelationID added in v1.2.0

func (r *EventGridEventResource) CorrelationID() (*string, error)

func (*EventGridEventResource) DeploymentId added in v1.2.0

func (r *EventGridEventResource) DeploymentId() (*int, error)

func (*EventGridEventResource) GetStatus added in v1.2.0

func (r *EventGridEventResource) GetStatus() string

func (*EventGridEventResource) IsDeployment added in v1.2.0

func (r *EventGridEventResource) IsDeployment() bool

func (*EventGridEventResource) IsFailedStage added in v1.2.0

func (r *EventGridEventResource) IsFailedStage() bool

func (*EventGridEventResource) IsParentDeployment added in v1.2.0

func (r *EventGridEventResource) IsParentDeployment() bool

func (*EventGridEventResource) IsStage added in v1.2.0

func (r *EventGridEventResource) IsStage() bool

func (*EventGridEventResource) StageId added in v1.2.0

func (r *EventGridEventResource) StageId() (uuid.UUID, error)

get the modm id of the deployment object, which is the stage id

type EventGridEventResources

type EventGridEventResources []*EventGridEventResource

list of event grid event resources

type ResourceEventData

type ResourceEventData struct {
	CorrelationID    string `mapstructure:"correlationId"`
	ResourceProvider string `mapstructure:"resourceProvider"`
	ResourceURI      string `mapstructure:"resourceUri"`
	OperationName    string `mapstructure:"operationName"`
	Status           string `mapstructure:"status"`
	SubscriptionID   string `mapstructure:"subscriptionId"`
	TenantID         string `mapstructure:"tenantId"`
}

ResourceEventData is the data structure for the event grid event use only for unmarshalling in order to map to resource this is the .Data field of the event grid event when the event type is Microsoft.Resources.ResourceWriteSuccess, for example.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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