views

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnduroPackagesMap is a map indexing the attribute names of EnduroPackages by
	// view name.
	EnduroPackagesMap = map[string][]string{
		"default": {
			"items",
			"page",
		},
	}
	// EnduroStoredPackageMap is a map indexing the attribute names of
	// EnduroStoredPackage by view name.
	EnduroStoredPackageMap = map[string][]string{
		"default": {
			"id",
			"name",
			"location_id",
			"status",
			"workflow_id",
			"run_id",
			"aip_id",
			"created_at",
			"started_at",
			"completed_at",
		},
	}
	// EnduroPackagePreservationActionsMap is a map indexing the attribute names of
	// EnduroPackagePreservationActions by view name.
	EnduroPackagePreservationActionsMap = map[string][]string{
		"default": {
			"actions",
		},
	}
	// EnduroStoredPackageCollectionMap is a map indexing the attribute names of
	// EnduroStoredPackageCollection by view name.
	EnduroStoredPackageCollectionMap = map[string][]string{
		"default": {
			"id",
			"name",
			"location_id",
			"status",
			"workflow_id",
			"run_id",
			"aip_id",
			"created_at",
			"started_at",
			"completed_at",
		},
	}
	// EnduroPageMap is a map indexing the attribute names of EnduroPage by view
	// name.
	EnduroPageMap = map[string][]string{
		"default": {
			"limit",
			"offset",
			"total",
		},
	}
	// EnduroPackagePreservationActionCollectionMap is a map indexing the attribute
	// names of EnduroPackagePreservationActionCollection by view name.
	EnduroPackagePreservationActionCollectionMap = map[string][]string{
		"simple": {
			"id",
			"workflow_id",
			"type",
			"status",
			"started_at",
			"completed_at",
			"package_id",
		},
		"default": {
			"id",
			"workflow_id",
			"type",
			"status",
			"started_at",
			"completed_at",
			"tasks",
			"package_id",
		},
	}
	// EnduroPackagePreservationActionMap is a map indexing the attribute names of
	// EnduroPackagePreservationAction by view name.
	EnduroPackagePreservationActionMap = map[string][]string{
		"simple": {
			"id",
			"workflow_id",
			"type",
			"status",
			"started_at",
			"completed_at",
			"package_id",
		},
		"default": {
			"id",
			"workflow_id",
			"type",
			"status",
			"started_at",
			"completed_at",
			"tasks",
			"package_id",
		},
	}
	// EnduroPackagePreservationTaskCollectionMap is a map indexing the attribute
	// names of EnduroPackagePreservationTaskCollection by view name.
	EnduroPackagePreservationTaskCollectionMap = map[string][]string{
		"default": {
			"id",
			"task_id",
			"name",
			"status",
			"started_at",
			"completed_at",
			"note",
			"preservation_action_id",
		},
	}
	// EnduroPackagePreservationTaskMap is a map indexing the attribute names of
	// EnduroPackagePreservationTask by view name.
	EnduroPackagePreservationTaskMap = map[string][]string{
		"default": {
			"id",
			"task_id",
			"name",
			"status",
			"started_at",
			"completed_at",
			"note",
			"preservation_action_id",
		},
	}
)

Functions

func ValidateEnduroPackagePreservationActionCollectionView

func ValidateEnduroPackagePreservationActionCollectionView(result EnduroPackagePreservationActionCollectionView) (err error)

ValidateEnduroPackagePreservationActionCollectionView runs the validations defined on EnduroPackagePreservationActionCollectionView using the "default" view.

func ValidateEnduroPackagePreservationActionCollectionViewSimple

func ValidateEnduroPackagePreservationActionCollectionViewSimple(result EnduroPackagePreservationActionCollectionView) (err error)

ValidateEnduroPackagePreservationActionCollectionViewSimple runs the validations defined on EnduroPackagePreservationActionCollectionView using the "simple" view.

func ValidateEnduroPackagePreservationActionView

func ValidateEnduroPackagePreservationActionView(result *EnduroPackagePreservationActionView) (err error)

ValidateEnduroPackagePreservationActionView runs the validations defined on EnduroPackagePreservationActionView using the "default" view.

func ValidateEnduroPackagePreservationActionViewSimple

func ValidateEnduroPackagePreservationActionViewSimple(result *EnduroPackagePreservationActionView) (err error)

ValidateEnduroPackagePreservationActionViewSimple runs the validations defined on EnduroPackagePreservationActionView using the "simple" view.

func ValidateEnduroPackagePreservationActions

func ValidateEnduroPackagePreservationActions(result *EnduroPackagePreservationActions) (err error)

ValidateEnduroPackagePreservationActions runs the validations defined on the viewed result type EnduroPackagePreservationActions.

func ValidateEnduroPackagePreservationActionsView

