api

package
v1.5.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManager

type APIManager struct {
	Client                       *http.Client
	DestTransformURL             string
	OAuth                        oauth.Authorizer
	MaxOAuthRefreshRetryAttempts int
}

func (*APIManager) Delete

func (api *APIManager) Delete(ctx context.Context, job model.Job, destination model.Destination) model.JobStatus

prepares payload based on (job,destDetail) & make an API call to transformer. gets (status, failure_reason) which is converted to appropriate model.Error & returned to caller.

func (*APIManager) GetSupportedDestinations

func (*APIManager) GetSupportedDestinations() []string

type JobRespSchema

type JobRespSchema struct {
	Status            string `json:"status"`
	Error             string `json:"error"`
	AuthErrorCategory string `json:"authErrorCategory"`
}

type Mock_apiWorker

type Mock_apiWorker struct{}

func (*Mock_apiWorker) Delete

func (d *Mock_apiWorker) Delete(ctx context.Context, job model.Job, destConfig map[string]interface{}, destName string) model.JobStatus

Jump to

Keyboard shortcuts

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