yum

package
v0.0.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func New

func New(ctx context.Context, beskarYumConfig *config.BeskarYumConfig) (*Plugin, error)

func (*Plugin) Config added in v0.0.6

func (p *Plugin) Config() pluginsrv.Config

func (*Plugin) Context added in v0.0.6

func (p *Plugin) Context() context.Context

func (*Plugin) CreateRepository

func (p *Plugin) CreateRepository(ctx context.Context, repository string, properties *apiv1.RepositoryProperties) (err error)

func (*Plugin) DeleteRepository

func (p *Plugin) DeleteRepository(ctx context.Context, repository string, deletePackages bool) (err error)

func (*Plugin) GetRepository

func (p *Plugin) GetRepository(ctx context.Context, repository string) (properties *apiv1.RepositoryProperties, err error)

func (*Plugin) GetRepositoryPackage

func (p *Plugin) GetRepositoryPackage(ctx context.Context, repository string, id string) (repositoryPackage *apiv1.RepositoryPackage, err error)

func (*Plugin) GetRepositoryPackageByTag added in v0.0.15

func (p *Plugin) GetRepositoryPackageByTag(ctx context.Context, repository string, tag string) (repositoryPackage *apiv1.RepositoryPackage, err error)

func (*Plugin) GetRepositorySyncStatus

func (p *Plugin) GetRepositorySyncStatus(ctx context.Context, repository string) (syncStatus *apiv1.SyncStatus, err error)

func (*Plugin) ListRepositoryLogs

func (p *Plugin) ListRepositoryLogs(ctx context.Context, repository string, page *apiv1.Page) (logs []apiv1.RepositoryLog, err error)

func (*Plugin) ListRepositoryPackages

func (p *Plugin) ListRepositoryPackages(ctx context.Context, repository string, page *apiv1.Page) (repositoryPackages []*apiv1.RepositoryPackage, err error)

func (*Plugin) RemoveRepositoryPackage

func (p *Plugin) RemoveRepositoryPackage(ctx context.Context, repository string, id string) (err error)

func (*Plugin) RemoveRepositoryPackageByTag added in v0.0.15

func (p *Plugin) RemoveRepositoryPackageByTag(ctx context.Context, repository string, tag string) (err error)

func (*Plugin) RepositoryManager added in v0.0.6

func (p *Plugin) RepositoryManager() *repository.Manager[*yumrepository.Handler]

func (*Plugin) Start added in v0.0.6

func (p *Plugin) Start(transport http.RoundTripper, _ *mtls.CAPEM, beskarMeta *gossip.BeskarMeta) error

func (*Plugin) SyncRepository

func (p *Plugin) SyncRepository(ctx context.Context, repository string, wait bool) (err error)

func (*Plugin) SyncRepositoryWithURL added in v0.0.21

func (p *Plugin) SyncRepositoryWithURL(ctx context.Context, repository, url string, wait bool) (err error)

func (*Plugin) UpdateRepository

func (p *Plugin) UpdateRepository(ctx context.Context, repository string, properties *apiv1.RepositoryProperties) (err error)

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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