fakelro

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fakelro provides a minimal fake LRO background process for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() lro.LRO

New creates a fake LRO processing routine that holds multiple LROs that share the same setup parameters.

Types

type Service

type Service struct {
}

Service is a fake long running operation service.

func (*Service) AddRealmRemoval

func (s *Service) AddRealmRemoval(id, realm string, identity *ga4gh.Identity, tx storage.Tx) (*pb.Process_Work, error)

AddRealmRemoval adds a LRO work item for the stated goal to the state for workers to process.

func (*Service) Remove

func (s *Service) Remove(id string, tx storage.Tx) error

Remove (eventually) removes a LRO work item from the active state, and allows cleanup work to be performed.

func (*Service) Run

func (s *Service) Run(ctx context.Context)

Run schedules a background process. Typically this will be on its own go routine.

Jump to

Keyboard shortcuts

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