component_instance

package
v0.0.0-...-113e83d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListComponentInstancesEventName  event.EventName = "ListComponentInstances"
	CreateComponentInstanceEventName event.EventName = "CreateComponentInstance"
	UpdateComponentInstanceEventName event.EventName = "UpdateComponentInstance"
	DeleteComponentInstanceEventName event.EventName = "DeleteComponentInstance"
	ListCcrnEventName                event.EventName = "ListCcrn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentInstanceHandler

type ComponentInstanceHandler interface {
	ListComponentInstances(*entity.ComponentInstanceFilter, *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error)
	CreateComponentInstance(*entity.ComponentInstance) (*entity.ComponentInstance, error)
	UpdateComponentInstance(*entity.ComponentInstance) (*entity.ComponentInstance, error)
	DeleteComponentInstance(int64) error
	ListCcrns(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
}

func NewComponentInstanceHandler

func NewComponentInstanceHandler(database database.Database, eventRegistry event.EventRegistry) ComponentInstanceHandler

type ComponentInstanceHandlerError

type ComponentInstanceHandlerError struct {
	// contains filtered or unexported fields
}

func NewComponentInstanceHandlerError

func NewComponentInstanceHandlerError(message string) *ComponentInstanceHandlerError

func (*ComponentInstanceHandlerError) Error

type CreateComponentInstanceEvent

type CreateComponentInstanceEvent struct {
	ComponentInstance *entity.ComponentInstance
}

func (*CreateComponentInstanceEvent) Name

type DeleteComponentInstanceEvent

type DeleteComponentInstanceEvent struct {
	ComponentInstanceID int64
}

func (*DeleteComponentInstanceEvent) Name

type ListCcrnEvent

type ListCcrnEvent struct {
	Filter *entity.ComponentInstanceFilter
	Ccrn   []string
}

func (*ListCcrnEvent) Name

func (e *ListCcrnEvent) Name() event.EventName

type ListComponentInstancesEvent

type ListComponentInstancesEvent struct {
	Filter             *entity.ComponentInstanceFilter
	Options            *entity.ListOptions
	ComponentInstances *entity.List[entity.ComponentInstanceResult]
}

func (*ListComponentInstancesEvent) Name

type UpdateComponentInstanceEvent

type UpdateComponentInstanceEvent struct {
	ComponentInstance *entity.ComponentInstance
}

func (*UpdateComponentInstanceEvent) Name

Jump to

Keyboard shortcuts

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