manager

package
v0.0.0-...-e397795 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func GetTUNASyncManager

func GetTUNASyncManager(config *rest.Config, options Options) (*Manager, error)

func (*Manager) GetAnnouncement

func (m *Manager) GetAnnouncement(c *gin.Context, announcementID string) (*v1beta1.Announcement, error)

func (*Manager) GetFile

func (m *Manager) GetFile(c *gin.Context, fileID string) (*v1beta1.File, error)

func (*Manager) GetJob

func (m *Manager) GetJob(c *gin.Context, mirrorID string) (*v1beta1.Job, error)

func (*Manager) PostJSON

func (m *Manager) PostJSON(mirrorID string, obj interface{}) (*http.Response, error)

PostJSON posts json object to url

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run runs the manager server forever

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

type Options

type Options struct {
	Scheme  *runtime.Scheme
	Address string
	MirrorZ *mirrorz.MirrorZ
	Total   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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