pipeline

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStatusNonRetryable = errors.New("non-retryable error")
	ErrStatusRetryable    = errors.New("retryable error")
	ErrStatusInProgress   = errors.New("waitable error")
)

Functions

func IngestStatus

func IngestStatus(ctx context.Context, client *amclient.Client, ID string) error

IngestStatus returns a non-nil error when the SIP is not fully ingested.

func TransferStatus

func TransferStatus(ctx context.Context, client *amclient.Client, ID string) (string, error)

TransferStatus returns a non-nil error when the transfer is not fully transferred.

Types

type Config

type Config struct {
	Name          string
	BaseURL       string
	User          string
	Key           string
	TransferDir   string
	ProcessingDir string
}

type PipelineRegistry

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

PipelineRegistry is a collection of known pipelines.

func NewPipelineRegistry

func NewPipelineRegistry(configs []Config) *PipelineRegistry

func (PipelineRegistry) Client

func (p PipelineRegistry) Client(name string) (*amclient.Client, error)

func (PipelineRegistry) Config

func (p PipelineRegistry) Config(name string) (*Config, error)

func (PipelineRegistry) TempFile

func (p PipelineRegistry) TempFile(name, key string) (*os.File, error)

Jump to

Keyboard shortcuts

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