Documentation ¶
Index ¶
- Constants
- func PrepCustomFileChallengeQuestions(rss *sessions.RenterSession, fileHash cidlib.Cid, shardHashes []cidlib.Cid, ...) ([]*guardpb.ShardChallengeQuestions, error)
- func PrepFileChallengeQuestions(rss *sessions.RenterSession, fsStatus *guardpb.FileStoreStatus, ...) ([]*guardpb.ShardChallengeQuestions, error)
- func PrepShardChallengeQuestions(rss *sessions.RenterSession, fileHash cidlib.Cid, shardHash cidlib.Cid, ...) (*guardpb.ShardChallengeQuestions, error)
- func SendChallengeQuestions(ctx context.Context, cfg *config.Config, fileHash cidlib.Cid, ...) error
Constants ¶
View Source
const (
GuardTimeout = 360 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func PrepCustomFileChallengeQuestions ¶
func PrepCustomFileChallengeQuestions(rss *sessions.RenterSession, fileHash cidlib.Cid, shardHashes []cidlib.Cid, hostIDs []string, questionsPerShard int, offlineSigning bool, renterPid string) ([]*guardpb.ShardChallengeQuestions, error)
PrepCustomFileChallengeQuestions is the inner version of PrepFileChallengeQuestions without using a real guard file contracts, but rather custom parameters (mostly for manual testing)
func PrepFileChallengeQuestions ¶
func PrepFileChallengeQuestions(rss *sessions.RenterSession, fsStatus *guardpb.FileStoreStatus, fileHash string, offlineSigning bool, renterPid string) ( []*guardpb.ShardChallengeQuestions, error)
PrepFileChallengeQuestions checks and prepares all shard questions in one setting
func PrepShardChallengeQuestions ¶
func PrepShardChallengeQuestions(rss *sessions.RenterSession, fileHash cidlib.Cid, shardHash cidlib.Cid, hostID string, numQuestions int, renterPid string) (*guardpb.ShardChallengeQuestions, error)
PrepShardChallengeQuestions checks and prepares an amount of random challenge questions and returns the necessary guard proto struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.