views

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnduroMonitorUpdateMap is a map indexing the attribute names of
	// EnduroMonitorUpdate by view name.
	EnduroMonitorUpdateMap = map[string][]string{
		"default": {
			"id",
			"type",
			"item",
		},
	}
	// EnduroStoredCollectionMap is a map indexing the attribute names of
	// EnduroStoredCollection by view name.
	EnduroStoredCollectionMap = map[string][]string{
		"default": {
			"id",
			"name",
			"status",
			"workflow_id",
			"run_id",
			"transfer_id",
			"aip_id",
			"original_id",
			"pipeline_id",
			"created_at",
			"started_at",
			"completed_at",
		},
	}
	// EnduroCollectionWorkflowStatusMap is a map indexing the attribute names of
	// EnduroCollectionWorkflowStatus by view name.
	EnduroCollectionWorkflowStatusMap = map[string][]string{
		"default": {
			"status",
			"history",
		},
	}
	// EnduroCollectionWorkflowHistoryCollectionMap is a map indexing the attribute
	// names of EnduroCollectionWorkflowHistoryCollection by view name.
	EnduroCollectionWorkflowHistoryCollectionMap = map[string][]string{
		"default": {
			"id",
			"type",
			"details",
		},
	}
	// EnduroCollectionWorkflowHistoryMap is a map indexing the attribute names of
	// EnduroCollectionWorkflowHistory by view name.
	EnduroCollectionWorkflowHistoryMap = map[string][]string{
		"default": {
			"id",
			"type",
			"details",
		},
	}
)

Functions

func ValidateEnduroCollectionWorkflowHistoryCollectionView

func ValidateEnduroCollectionWorkflowHistoryCollectionView(result EnduroCollectionWorkflowHistoryCollectionView) (err error)

ValidateEnduroCollectionWorkflowHistoryCollectionView runs the validations defined on EnduroCollectionWorkflowHistoryCollectionView using the "default" view.

func ValidateEnduroCollectionWorkflowHistoryView

func ValidateEnduroCollectionWorkflowHistoryView(result *EnduroCollectionWorkflowHistoryView) (err error)

ValidateEnduroCollectionWorkflowHistoryView runs the validations defined on EnduroCollectionWorkflowHistoryView using the "default" view.

func ValidateEnduroCollectionWorkflowStatus

func ValidateEnduroCollectionWorkflowStatus(result *EnduroCollectionWorkflowStatus) (err error)

ValidateEnduroCollectionWorkflowStatus runs the validations defined on the viewed result type EnduroCollectionWorkflowStatus.

func ValidateEnduroCollectionWorkflowStatusView

func ValidateEnduroCollectionWorkflowStatusView(result *EnduroCollectionWorkflowStatusView) (err error)

ValidateEnduroCollectionWorkflowStatusView runs the validations defined on EnduroCollectionWorkflowStatusView using the "default" view.

func ValidateEnduroMonitorUpdate added in v0.34.0

func ValidateEnduroMonitorUpdate(result *EnduroMonitorUpdate) (err error)

ValidateEnduroMonitorUpdate runs the validations defined on the viewed result type EnduroMonitorUpdate.

func ValidateEnduroMonitorUpdateView added in v0.34.0

func ValidateEnduroMonitorUpdateView(result *EnduroMonitorUpdateView) (err error)

ValidateEnduroMonitorUpdateView runs the validations defined on EnduroMonitorUpdateView using the "default" view.

func ValidateEnduroStoredCollection

func ValidateEnduroStoredCollection(result *EnduroStoredCollection) (err error)

ValidateEnduroStoredCollection runs the validations defined on the viewed result type EnduroStoredCollection.

func ValidateEnduroStoredCollectionView

func ValidateEnduroStoredCollectionView(result *EnduroStoredCollectionView) (err error)

ValidateEnduroStoredCollectionView runs the validations defined on EnduroStoredCollectionView using the "default" view.

Types

type EnduroCollectionWorkflowHistoryCollectionView

type EnduroCollectionWorkflowHistoryCollectionView []*EnduroCollectionWorkflowHistoryView

EnduroCollectionWorkflowHistoryCollectionView is a type that runs validations on a projected type.

type EnduroCollectionWorkflowHistoryView

type EnduroCollectionWorkflowHistoryView struct {
	// Identifier of collection
	ID *uint
	// Type of the event
	Type *string
	// Contents of the event
	Details any
}

EnduroCollectionWorkflowHistoryView is a type that runs validations on a projected type.

type EnduroCollectionWorkflowStatus

type EnduroCollectionWorkflowStatus struct {
	// Type to project
	Projected *EnduroCollectionWorkflowStatusView
	// View to render
	View string
}

EnduroCollectionWorkflowStatus is the viewed result type that is projected based on a view.

type EnduroCollectionWorkflowStatusView

type EnduroCollectionWorkflowStatusView struct {
	Status  *string
	History EnduroCollectionWorkflowHistoryCollectionView
}

EnduroCollectionWorkflowStatusView is a type that runs validations on a projected type.

type EnduroMonitorUpdate added in v0.34.0

type EnduroMonitorUpdate struct {
	// Type to project
	Projected *EnduroMonitorUpdateView
	// View to render
	View string
}

EnduroMonitorUpdate is the viewed result type that is projected based on a view.

type EnduroMonitorUpdateView added in v0.34.0

type EnduroMonitorUpdateView struct {
	// Identifier of collection
	ID *uint
	// Type of the event
	Type *string
	// Collection
	Item *EnduroStoredCollectionView
}

EnduroMonitorUpdateView is a type that runs validations on a projected type.

type EnduroStoredCollection

type EnduroStoredCollection struct {
	// Type to project
	Projected *EnduroStoredCollectionView
	// View to render
	View string
}

EnduroStoredCollection is the viewed result type that is projected based on a view.

type EnduroStoredCollectionView

type EnduroStoredCollectionView struct {
	// Identifier of collection
	ID *uint
	// Name of the collection
	Name *string
	// Status of the collection
	Status *string
	// Identifier of processing workflow
	WorkflowID *string
	// Identifier of latest processing workflow run
	RunID *string
	// Identifier of Archivematica tranfser
	TransferID *string
	// Identifier of Archivematica AIP
	AipID *string
	// Identifier provided by the client
	OriginalID *string
	// Identifier of Archivematica pipeline
	PipelineID *string
	// Creation datetime
	CreatedAt *string
	// Start datetime
	StartedAt *string
	// Completion datetime
	CompletedAt *string
}

EnduroStoredCollectionView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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