views

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnduroStoredCollectionCollectionMap is a map of attribute names in result
	// type EnduroStoredCollectionCollection indexed by view name.
	EnduroStoredCollectionCollectionMap = map[string][]string{
		"default": []string{
			"id",
			"name",
			"status",
			"workflow_id",
			"run_id",
			"transfer_id",
			"aip_id",
			"original_id",
			"created_at",
			"completed_at",
		},
	}
	// EnduroStoredCollectionMap is a map of attribute names in result type
	// EnduroStoredCollection indexed by view name.
	EnduroStoredCollectionMap = map[string][]string{
		"default": []string{
			"id",
			"name",
			"status",
			"workflow_id",
			"run_id",
			"transfer_id",
			"aip_id",
			"original_id",
			"created_at",
			"completed_at",
		},
	}
	// EnduroCollectionWorkflowStatusMap is a map of attribute names in result type
	// EnduroCollectionWorkflowStatus indexed by view name.
	EnduroCollectionWorkflowStatusMap = map[string][]string{
		"default": []string{
			"status",
			"history",
		},
	}
	// EnduroCollectionWorkflowHistoryCollectionMap is a map of attribute names in
	// result type EnduroCollectionWorkflowHistoryCollection indexed by view name.
	EnduroCollectionWorkflowHistoryCollectionMap = map[string][]string{
		"default": []string{
			"id",
			"type",
			"details",
		},
	}
	// EnduroCollectionWorkflowHistoryMap is a map of attribute names in result
	// type EnduroCollectionWorkflowHistory indexed by view name.
	EnduroCollectionWorkflowHistoryMap = map[string][]string{
		"default": []string{
			"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 ValidateEnduroStoredCollection

func ValidateEnduroStoredCollection(result *EnduroStoredCollection) (err error)

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

func ValidateEnduroStoredCollectionCollection

func ValidateEnduroStoredCollectionCollection(result EnduroStoredCollectionCollection) (err error)

ValidateEnduroStoredCollectionCollection runs the validations defined on the viewed result type EnduroStoredCollectionCollection.

func ValidateEnduroStoredCollectionCollectionView

func ValidateEnduroStoredCollectionCollectionView(result EnduroStoredCollectionCollectionView) (err error)

ValidateEnduroStoredCollectionCollectionView runs the validations defined on EnduroStoredCollectionCollectionView using the "default" view.

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 interface{}
}

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 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 EnduroStoredCollectionCollection

type EnduroStoredCollectionCollection struct {
	// Type to project
	Projected EnduroStoredCollectionCollectionView
	// View to render
	View string
}

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

type EnduroStoredCollectionCollectionView

type EnduroStoredCollectionCollectionView []*EnduroStoredCollectionView

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

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 transfer
	TransferID *string
	// Identifier of Archivematica AIP
	AipID *string
	// Identifier provided by the client
	OriginalID *string
	// Creation datetime
	CreatedAt *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