activities

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package activities implements workflow activities specific to Norway Health Authority.

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateHARIActivityName             = "update-hari-activity"
	UpdateProductionSystemActivityName = "update-production-system-activity"
)

Functions

func ParseNameLocalActivity

func ParseNameLocalActivity(ctx context.Context, name string) (*nha.NameInfo, error)

Types

type TransferIdentifier added in v0.25.0

type TransferIdentifier struct {
	File        string                   `json:"file"`
	Identifiers []TransferIdentifierPair `json:"identifiers"`
}

type TransferIdentifierPair added in v0.25.0

type TransferIdentifierPair struct {
	// avleveringsidentifikator is the one we want
	Type  string `json:"identifierType"`
	Value string `json:"identifier"`
}

type TransferIdentifiers added in v0.25.0

type TransferIdentifiers []TransferIdentifier

TransferIdentifiers is the type that maps to the JSON-encoded document found in Archivematica transfers to list identifiers.

type UpdateHARIActivity

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

UpdateHARIActivity delivers a receipt to HARI.

func NewUpdateHARIActivity

func NewUpdateHARIActivity(m *manager.Manager) *UpdateHARIActivity

func (UpdateHARIActivity) Execute

type UpdateHARIActivityParams

type UpdateHARIActivityParams struct {
	SIPID        string
	StoredAt     time.Time
	FullPath     string
	PipelineName string
	NameInfo     nha.NameInfo
}

type UpdateProductionSystemActivity

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

UpdateProductionSystemActivity sends a receipt to the production system using their filesystem interface using GoAnywhere.

func NewUpdateProductionSystemActivity

func NewUpdateProductionSystemActivity(m *manager.Manager) *UpdateProductionSystemActivity

func (*UpdateProductionSystemActivity) Execute

type UpdateProductionSystemActivityParams

type UpdateProductionSystemActivityParams struct {
	StoredAt     time.Time
	PipelineName string
	NameInfo     nha.NameInfo
	FullPath     string
}

Jump to

Keyboard shortcuts

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