func ValidateEnduroPackagePreservationActionsView(result *EnduroPackagePreservationActionsView) (err error)

ValidateEnduroPackagePreservationActionsView runs the validations defined on EnduroPackagePreservationActionsView using the "default" view.

func ValidateEnduroPackagePreservationTaskCollectionView

func ValidateEnduroPackagePreservationTaskCollectionView(result EnduroPackagePreservationTaskCollectionView) (err error)

ValidateEnduroPackagePreservationTaskCollectionView runs the validations defined on EnduroPackagePreservationTaskCollectionView using the "default" view.

func ValidateEnduroPackagePreservationTaskView

func ValidateEnduroPackagePreservationTaskView(result *EnduroPackagePreservationTaskView) (err error)

ValidateEnduroPackagePreservationTaskView runs the validations defined on EnduroPackagePreservationTaskView using the "default" view.

func ValidateEnduroPackages

func ValidateEnduroPackages(result *EnduroPackages) (err error)

ValidateEnduroPackages runs the validations defined on the viewed result type EnduroPackages.

func ValidateEnduroPackagesView

func ValidateEnduroPackagesView(result *EnduroPackagesView) (err error)

ValidateEnduroPackagesView runs the validations defined on EnduroPackagesView using the "default" view.

func ValidateEnduroPageView

func ValidateEnduroPageView(result *EnduroPageView) (err error)

ValidateEnduroPageView runs the validations defined on EnduroPageView using the "default" view.

func ValidateEnduroStoredPackage

func ValidateEnduroStoredPackage(result *EnduroStoredPackage) (err error)

ValidateEnduroStoredPackage runs the validations defined on the viewed result type EnduroStoredPackage.

func ValidateEnduroStoredPackageCollectionView

func ValidateEnduroStoredPackageCollectionView(result EnduroStoredPackageCollectionView) (err error)

ValidateEnduroStoredPackageCollectionView runs the validations defined on EnduroStoredPackageCollectionView using the "default" view.

func ValidateEnduroStoredPackageView

func ValidateEnduroStoredPackageView(result *EnduroStoredPackageView) (err error)

ValidateEnduroStoredPackageView runs the validations defined on EnduroStoredPackageView using the "default" view.

Types

type EnduroPackagePreservationActionCollectionView

type EnduroPackagePreservationActionCollectionView []*EnduroPackagePreservationActionView

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

type EnduroPackagePreservationActionView

type EnduroPackagePreservationActionView struct {
	ID          *uint
	WorkflowID  *string
	Type        *string
	Status      *string
	StartedAt   *string
	CompletedAt *string
	Tasks       EnduroPackagePreservationTaskCollectionView
	PackageID   *uint
}

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

type EnduroPackagePreservationActions

type EnduroPackagePreservationActions struct {
	// Type to project
	Projected *EnduroPackagePreservationActionsView
	// View to render
	View string
}

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

type EnduroPackagePreservationActionsView

type EnduroPackagePreservationActionsView struct {
	Actions EnduroPackagePreservationActionCollectionView
}

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

type EnduroPackagePreservationTaskCollectionView

type EnduroPackagePreservationTaskCollectionView []*EnduroPackagePreservationTaskView

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

type EnduroPackagePreservationTaskView

type EnduroPackagePreservationTaskView struct {
	ID                   *uint
	TaskID               *string
	Name                 *string
	Status               *string
	StartedAt            *string
	CompletedAt          *string
	Note                 *string
	PreservationActionID *uint
}

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

type EnduroPackages

type EnduroPackages struct {
	// Type to project
	Projected *EnduroPackagesView
	// View to render
	View string
}

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

type EnduroPackagesView

type EnduroPackagesView struct {
	Items EnduroStoredPackageCollectionView
	Page  *EnduroPageView
}

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

type EnduroPageView

type EnduroPageView struct {
	// Maximum items per page
	Limit *int
	// Offset from first result to start of page
	Offset *int
	// Total result count before paging
	Total *int
}

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

type EnduroStoredPackage

type EnduroStoredPackage struct {
	// Type to project
	Projected *EnduroStoredPackageView
	// View to render
	View string
}

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

type EnduroStoredPackageCollectionView

type EnduroStoredPackageCollectionView []*EnduroStoredPackageView

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

type EnduroStoredPackageView

type EnduroStoredPackageView struct {
	// Identifier of package
	ID *uint
	// Name of the package
	Name *string
	// Identifier of storage location
	LocationID *uuid.UUID
	// Status of the package
	Status *string
	// Identifier of processing workflow
	WorkflowID *string
	// Identifier of latest processing workflow run
	RunID *string
	// Identifier of AIP
	AipID *string
	// Creation datetime
	CreatedAt *string
	// Start datetime
	StartedAt *string
	// Completion datetime
	CompletedAt *string
}

EnduroStoredPackageView 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