Documentation ¶
Overview ¶
Package pipeline provides tools to work with one of more pipelines.
Index ¶
- Variables
- func IngestStatus(ctx context.Context, ingestService amclient.IngestService, ID string) error
- func NewService(logger logr.Logger, registry *Registry) *pipelineImpl
- func TransferStatus(ctx context.Context, transferService amclient.TransferService, ID string) (string, error)
- type Config
- type Pipeline
- func (p *Pipeline) Capacity() (size, cur int64)
- func (p *Pipeline) Client() *amclient.Client
- func (p *Pipeline) Config() *Config
- func (p *Pipeline) Release()
- func (p *Pipeline) SSAccess() (*url.URL, string, error)
- func (p *Pipeline) Status(ctx context.Context) string
- func (p *Pipeline) TempFile(pattern string) (*os.File, error)
- func (p *Pipeline) TryAcquire() bool
- type Registry
- type Service
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") )
View Source
var ErrUnknownPipeline = errors.New("unknown pipeline")
Functions ¶
func IngestStatus ¶
IngestStatus returns a non-nil error when the SIP is not fully ingested.
func NewService ¶ added in v0.24.0
func TransferStatus ¶
func TransferStatus(ctx context.Context, transferService amclient.TransferService, ID string) (string, error)
TransferStatus returns a non-nil error when the transfer is not fully transferred.
Types ¶
type Pipeline ¶ added in v0.5.2
type Pipeline struct { // ID (UUID) of the pipeline. This is not provided by the user but loaded // on demand once we have access to the pipeline API. ID string // contains filtered or unexported fields }
func NewPipeline ¶ added in v0.5.2
func (*Pipeline) Client ¶ added in v0.5.2
Client returns the Archivematica API client ready for use.
func (*Pipeline) SSAccess ¶ added in v0.14.0
SSAccess returns the URL and user:key pair needed to access Storage Service.
func (*Pipeline) TempFile ¶ added in v0.5.2
TempFile creates a temporary file in the processing directory.
func (*Pipeline) TryAcquire ¶ added in v0.24.1
type Registry ¶ added in v0.5.2
type Registry struct {
// contains filtered or unexported fields
}
Registry is a collection of known pipelines.
func NewPipelineRegistry ¶
type Service ¶ added in v0.24.0
type Service interface { List(context.Context, *goapipeline.ListPayload) ([]*goapipeline.EnduroStoredPipeline, error) Show(context.Context, *goapipeline.ShowPayload) (*goapipeline.EnduroStoredPipeline, error) Processing(context.Context, *goapipeline.ProcessingPayload) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.