activities

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 19 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
}

type XmlnsAttr added in v0.28.1

type XmlnsAttr string

func (XmlnsAttr) MarshalXMLAttr added in v0.28.1

func (a XmlnsAttr) MarshalXMLAttr(n xml.Name) (xml.Attr, error)

type XsiAttr added in v0.28.1

type XsiAttr string

func (XsiAttr) MarshalXMLAttr added in v0.28.1

func (a XsiAttr) MarshalXMLAttr(n xml.Name) (xml.Attr, error)

Jump to

Keyboard shortcuts

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