zestwrapper

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COMPLETED string = "completed"
	WAITING   string = "waiting"
	RUNNING   string = "running"
	SKIPPED   string = "skipped"
	CANCELED  string = "canceled"
	CANCELING string = "canceling"
	FAILED    string = "failed"
)
View Source
const DefaultDomain = "default"

Variables

This section is empty.

Functions

func SleepWithBackoff

func SleepWithBackoff(iteration int)

func TaskErrorString

func TaskErrorString(task zest.TaskResponse) string

Types

type RpmZest

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

func NewRpmZest

func NewRpmZest(ctx context.Context, server config.Server) RpmZest

func (*RpmZest) CreateRepository

func (r *RpmZest) CreateRepository(domain, name, url string) (repoHref string, remoteHref string, err error)

func (*RpmZest) GetRpmRepositoryByName

func (r *RpmZest) GetRpmRepositoryByName(domain, name string) (*zest.RpmRpmRepositoryResponse, error)

func (*RpmZest) GetTask

func (r *RpmZest) GetTask(taskHref string) (zest.TaskResponse, error)

GetTask Fetch a pulp task

func (*RpmZest) LookupDomain

func (r *RpmZest) LookupDomain(name string) (string, error)

func (*RpmZest) LookupOrCreateDomain

func (r *RpmZest) LookupOrCreateDomain(name string) (string, error)

func (*RpmZest) PollTask

func (r *RpmZest) PollTask(taskHref string) (*zest.TaskResponse, error)

PollTask Poll a task and return the final task object

func (*RpmZest) SyncRpmRepository

func (r *RpmZest) SyncRpmRepository(rpmRpmRepositoryHref string, remoteHref string) (string, error)

func (*RpmZest) UpdateRemote

func (r *RpmZest) UpdateRemote(remoteHref string, url string) error

Jump to

Keyboard shortcuts

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