static

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: May 1, 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, beskarStaticConfig *config.BeskarStaticConfig) (*Plugin, error)

func (*Plugin) Config

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

func (*Plugin) Context

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

func (*Plugin) DeleteRepository

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

func (*Plugin) GetRepositoryFileByName

func (p *Plugin) GetRepositoryFileByName(ctx context.Context, repository string, name string) (repositoryFile *apiv1.RepositoryFile, err error)

func (*Plugin) GetRepositoryFileByTag

func (p *Plugin) GetRepositoryFileByTag(ctx context.Context, repository string, tag string) (repositoryFile *apiv1.RepositoryFile, err error)

func (*Plugin) ListRepositoryFiles

func (p *Plugin) ListRepositoryFiles(ctx context.Context, repository string, page *apiv1.Page) (repositoryFiles []*apiv1.RepositoryFile, err error)

func (*Plugin) ListRepositoryLogs

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

func (*Plugin) RemoveRepositoryFile

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

func (*Plugin) RepositoryManager

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

func (*Plugin) Start

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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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