Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) Config() pluginsrv.Config
- func (p *Plugin) Context() context.Context
- func (p *Plugin) CreateRepository(ctx context.Context, repository string, properties *apiv1.RepositoryProperties) (err error)
- func (p *Plugin) DeleteRepository(ctx context.Context, repository string, deleteFiles bool) (err error)
- func (p *Plugin) DeleteRepositoryFile(ctx context.Context, repository, file string) (err error)
- func (p *Plugin) DeleteRepositoryFilesByMode(ctx context.Context, repository string, mode uint32) (err error)
- func (p *Plugin) GenerateRepository(ctx context.Context, repository string) (err error)
- func (p *Plugin) GetRepository(ctx context.Context, repository string) (properties *apiv1.RepositoryProperties, err error)
- func (p *Plugin) GetRepositoryFile(ctx context.Context, repository, file string) (repositoryFile *apiv1.RepositoryFile, err error)
- func (p *Plugin) GetRepositoryFileCount(ctx context.Context, repository string) (count int, err error)
- func (p *Plugin) GetRepositorySyncPlan(ctx context.Context, repository string) (syncPlan *apiv1.RepositorySyncPlan, err error)
- func (p *Plugin) GetRepositorySyncStatus(ctx context.Context, repository string) (syncStatus *apiv1.SyncStatus, err error)
- func (p *Plugin) ListRepositoryFiles(ctx context.Context, repository string, page *apiv1.Page) (repositoryFiles []*apiv1.RepositoryFile, err error)
- func (p *Plugin) ListRepositoryLogs(ctx context.Context, repository string, page *apiv1.Page) (logs []apiv1.RepositoryLog, err error)
- func (p *Plugin) RepositoryManager() *repository.Manager[*mirrorrepository.Handler]
- func (p *Plugin) Start(transport http.RoundTripper, _ *mtls.CAPEM, beskarMeta *gossip.BeskarMeta) error
- func (p *Plugin) SyncRepository(ctx context.Context, repository string, wait bool) (err error)
- func (p *Plugin) SyncRepositoryWithConfig(ctx context.Context, repository string, mirrorConfigs []apiv1.MirrorConfig, ...) (err error)
- func (p *Plugin) UpdateRepository(ctx context.Context, repository string, properties *apiv1.RepositoryProperties) (err error)
- func (p *Plugin) WebHandler(w http.ResponseWriter, r *http.Request)
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 (*Plugin) CreateRepository ¶
func (*Plugin) DeleteRepository ¶
func (*Plugin) DeleteRepositoryFile ¶ added in v0.0.32
func (*Plugin) DeleteRepositoryFilesByMode ¶ added in v0.0.35
func (*Plugin) GenerateRepository ¶ added in v0.0.32
func (*Plugin) GetRepository ¶
func (*Plugin) GetRepositoryFile ¶
func (*Plugin) GetRepositoryFileCount ¶ added in v0.0.32
func (*Plugin) GetRepositorySyncPlan ¶ added in v0.0.32
func (*Plugin) GetRepositorySyncStatus ¶
func (*Plugin) ListRepositoryFiles ¶
func (*Plugin) ListRepositoryLogs ¶
func (*Plugin) RepositoryManager ¶
func (p *Plugin) RepositoryManager() *repository.Manager[*mirrorrepository.Handler]
func (*Plugin) Start ¶
func (p *Plugin) Start(transport http.RoundTripper, _ *mtls.CAPEM, beskarMeta *gossip.BeskarMeta) error
func (*Plugin) SyncRepository ¶
func (*Plugin) SyncRepositoryWithConfig ¶ added in v0.0.34
func (*Plugin) UpdateRepository ¶
func (*Plugin) WebHandler ¶
func (p *Plugin) WebHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.