origin

package
v0.0.0-...-c116fac Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureXrootdMonitoringDir

func ConfigureXrootdMonitoringDir() error

Configure XrootD directory for both self-based and director-based file transfer tests

func LaunchBrokerListener

func LaunchBrokerListener(ctx context.Context, egrp *errgroup.Group) (err error)

Launch goroutines that continuously poll the broker

func LaunchOriginFileTestMaintenance

func LaunchOriginFileTestMaintenance(ctx context.Context)

Remove tmp files under ${Origin_RunLocation}/export/pelican/monitoring from diector-based/self tests. There could be dangling files due to error in testing

func PeriodicSelfTest

func PeriodicSelfTest(ctx context.Context) error

Start self-test monitoring of the origin. This will upload, download, and delete a generated filename every 15 seconds to the local origin. On failure, it will set the xrootd component's status to critical.

func RegisterOriginAPI

func RegisterOriginAPI(router *gin.Engine, ctx context.Context, egrp *errgroup.Group) error

Configure API endpoints for origin that are not tied to UI

func RegisterOriginWebAPI

func RegisterOriginWebAPI(engine *gin.Engine)

Types

type OriginServer

type OriginServer struct {
	server_structs.NamespaceHolder
	// contains filtered or unexported fields
}

func (*OriginServer) CreateAdvertisement

func (server *OriginServer) CreateAdvertisement(name string, originUrlStr string, originWebUrl string) (*server_structs.OriginAdvertiseV2, error)

func (*OriginServer) GetAuthorizedPrefixes

func (server *OriginServer) GetAuthorizedPrefixes() ([]string, error)

Return a list of paths where the origin's issuer is authoritative.

Used to calculate the base_paths in the scitokens.cfg, for eaxmple

func (*OriginServer) GetNamespaceAdsFromDirector

func (server *OriginServer) GetNamespaceAdsFromDirector() error

func (*OriginServer) GetPids

func (server *OriginServer) GetPids() (pids []int)

func (*OriginServer) GetServerType

func (server *OriginServer) GetServerType() config.ServerType

func (*OriginServer) SetPids

func (server *OriginServer) SetPids(pids []int)

Jump to

Keyboard shortcuts

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