Documentation ¶
Index ¶
- type Chore
- type Cleaner
- type Config
- type Endpoint
- func (e *Endpoint) ForgetSatelliteStatus(ctx context.Context, req *internalpb.ForgetSatelliteStatusRequest) (_ *internalpb.ForgetSatelliteStatusResponse, err error)
- func (e *Endpoint) GetAllForgetSatelliteStatus(ctx context.Context, _ *internalpb.GetAllForgetSatelliteStatusRequest) (_ *internalpb.GetAllForgetSatelliteStatusResponse, err error)
- func (e *Endpoint) GetUntrustedSatellites(ctx context.Context, req *internalpb.GetUntrustedSatellitesRequest) (_ *internalpb.GetUntrustedSatellitesResponse, err error)
- func (e *Endpoint) InitForgetSatellite(ctx context.Context, req *internalpb.InitForgetSatelliteRequest) (_ *internalpb.InitForgetSatelliteResponse, err error)
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore checks for satellites that the node wants to forget and creates a worker per satellite to complete the process.
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner is responsible for cleaning up satellite data.
func NewCleaner ¶
func NewCleaner(log *zap.Logger, store *pieces.Store, trust *trust.Pool, usageCache *pieces.BlobsUsageCache, satelliteDB satellites.DB, reputationDB reputation.DB, v0PieceInfoDB pieces.V0PieceInfoDB) *Cleaner
NewCleaner creates a new Cleaner.
func (*Cleaner) ListSatellites ¶
ListSatellites lists all satellites that are being cleaned up.
type Config ¶
type Config struct { ChoreInterval time.Duration `help:"how often to run the chore to check for satellites for the node to forget" releaseDefault:"1m" devDefault:"10s"` NumWorkers int `help:"number of workers to handle forget satellite" default:"1"` }
Config defines the config for the forget satellite chore.
type Endpoint ¶
type Endpoint struct { internalpb.DRPCNodeForgetSatelliteUnimplementedServer // contains filtered or unexported fields }
Endpoint implements private inspector for forget-satellite.
func NewEndpoint ¶
NewEndpoint creates a new forget satellite endpoint.
func (*Endpoint) ForgetSatelliteStatus ¶
func (e *Endpoint) ForgetSatelliteStatus(ctx context.Context, req *internalpb.ForgetSatelliteStatusRequest) (_ *internalpb.ForgetSatelliteStatusResponse, err error)
ForgetSatelliteStatus returns the status of the forget-satellite process for a satellite.
func (*Endpoint) GetAllForgetSatelliteStatus ¶ added in v1.96.4
func (e *Endpoint) GetAllForgetSatelliteStatus(ctx context.Context, _ *internalpb.GetAllForgetSatelliteStatusRequest) (_ *internalpb.GetAllForgetSatelliteStatusResponse, err error)
GetAllForgetSatelliteStatus returns the status of the forget-satellite process for all satellites.
func (*Endpoint) GetUntrustedSatellites ¶
func (e *Endpoint) GetUntrustedSatellites(ctx context.Context, req *internalpb.GetUntrustedSatellitesRequest) (_ *internalpb.GetUntrustedSatellitesResponse, err error)
GetUntrustedSatellites returns a list of untrusted satellites.
func (*Endpoint) InitForgetSatellite ¶
func (e *Endpoint) InitForgetSatellite(ctx context.Context, req *internalpb.InitForgetSatelliteRequest) (_ *internalpb.InitForgetSatelliteResponse, err error)
InitForgetSatellite initializes the forget-satellite process for a satellite.