guard

package
v0.4.9-pre1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGuard        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGuard          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGuard = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ContractMeta_Schedule_name = map[int32]string{
	0: "MONTHLY",
	1: "QUARTERLY",
	2: "ANNUALLY",
}
View Source
var ContractMeta_Schedule_value = map[string]int32{
	"MONTHLY":   0,
	"QUARTERLY": 1,
	"ANNUALLY":  2,
}
View Source
var Contract_ContractState_name = map[int32]string{
	0:  "DRAFT",
	1:  "SIGNED",
	2:  "UPLOADED",
	3:  "LOST",
	4:  "CANCELED",
	5:  "CLOSED",
	6:  "RENEWED",
	7:  "OBSOLETE",
	8:  "WARN",
	9:  "DRAFT_WARN",
	10: "READY_CHALLENGE",
	11: "RECREATED",
}
View Source
var Contract_ContractState_value = map[string]int32{
	"DRAFT":           0,
	"SIGNED":          1,
	"UPLOADED":        2,
	"LOST":            3,
	"CANCELED":        4,
	"CLOSED":          5,
	"RENEWED":         6,
	"OBSOLETE":        7,
	"WARN":            8,
	"DRAFT_WARN":      9,
	"READY_CHALLENGE": 10,
	"RECREATED":       11,
}
View Source
var FileStoreStatus_MetaState_name = map[int32]string{
	0: "DRAFT",
	1: "UPLOADING",
	2: "RUNNING",
	3: "PARTIAL_LOST",
	4: "LOST",
	5: "DONE",
	6: "CANCELED",
	7: "RECREATED",
}
View Source
var FileStoreStatus_MetaState_value = map[string]int32{
	"DRAFT":        0,
	"UPLOADING":    1,
	"RUNNING":      2,
	"PARTIAL_LOST": 3,
	"LOST":         4,
	"DONE":         5,
	"CANCELED":     6,
	"RECREATED":    7,
}
View Source
var FileStoreStatus_RentalState_name = map[int32]string{
	0: "NEW",
	1: "PARTIAL_NEW",
	2: "EXPIRED",
	3: "RENEW",
	4: "RECREATE",
}
View Source
var FileStoreStatus_RentalState_value = map[string]int32{
	"NEW":         0,
	"PARTIAL_NEW": 1,
	"EXPIRED":     2,
	"RENEW":       3,
	"RECREATE":    4,
}
View Source
var ListHostContractsRequest_SelectState_name = map[int32]string{
	0: "ALL",
	1: "ACTIVE",
	2: "CLOSED",
}
View Source
var ListHostContractsRequest_SelectState_value = map[string]int32{
	"ALL":    0,
	"ACTIVE": 1,
	"CLOSED": 2,
}
View Source
var ResponseCode_name = map[int32]string{
	0:  "SUCCESS",
	1:  "SIGNATURE_FORMAT_ERROR",
	2:  "COMPUTE_ADDRESS_ERROR",
	20: "OTHER_ERROR",
}
View Source
var ResponseCode_value = map[string]int32{
	"SUCCESS":                0,
	"SIGNATURE_FORMAT_ERROR": 1,
	"COMPUTE_ADDRESS_ERROR":  2,
	"OTHER_ERROR":            20,
}

Functions

func RegisterGuardServiceServer

func RegisterGuardServiceServer(s *grpc.Server, srv GuardServiceServer)

Types

type ChallengeQuestion

type ChallengeQuestion struct {
	ShardHash            string   `protobuf:"bytes,1,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	HostPid              string   `protobuf:"bytes,2,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ChunkIndex           int32    `protobuf:"varint,3,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty" pg:"chunk_index"`
	Nonce                string   `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty" pg:"nonce"`
	ExpectAnswer         string   `protobuf:"bytes,5,opt,name=expect_answer,json=expectAnswer,proto3" json:"expect_answer,omitempty" pg:"expect_answer"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedChallengeQuestion added in v0.3.1

func NewPopulatedChallengeQuestion(r randyGuard, easy bool) *ChallengeQuestion

func (*ChallengeQuestion) Descriptor

func (*ChallengeQuestion) Descriptor() ([]byte, []int)

func (*ChallengeQuestion) GetChunkIndex

func (m *ChallengeQuestion) GetChunkIndex() int32

func (*ChallengeQuestion) GetExpectAnswer

func (m *ChallengeQuestion) GetExpectAnswer() string

func (*ChallengeQuestion) GetHostPid added in v0.1.2

func (m *ChallengeQuestion) GetHostPid() string

func (*ChallengeQuestion) GetNonce added in v0.1.2

func (m *ChallengeQuestion) GetNonce() string

func (*ChallengeQuestion) GetShardHash

func (m *ChallengeQuestion) GetShardHash() string

func (*ChallengeQuestion) Marshal added in v0.0.13

func (m *ChallengeQuestion) Marshal() (dAtA []byte, err error)

func (*ChallengeQuestion) MarshalTo added in v0.0.13

func (m *ChallengeQuestion) MarshalTo(dAtA []byte) (int, error)

func (*ChallengeQuestion) MarshalToSizedBuffer added in v0.0.13

func (m *ChallengeQuestion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChallengeQuestion) ProtoMessage

func (*ChallengeQuestion) ProtoMessage()

func (*ChallengeQuestion) Reset

func (m *ChallengeQuestion) Reset()

func (*ChallengeQuestion) Size added in v0.0.13

func (m *ChallengeQuestion) Size() (n int)

func (*ChallengeQuestion) String

func (m *ChallengeQuestion) String() string

func (*ChallengeQuestion) Unmarshal added in v0.0.13

func (m *ChallengeQuestion) Unmarshal(dAtA []byte) error

func (*ChallengeQuestion) XXX_DiscardUnknown

func (m *ChallengeQuestion) XXX_DiscardUnknown()

func (*ChallengeQuestion) XXX_Marshal

func (m *ChallengeQuestion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChallengeQuestion) XXX_Merge

func (m *ChallengeQuestion) XXX_Merge(src proto.Message)

func (*ChallengeQuestion) XXX_MessageName added in v0.0.13

func (*ChallengeQuestion) XXX_MessageName() string

func (*ChallengeQuestion) XXX_Size

func (m *ChallengeQuestion) XXX_Size() int

func (*ChallengeQuestion) XXX_Unmarshal

func (m *ChallengeQuestion) XXX_Unmarshal(b []byte) error

type CheckFileStoreMetaRequest

type CheckFileStoreMetaRequest struct {
	FileHash             string    `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RenterPid            string    `protobuf:"bytes,2,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	RequesterPid         string    `protobuf:"bytes,3,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestTime          time.Time `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time" pg:"request_time"`
	Signature            []byte    `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedCheckFileStoreMetaRequest added in v0.3.1

func NewPopulatedCheckFileStoreMetaRequest(r randyGuard, easy bool) *CheckFileStoreMetaRequest

func (*CheckFileStoreMetaRequest) Descriptor

func (*CheckFileStoreMetaRequest) Descriptor() ([]byte, []int)

func (*CheckFileStoreMetaRequest) GetFileHash

func (m *CheckFileStoreMetaRequest) GetFileHash() string

func (*CheckFileStoreMetaRequest) GetRenterPid added in v0.1.2

func (m *CheckFileStoreMetaRequest) GetRenterPid() string

func (*CheckFileStoreMetaRequest) GetRequestTime added in v0.0.9

func (m *CheckFileStoreMetaRequest) GetRequestTime() time.Time

func (*CheckFileStoreMetaRequest) GetRequesterPid added in v0.1.2

func (m *CheckFileStoreMetaRequest) GetRequesterPid() string

func (*CheckFileStoreMetaRequest) GetSignature

func (m *CheckFileStoreMetaRequest) GetSignature() []byte

func (*CheckFileStoreMetaRequest) Marshal added in v0.0.13

func (m *CheckFileStoreMetaRequest) Marshal() (dAtA []byte, err error)

func (*CheckFileStoreMetaRequest) MarshalTo added in v0.0.13

func (m *CheckFileStoreMetaRequest) MarshalTo(dAtA []byte) (int, error)

func (*CheckFileStoreMetaRequest) MarshalToSizedBuffer added in v0.0.13

func (m *CheckFileStoreMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckFileStoreMetaRequest) ProtoMessage

func (*CheckFileStoreMetaRequest) ProtoMessage()

func (*CheckFileStoreMetaRequest) Reset

func (m *CheckFileStoreMetaRequest) Reset()

func (*CheckFileStoreMetaRequest) Size added in v0.0.13

func (m *CheckFileStoreMetaRequest) Size() (n int)

func (*CheckFileStoreMetaRequest) String

func (m *CheckFileStoreMetaRequest) String() string

func (*CheckFileStoreMetaRequest) Unmarshal added in v0.0.13

func (m *CheckFileStoreMetaRequest) Unmarshal(dAtA []byte) error

func (*CheckFileStoreMetaRequest) XXX_DiscardUnknown

func (m *CheckFileStoreMetaRequest) XXX_DiscardUnknown()

func (*CheckFileStoreMetaRequest) XXX_Marshal

func (m *CheckFileStoreMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckFileStoreMetaRequest) XXX_Merge

func (m *CheckFileStoreMetaRequest) XXX_Merge(src proto.Message)

func (*CheckFileStoreMetaRequest) XXX_MessageName added in v0.0.13

func (*CheckFileStoreMetaRequest) XXX_MessageName() string

func (*CheckFileStoreMetaRequest) XXX_Size

func (m *CheckFileStoreMetaRequest) XXX_Size() int

func (*CheckFileStoreMetaRequest) XXX_Unmarshal

func (m *CheckFileStoreMetaRequest) XXX_Unmarshal(b []byte) error

type Contract

type Contract struct {
	//the contract executor record, changed frequently after proposal
	ContractMeta             `protobuf:"bytes,1,opt,name=contract,proto3,embedded=contract" json:"contract" pg:"contract"`
	State                    Contract_ContractState `protobuf:"varint,2,opt,name=state,proto3,enum=guard.Contract_ContractState" json:"state,omitempty" pg:"state"`
	RenterSignature          []byte                 `` /* 128-byte string literal not displayed */
	HostSignature            []byte                 `protobuf:"bytes,4,opt,name=host_signature,json=hostSignature,proto3" json:"host_signature,omitempty" pg:"host_signature"`
	EscrowSignedTime         time.Time              `` /* 133-byte string literal not displayed */
	EscrowSignature          []byte                 `` /* 128-byte string literal not displayed */
	ChangeLog                []*Log                 `protobuf:"bytes,7,rep,name=change_log,json=changeLog,proto3" json:"change_log,omitempty" pg:"-"`
	LastModifyTime           time.Time              `protobuf:"bytes,8,opt,name=last_modify_time,json=lastModifyTime,proto3,stdtime" json:"last_modify_time" pg:"last_modify_time"`
	GuardSignature           []byte                 `protobuf:"bytes,9,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	PreparerPid              string                 `protobuf:"bytes,10,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	PreparerSignature        []byte                 `` /* 137-byte string literal not displayed */
	LastSuccessChallengeTime time.Time              `` /* 169-byte string literal not displayed */
	LastChallengeTime        time.Time              `` /* 138-byte string literal not displayed */
	ChallengeTimes           int32                  `` /* 126-byte string literal not displayed */
	ChallengeWarnTimes       int32                  `` /* 145-byte string literal not displayed */
	ChallengeSuccessTimes    int32                  `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral     struct{}               `json:"-" pg:"-"`
	XXX_unrecognized         []byte                 `json:"-" pg:"-"`
	XXX_sizecache            int32                  `json:"-" pg:"-"`
}

func NewPopulatedContract added in v0.3.1

func NewPopulatedContract(r randyGuard, easy bool) *Contract

func (*Contract) Descriptor

func (*Contract) Descriptor() ([]byte, []int)

func (*Contract) GetChallengeSuccessTimes added in v0.2.13

func (m *Contract) GetChallengeSuccessTimes() int32

func (*Contract) GetChallengeTimes added in v0.2.14

func (m *Contract) GetChallengeTimes() int32

func (*Contract) GetChallengeWarnTimes added in v0.2.13

func (m *Contract) GetChallengeWarnTimes() int32

func (*Contract) GetChangeLog

func (m *Contract) GetChangeLog() []*Log

func (*Contract) GetEscrowSignature

func (m *Contract) GetEscrowSignature() []byte

func (*Contract) GetEscrowSignedTime

func (m *Contract) GetEscrowSignedTime() time.Time

func (*Contract) GetGuardSignature

func (m *Contract) GetGuardSignature() []byte

func (*Contract) GetHostSignature

func (m *Contract) GetHostSignature() []byte

func (*Contract) GetLastChallengeTime added in v0.2.13

func (m *Contract) GetLastChallengeTime() time.Time

func (*Contract) GetLastModifyTime

func (m *Contract) GetLastModifyTime() time.Time

func (*Contract) GetLastSuccessChallengeTime added in v0.2.13

func (m *Contract) GetLastSuccessChallengeTime() time.Time

func (*Contract) GetPreparerPid added in v0.1.4

func (m *Contract) GetPreparerPid() string

func (*Contract) GetPreparerSignature added in v0.1.4

func (m *Contract) GetPreparerSignature() []byte

func (*Contract) GetRenterSignature

func (m *Contract) GetRenterSignature() []byte

func (*Contract) GetState

func (m *Contract) GetState() Contract_ContractState

func (*Contract) Marshal added in v0.0.13

func (m *Contract) Marshal() (dAtA []byte, err error)

func (*Contract) MarshalTo added in v0.0.13

func (m *Contract) MarshalTo(dAtA []byte) (int, error)

func (*Contract) MarshalToSizedBuffer added in v0.0.13

func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size added in v0.0.13

func (m *Contract) Size() (n int)

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal added in v0.0.13

func (m *Contract) Unmarshal(dAtA []byte) error

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Contract) XXX_Merge

func (m *Contract) XXX_Merge(src proto.Message)

func (*Contract) XXX_MessageName added in v0.0.13

func (*Contract) XXX_MessageName() string

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

func (m *Contract) XXX_Unmarshal(b []byte) error

type ContractMeta

type ContractMeta struct {
	//Contract proposed by renter, will not be changed after renter proposed
	ContractId           string                `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"`
	RenterPid            string                `protobuf:"bytes,2,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	HostPid              string                `protobuf:"bytes,3,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ShardHash            string                `protobuf:"bytes,4,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	ShardIndex           int32                 `protobuf:"varint,5,opt,name=shard_index,json=shardIndex,proto3" json:"shard_index,omitempty" pg:"shard_index"`
	ShardFileSize        int64                 `protobuf:"varint,6,opt,name=shard_file_size,json=shardFileSize,proto3" json:"shard_file_size,omitempty" pg:"shard_file_size"`
	FileHash             string                `protobuf:"bytes,7,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RentStart            time.Time             `protobuf:"bytes,8,opt,name=rent_start,json=rentStart,proto3,stdtime" json:"rent_start" pg:"rent_start"`
	RentEnd              time.Time             `protobuf:"bytes,9,opt,name=rent_end,json=rentEnd,proto3,stdtime" json:"rent_end" pg:"rent_end"`
	GuardPid             string                `protobuf:"bytes,10,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	EscrowPid            string                `protobuf:"bytes,11,opt,name=escrow_pid,json=escrowPid,proto3" json:"escrow_pid,omitempty" pg:"escrow_pid"`
	Price                int64                 `protobuf:"varint,12,opt,name=price,proto3" json:"price,omitempty" pg:"price"`
	Amount               int64                 `protobuf:"varint,13,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	CollateralAmount     int64                 `` /* 134-byte string literal not displayed */
	PayoutSchedule       ContractMeta_Schedule `` /* 159-byte string literal not displayed */
	NumPayouts           int32                 `protobuf:"varint,16,opt,name=num_payouts,json=numPayouts,proto3" json:"num_payouts,omitempty" pg:"num_payouts"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-" pg:"-"`
	XXX_unrecognized     []byte                `json:"-" pg:"-"`
	XXX_sizecache        int32                 `json:"-" pg:"-"`
}

the relationship of the objects from Guard's view FileStoreMeta (1:n) Contract (1:n) payout contract is the signed document between the renter and host for one shard's storage the contract information contains buyer, seller, escrow, guard , storage shard's information, rent duration, amount, payment method(periodically and times) ContractMeta is the information which will not be changed after proposal Contract technically is the contract execution record, it contains the contractMeta and state information

func NewPopulatedContractMeta added in v0.3.1

func NewPopulatedContractMeta(r randyGuard, easy bool) *ContractMeta

func (*ContractMeta) Descriptor

func (*ContractMeta) Descriptor() ([]byte, []int)

func (*ContractMeta) GetAmount

func (m *ContractMeta) GetAmount() int64

func (*ContractMeta) GetCollateralAmount added in v0.0.11

func (m *ContractMeta) GetCollateralAmount() int64

func (*ContractMeta) GetContractId

func (m *ContractMeta) GetContractId() string

func (*ContractMeta) GetEscrowPid added in v0.1.2

func (m *ContractMeta) GetEscrowPid() string

func (*ContractMeta) GetFileHash

func (m *ContractMeta) GetFileHash() string

func (*ContractMeta) GetGuardPid added in v0.1.2

func (m *ContractMeta) GetGuardPid() string

func (*ContractMeta) GetHostPid added in v0.1.2

func (m *ContractMeta) GetHostPid() string

func (*ContractMeta) GetNumPayouts

func (m *ContractMeta) GetNumPayouts() int32

func (*ContractMeta) GetPayoutSchedule

func (m *ContractMeta) GetPayoutSchedule() ContractMeta_Schedule

func (*ContractMeta) GetPrice

func (m *ContractMeta) GetPrice() int64

func (*ContractMeta) GetRentEnd

func (m *ContractMeta) GetRentEnd() time.Time

func (*ContractMeta) GetRentStart

func (m *ContractMeta) GetRentStart() time.Time

func (*ContractMeta) GetRenterPid added in v0.1.2

func (m *ContractMeta) GetRenterPid() string

func (*ContractMeta) GetShardFileSize

func (m *ContractMeta) GetShardFileSize() int64

func (*ContractMeta) GetShardHash

func (m *ContractMeta) GetShardHash() string

func (*ContractMeta) GetShardIndex

func (m *ContractMeta) GetShardIndex() int32

func (*ContractMeta) Marshal added in v0.0.13

func (m *ContractMeta) Marshal() (dAtA []byte, err error)

func (*ContractMeta) MarshalTo added in v0.0.13

func (m *ContractMeta) MarshalTo(dAtA []byte) (int, error)

func (*ContractMeta) MarshalToSizedBuffer added in v0.0.13

func (m *ContractMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractMeta) ProtoMessage

func (*ContractMeta) ProtoMessage()

func (*ContractMeta) Reset

func (m *ContractMeta) Reset()

func (*ContractMeta) Size added in v0.0.13

func (m *ContractMeta) Size() (n int)

func (*ContractMeta) String

func (m *ContractMeta) String() string

func (*ContractMeta) Unmarshal added in v0.0.13

func (m *ContractMeta) Unmarshal(dAtA []byte) error

func (*ContractMeta) XXX_DiscardUnknown

func (m *ContractMeta) XXX_DiscardUnknown()

func (*ContractMeta) XXX_Marshal

func (m *ContractMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractMeta) XXX_Merge

func (m *ContractMeta) XXX_Merge(src proto.Message)

func (*ContractMeta) XXX_MessageName added in v0.0.13

func (*ContractMeta) XXX_MessageName() string

func (*ContractMeta) XXX_Size

func (m *ContractMeta) XXX_Size() int

func (*ContractMeta) XXX_Unmarshal

func (m *ContractMeta) XXX_Unmarshal(b []byte) error

type ContractMeta_Schedule

type ContractMeta_Schedule int32
const (
	ContractMeta_MONTHLY   ContractMeta_Schedule = 0
	ContractMeta_QUARTERLY ContractMeta_Schedule = 1
	ContractMeta_ANNUALLY  ContractMeta_Schedule = 2
)

func (ContractMeta_Schedule) EnumDescriptor

func (ContractMeta_Schedule) EnumDescriptor() ([]byte, []int)

func (ContractMeta_Schedule) String

func (x ContractMeta_Schedule) String() string

type Contract_ContractState

type Contract_ContractState int32
const (
	Contract_DRAFT           Contract_ContractState = 0
	Contract_SIGNED          Contract_ContractState = 1
	Contract_UPLOADED        Contract_ContractState = 2
	Contract_LOST            Contract_ContractState = 3
	Contract_CANCELED        Contract_ContractState = 4
	Contract_CLOSED          Contract_ContractState = 5
	Contract_RENEWED         Contract_ContractState = 6
	Contract_OBSOLETE        Contract_ContractState = 7
	Contract_WARN            Contract_ContractState = 8
	Contract_DRAFT_WARN      Contract_ContractState = 9
	Contract_READY_CHALLENGE Contract_ContractState = 10
	Contract_RECREATED       Contract_ContractState = 11
)

func (Contract_ContractState) EnumDescriptor

func (Contract_ContractState) EnumDescriptor() ([]byte, []int)

func (Contract_ContractState) String

func (x Contract_ContractState) String() string

type ContractsList added in v0.3.3

type ContractsList struct {
	Request              *ListHostContractsRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty" pg:"request"`
	GenerateTime         time.Time                 `protobuf:"bytes,2,opt,name=generate_time,json=generateTime,proto3,stdtime" json:"generate_time" pg:"generate_time"`
	Contracts            []*Contract               `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty" pg:"contracts"`
	Count                int32                     `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty" pg:"count"`
	Signature            []byte                    `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-" pg:"-"`
	XXX_unrecognized     []byte                    `json:"-" pg:"-"`
	XXX_sizecache        int32                     `json:"-" pg:"-"`
}

func NewPopulatedContractsList added in v0.3.3

func NewPopulatedContractsList(r randyGuard, easy bool) *ContractsList

func (*ContractsList) Descriptor added in v0.3.3

func (*ContractsList) Descriptor() ([]byte, []int)

func (*ContractsList) GetContracts added in v0.3.3

func (m *ContractsList) GetContracts() []*Contract

func (*ContractsList) GetCount added in v0.3.3

func (m *ContractsList) GetCount() int32

func (*ContractsList) GetGenerateTime added in v0.3.3

func (m *ContractsList) GetGenerateTime() time.Time

func (*ContractsList) GetRequest added in v0.3.3

func (m *ContractsList) GetRequest() *ListHostContractsRequest

func (*ContractsList) GetSignature added in v0.3.3

func (m *ContractsList) GetSignature() []byte

func (*ContractsList) Marshal added in v0.3.3

func (m *ContractsList) Marshal() (dAtA []byte, err error)

func (*ContractsList) MarshalTo added in v0.3.3

func (m *ContractsList) MarshalTo(dAtA []byte) (int, error)

func (*ContractsList) MarshalToSizedBuffer added in v0.3.3

func (m *ContractsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractsList) ProtoMessage added in v0.3.3

func (*ContractsList) ProtoMessage()

func (*ContractsList) Reset added in v0.3.3

func (m *ContractsList) Reset()

func (*ContractsList) Size added in v0.3.3

func (m *ContractsList) Size() (n int)

func (*ContractsList) String added in v0.3.3

func (m *ContractsList) String() string

func (*ContractsList) Unmarshal added in v0.3.3

func (m *ContractsList) Unmarshal(dAtA []byte) error

func (*ContractsList) XXX_DiscardUnknown added in v0.3.3

func (m *ContractsList) XXX_DiscardUnknown()

func (*ContractsList) XXX_Marshal added in v0.3.3

func (m *ContractsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractsList) XXX_Merge added in v0.3.3

func (m *ContractsList) XXX_Merge(src proto.Message)

func (*ContractsList) XXX_MessageName added in v0.3.3

func (*ContractsList) XXX_MessageName() string

func (*ContractsList) XXX_Size added in v0.3.3

func (m *ContractsList) XXX_Size() int

func (*ContractsList) XXX_Unmarshal added in v0.3.3

func (m *ContractsList) XXX_Unmarshal(b []byte) error

type FileChallengeQuestions

type FileChallengeQuestions struct {
	FileHash             string                     `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardQuestions       []*ShardChallengeQuestions `protobuf:"bytes,2,rep,name=shard_questions,json=shardQuestions,proto3" json:"shard_questions,omitempty" pg:"shard_questions"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func NewPopulatedFileChallengeQuestions added in v0.3.1

func NewPopulatedFileChallengeQuestions(r randyGuard, easy bool) *FileChallengeQuestions

func (*FileChallengeQuestions) Descriptor

func (*FileChallengeQuestions) Descriptor() ([]byte, []int)

func (*FileChallengeQuestions) GetFileHash

func (m *FileChallengeQuestions) GetFileHash() string

func (*FileChallengeQuestions) GetShardQuestions

func (m *FileChallengeQuestions) GetShardQuestions() []*ShardChallengeQuestions

func (*FileChallengeQuestions) Marshal added in v0.0.13

func (m *FileChallengeQuestions) Marshal() (dAtA []byte, err error)

func (*FileChallengeQuestions) MarshalTo added in v0.0.13

func (m *FileChallengeQuestions) MarshalTo(dAtA []byte) (int, error)

func (*FileChallengeQuestions) MarshalToSizedBuffer added in v0.0.13

func (m *FileChallengeQuestions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileChallengeQuestions) ProtoMessage

func (*FileChallengeQuestions) ProtoMessage()

func (*FileChallengeQuestions) Reset

func (m *FileChallengeQuestions) Reset()

func (*FileChallengeQuestions) Size added in v0.0.13

func (m *FileChallengeQuestions) Size() (n int)

func (*FileChallengeQuestions) String

func (m *FileChallengeQuestions) String() string

func (*FileChallengeQuestions) Unmarshal added in v0.0.13

func (m *FileChallengeQuestions) Unmarshal(dAtA []byte) error

func (*FileChallengeQuestions) XXX_DiscardUnknown

func (m *FileChallengeQuestions) XXX_DiscardUnknown()

func (*FileChallengeQuestions) XXX_Marshal

func (m *FileChallengeQuestions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileChallengeQuestions) XXX_Merge

func (m *FileChallengeQuestions) XXX_Merge(src proto.Message)

func (*FileChallengeQuestions) XXX_MessageName added in v0.0.13

func (*FileChallengeQuestions) XXX_MessageName() string

func (*FileChallengeQuestions) XXX_Size

func (m *FileChallengeQuestions) XXX_Size() int

func (*FileChallengeQuestions) XXX_Unmarshal

func (m *FileChallengeQuestions) XXX_Unmarshal(b []byte) error

type FileStoreListResponse added in v0.4.8

type FileStoreListResponse struct {
	Request              *ListRenterFileInfoRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty" pg:"request"`
	CurrentTime          time.Time                  `protobuf:"bytes,2,opt,name=current_time,json=currentTime,proto3,stdtime" json:"current_time" pg:"current_time"`
	FileStoreMeta        []*FileStoreMeta           `protobuf:"bytes,3,rep,name=file_store_meta,json=fileStoreMeta,proto3" json:"file_store_meta,omitempty" pg:"file_store_meta"`
	Count                int32                      `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty" pg:"count"`
	Signature            []byte                     `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func NewPopulatedFileStoreListResponse added in v0.4.8

func NewPopulatedFileStoreListResponse(r randyGuard, easy bool) *FileStoreListResponse

func (*FileStoreListResponse) Descriptor added in v0.4.8

func (*FileStoreListResponse) Descriptor() ([]byte, []int)

func (*FileStoreListResponse) GetCount added in v0.4.8

func (m *FileStoreListResponse) GetCount() int32

func (*FileStoreListResponse) GetCurrentTime added in v0.4.8

func (m *FileStoreListResponse) GetCurrentTime() time.Time

func (*FileStoreListResponse) GetFileStoreMeta added in v0.4.8

func (m *FileStoreListResponse) GetFileStoreMeta() []*FileStoreMeta

func (*FileStoreListResponse) GetRequest added in v0.4.8

func (*FileStoreListResponse) GetSignature added in v0.4.8

func (m *FileStoreListResponse) GetSignature() []byte

func (*FileStoreListResponse) Marshal added in v0.4.8

func (m *FileStoreListResponse) Marshal() (dAtA []byte, err error)

func (*FileStoreListResponse) MarshalTo added in v0.4.8

func (m *FileStoreListResponse) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreListResponse) MarshalToSizedBuffer added in v0.4.8

func (m *FileStoreListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreListResponse) ProtoMessage added in v0.4.8

func (*FileStoreListResponse) ProtoMessage()

func (*FileStoreListResponse) Reset added in v0.4.8

func (m *FileStoreListResponse) Reset()

func (*FileStoreListResponse) Size added in v0.4.8

func (m *FileStoreListResponse) Size() (n int)

func (*FileStoreListResponse) String added in v0.4.8

func (m *FileStoreListResponse) String() string

func (*FileStoreListResponse) Unmarshal added in v0.4.8

func (m *FileStoreListResponse) Unmarshal(dAtA []byte) error

func (*FileStoreListResponse) XXX_DiscardUnknown added in v0.4.8

func (m *FileStoreListResponse) XXX_DiscardUnknown()

func (*FileStoreListResponse) XXX_Marshal added in v0.4.8

func (m *FileStoreListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileStoreListResponse) XXX_Merge added in v0.4.8

func (m *FileStoreListResponse) XXX_Merge(src proto.Message)

func (*FileStoreListResponse) XXX_MessageName added in v0.4.8

func (*FileStoreListResponse) XXX_MessageName() string

func (*FileStoreListResponse) XXX_Size added in v0.4.8

func (m *FileStoreListResponse) XXX_Size() int

func (*FileStoreListResponse) XXX_Unmarshal added in v0.4.8

func (m *FileStoreListResponse) XXX_Unmarshal(b []byte) error

type FileStoreMeta

type FileStoreMeta struct {
	//file store meta prepared by renter, will not changed after proposal
	RenterPid                  string    `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash                   string    `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	FileSize                   int64     `protobuf:"varint,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" pg:"file_size"`
	RentStart                  time.Time `protobuf:"bytes,4,opt,name=rent_start,json=rentStart,proto3,stdtime" json:"rent_start" pg:"rent_start"`
	RentEnd                    time.Time `protobuf:"bytes,5,opt,name=rent_end,json=rentEnd,proto3,stdtime" json:"rent_end" pg:"rent_end"`
	CheckFrequency             int32     `protobuf:"varint,6,opt,name=check_frequency,json=checkFrequency,proto3" json:"check_frequency,omitempty" pg:"check_frequency"`
	GuardFee                   int64     `protobuf:"varint,7,opt,name=guard_fee,json=guardFee,proto3" json:"guard_fee,omitempty" pg:"guard_fee"`
	EscrowFee                  int64     `protobuf:"varint,8,opt,name=escrow_fee,json=escrowFee,proto3" json:"escrow_fee,omitempty" pg:"escrow_fee"`
	ShardCount                 int32     `protobuf:"varint,9,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty" pg:"shard_count"`
	MinimumShards              int32     `protobuf:"varint,10,opt,name=minimum_shards,json=minimumShards,proto3" json:"minimum_shards,omitempty" pg:"minimum_shards"`
	RecoverThreshold           int32     `` /* 134-byte string literal not displayed */
	EscrowPid                  string    `protobuf:"bytes,12,opt,name=escrow_pid,json=escrowPid,proto3" json:"escrow_pid,omitempty" pg:"escrow_pid"`
	GuardPid                   string    `protobuf:"bytes,13,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	WarnChallengeTimesLimit    int32     `` /* 168-byte string literal not displayed */
	SuccessChallengeTimesLimit int32     `` /* 180-byte string literal not displayed */
	CheckFrequencyWarn         int32     `` /* 145-byte string literal not displayed */
	XXX_NoUnkeyedLiteral       struct{}  `json:"-" pg:"-"`
	XXX_unrecognized           []byte    `json:"-" pg:"-"`
	XXX_sizecache              int32     `json:"-" pg:"-"`
}

func NewPopulatedFileStoreMeta added in v0.3.1

func NewPopulatedFileStoreMeta(r randyGuard, easy bool) *FileStoreMeta

func (*FileStoreMeta) Descriptor

func (*FileStoreMeta) Descriptor() ([]byte, []int)

func (*FileStoreMeta) GetCheckFrequency added in v0.0.11

func (m *FileStoreMeta) GetCheckFrequency() int32

func (*FileStoreMeta) GetCheckFrequencyWarn added in v0.2.13

func (m *FileStoreMeta) GetCheckFrequencyWarn() int32

func (*FileStoreMeta) GetEscrowFee

func (m *FileStoreMeta) GetEscrowFee() int64

func (*FileStoreMeta) GetEscrowPid added in v0.1.2

func (m *FileStoreMeta) GetEscrowPid() string

func (*FileStoreMeta) GetFileHash

func (m *FileStoreMeta) GetFileHash() string

func (*FileStoreMeta) GetFileSize

func (m *FileStoreMeta) GetFileSize() int64

func (*FileStoreMeta) GetGuardFee

func (m *FileStoreMeta) GetGuardFee() int64

func (*FileStoreMeta) GetGuardPid added in v0.1.2

func (m *FileStoreMeta) GetGuardPid() string

func (*FileStoreMeta) GetMinimumShards

func (m *FileStoreMeta) GetMinimumShards() int32

func (*FileStoreMeta) GetRecoverThreshold

func (m *FileStoreMeta) GetRecoverThreshold() int32

func (*FileStoreMeta) GetRentEnd

func (m *FileStoreMeta) GetRentEnd() time.Time

func (*FileStoreMeta) GetRentStart

func (m *FileStoreMeta) GetRentStart() time.Time

func (*FileStoreMeta) GetRenterPid added in v0.1.2

func (m *FileStoreMeta) GetRenterPid() string

func (*FileStoreMeta) GetShardCount

func (m *FileStoreMeta) GetShardCount() int32

func (*FileStoreMeta) GetSuccessChallengeTimesLimit added in v0.2.14

func (m *FileStoreMeta) GetSuccessChallengeTimesLimit() int32

func (*FileStoreMeta) GetWarnChallengeTimesLimit added in v0.2.14

func (m *FileStoreMeta) GetWarnChallengeTimesLimit() int32

func (*FileStoreMeta) Marshal added in v0.0.13

func (m *FileStoreMeta) Marshal() (dAtA []byte, err error)

func (*FileStoreMeta) MarshalTo added in v0.0.13

func (m *FileStoreMeta) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreMeta) MarshalToSizedBuffer added in v0.0.13

func (m *FileStoreMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreMeta) ProtoMessage

func (*FileStoreMeta) ProtoMessage()

func (*FileStoreMeta) Reset

func (m *FileStoreMeta) Reset()

func (*FileStoreMeta) Size added in v0.0.13

func (m *FileStoreMeta) Size() (n int)

func (*FileStoreMeta) String

func (m *FileStoreMeta) String() string

func (*FileStoreMeta) Unmarshal added in v0.0.13

func (m *FileStoreMeta) Unmarshal(dAtA []byte) error

func (*FileStoreMeta) XXX_DiscardUnknown

func (m *FileStoreMeta) XXX_DiscardUnknown()

func (*FileStoreMeta) XXX_Marshal

func (m *FileStoreMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileStoreMeta) XXX_Merge

func (m *FileStoreMeta) XXX_Merge(src proto.Message)

func (*FileStoreMeta) XXX_MessageName added in v0.0.13

func (*FileStoreMeta) XXX_MessageName() string

func (*FileStoreMeta) XXX_Size

func (m *FileStoreMeta) XXX_Size() int

func (*FileStoreMeta) XXX_Unmarshal

func (m *FileStoreMeta) XXX_Unmarshal(b []byte) error

type FileStoreStatus

type FileStoreStatus struct {
	FileStoreMeta        ``                          /* 138-byte string literal not displayed */
	State                FileStoreStatus_MetaState   `protobuf:"varint,2,opt,name=state,proto3,enum=guard.FileStoreStatus_MetaState" json:"state,omitempty" pg:"state"`
	Contracts            []*Contract                 `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty" pg:"-"`
	RenterSignature      []byte                      `` /* 128-byte string literal not displayed */
	GuardReceiveTime     time.Time                   `` /* 133-byte string literal not displayed */
	ChangeLog            []*Log                      `protobuf:"bytes,6,rep,name=change_log,json=changeLog,proto3" json:"change_log,omitempty" pg:"-"`
	CurrentTime          time.Time                   `protobuf:"bytes,7,opt,name=current_time,json=currentTime,proto3,stdtime" json:"current_time" pg:"current_time"`
	GuardSignature       []byte                      `protobuf:"bytes,8,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	RentalState          FileStoreStatus_RentalState `` /* 152-byte string literal not displayed */
	PreparerPid          string                      `protobuf:"bytes,10,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	PreparerSignature    []byte                      `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                    `json:"-" pg:"-"`
	XXX_unrecognized     []byte                      `json:"-" pg:"-"`
	XXX_sizecache        int32                       `json:"-" pg:"-"`
}

func NewPopulatedFileStoreStatus added in v0.3.1

func NewPopulatedFileStoreStatus(r randyGuard, easy bool) *FileStoreStatus

func (*FileStoreStatus) Descriptor

func (*FileStoreStatus) Descriptor() ([]byte, []int)

func (*FileStoreStatus) GetChangeLog

func (m *FileStoreStatus) GetChangeLog() []*Log

func (*FileStoreStatus) GetContracts

func (m *FileStoreStatus) GetContracts() []*Contract

func (*FileStoreStatus) GetCurrentTime added in v0.1.2

func (m *FileStoreStatus) GetCurrentTime() time.Time

func (*FileStoreStatus) GetGuardReceiveTime

func (m *FileStoreStatus) GetGuardReceiveTime() time.Time

func (*FileStoreStatus) GetGuardSignature

func (m *FileStoreStatus) GetGuardSignature() []byte

func (*FileStoreStatus) GetPreparerPid added in v0.1.4

func (m *FileStoreStatus) GetPreparerPid() string

func (*FileStoreStatus) GetPreparerSignature added in v0.1.4

func (m *FileStoreStatus) GetPreparerSignature() []byte

func (*FileStoreStatus) GetRentalState added in v0.1.4

func (m *FileStoreStatus) GetRentalState() FileStoreStatus_RentalState

func (*FileStoreStatus) GetRenterSignature

func (m *FileStoreStatus) GetRenterSignature() []byte

func (*FileStoreStatus) GetState

func (*FileStoreStatus) Marshal added in v0.0.13

func (m *FileStoreStatus) Marshal() (dAtA []byte, err error)

func (*FileStoreStatus) MarshalTo added in v0.0.13

func (m *FileStoreStatus) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreStatus) MarshalToSizedBuffer added in v0.0.13

func (m *FileStoreStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreStatus) ProtoMessage

func (*FileStoreStatus) ProtoMessage()

func (*FileStoreStatus) Reset

func (m *FileStoreStatus) Reset()

func (*FileStoreStatus) Size added in v0.0.13

func (m *FileStoreStatus) Size() (n int)

func (*FileStoreStatus) String

func (m *FileStoreStatus) String() string

func (*FileStoreStatus) Unmarshal added in v0.0.13

func (m *FileStoreStatus) Unmarshal(dAtA []byte) error

func (*FileStoreStatus) XXX_DiscardUnknown

func (m *FileStoreStatus) XXX_DiscardUnknown()

func (*FileStoreStatus) XXX_Marshal

func (m *FileStoreStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileStoreStatus) XXX_Merge

func (m *FileStoreStatus) XXX_Merge(src proto.Message)

func (*FileStoreStatus) XXX_MessageName added in v0.0.13

func (*FileStoreStatus) XXX_MessageName() string

func (*FileStoreStatus) XXX_Size

func (m *FileStoreStatus) XXX_Size() int

func (*FileStoreStatus) XXX_Unmarshal

func (m *FileStoreStatus) XXX_Unmarshal(b []byte) error

type FileStoreStatus_MetaState

type FileStoreStatus_MetaState int32
const (
	FileStoreStatus_DRAFT        FileStoreStatus_MetaState = 0
	FileStoreStatus_UPLOADING    FileStoreStatus_MetaState = 1
	FileStoreStatus_RUNNING      FileStoreStatus_MetaState = 2
	FileStoreStatus_PARTIAL_LOST FileStoreStatus_MetaState = 3
	FileStoreStatus_LOST         FileStoreStatus_MetaState = 4
	FileStoreStatus_DONE         FileStoreStatus_MetaState = 5
	FileStoreStatus_CANCELED     FileStoreStatus_MetaState = 6
	FileStoreStatus_RECREATED    FileStoreStatus_MetaState = 7
)

func (FileStoreStatus_MetaState) EnumDescriptor

func (FileStoreStatus_MetaState) EnumDescriptor() ([]byte, []int)

func (FileStoreStatus_MetaState) String

func (x FileStoreStatus_MetaState) String() string

type FileStoreStatus_RentalState added in v0.1.4

type FileStoreStatus_RentalState int32
const (
	FileStoreStatus_NEW         FileStoreStatus_RentalState = 0
	FileStoreStatus_PARTIAL_NEW FileStoreStatus_RentalState = 1
	FileStoreStatus_EXPIRED     FileStoreStatus_RentalState = 2
	FileStoreStatus_RENEW       FileStoreStatus_RentalState = 3
	FileStoreStatus_RECREATE    FileStoreStatus_RentalState = 4
)

func (FileStoreStatus_RentalState) EnumDescriptor added in v0.1.4

func (FileStoreStatus_RentalState) EnumDescriptor() ([]byte, []int)

func (FileStoreStatus_RentalState) String added in v0.1.4

type ForceRepairRequest added in v0.2.26

type ForceRepairRequest struct {
	RenterPid            string   `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash             string   `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	AuthPid              string   `protobuf:"bytes,3,opt,name=auth_pid,json=authPid,proto3" json:"auth_pid,omitempty" pg:"auth_pid"`
	Signature            []byte   `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedForceRepairRequest added in v0.3.1

func NewPopulatedForceRepairRequest(r randyGuard, easy bool) *ForceRepairRequest

func (*ForceRepairRequest) Descriptor added in v0.2.26

func (*ForceRepairRequest) Descriptor() ([]byte, []int)

func (*ForceRepairRequest) GetAuthPid added in v0.2.26

func (m *ForceRepairRequest) GetAuthPid() string

func (*ForceRepairRequest) GetFileHash added in v0.2.26

func (m *ForceRepairRequest) GetFileHash() string

func (*ForceRepairRequest) GetRenterPid added in v0.2.26

func (m *ForceRepairRequest) GetRenterPid() string

func (*ForceRepairRequest) GetSignature added in v0.2.26

func (m *ForceRepairRequest) GetSignature() []byte

func (*ForceRepairRequest) Marshal added in v0.2.26

func (m *ForceRepairRequest) Marshal() (dAtA []byte, err error)

func (*ForceRepairRequest) MarshalTo added in v0.2.26

func (m *ForceRepairRequest) MarshalTo(dAtA []byte) (int, error)

func (*ForceRepairRequest) MarshalToSizedBuffer added in v0.2.26

func (m *ForceRepairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ForceRepairRequest) ProtoMessage added in v0.2.26

func (*ForceRepairRequest) ProtoMessage()

func (*ForceRepairRequest) Reset added in v0.2.26

func (m *ForceRepairRequest) Reset()

func (*ForceRepairRequest) Size added in v0.2.26

func (m *ForceRepairRequest) Size() (n int)

func (*ForceRepairRequest) String added in v0.2.26

func (m *ForceRepairRequest) String() string

func (*ForceRepairRequest) Unmarshal added in v0.2.26

func (m *ForceRepairRequest) Unmarshal(dAtA []byte) error

func (*ForceRepairRequest) XXX_DiscardUnknown added in v0.2.26

func (m *ForceRepairRequest) XXX_DiscardUnknown()

func (*ForceRepairRequest) XXX_Marshal added in v0.2.26

func (m *ForceRepairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ForceRepairRequest) XXX_Merge added in v0.2.26

func (m *ForceRepairRequest) XXX_Merge(src proto.Message)

func (*ForceRepairRequest) XXX_MessageName added in v0.2.26

func (*ForceRepairRequest) XXX_MessageName() string

func (*ForceRepairRequest) XXX_Size added in v0.2.26

func (m *ForceRepairRequest) XXX_Size() int

func (*ForceRepairRequest) XXX_Unmarshal added in v0.2.26

func (m *ForceRepairRequest) XXX_Unmarshal(b []byte) error

type GuardServiceClient

type GuardServiceClient interface {
	SubmitFileStoreMeta(ctx context.Context, in *FileStoreStatus, opts ...grpc.CallOption) (*Result, error)
	SendQuestions(ctx context.Context, in *FileChallengeQuestions, opts ...grpc.CallOption) (*Result, error)
	CheckFileStoreMeta(ctx context.Context, in *CheckFileStoreMetaRequest, opts ...grpc.CallOption) (*FileStoreStatus, error)
	ReadyForChallenge(ctx context.Context, in *ReadyForChallengeRequest, opts ...grpc.CallOption) (*Result, error)
	ForceRepair(ctx context.Context, in *ForceRepairRequest, opts ...grpc.CallOption) (*Result, error)
	ListHostContracts(ctx context.Context, in *ListHostContractsRequest, opts ...grpc.CallOption) (*ContractsList, error)
	RetrieveFileInfo(ctx context.Context, in *ListRenterFileInfoRequest, opts ...grpc.CallOption) (*FileStoreListResponse, error)
}

GuardServiceClient is the client API for GuardService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGuardServiceClient

func NewGuardServiceClient(cc *grpc.ClientConn) GuardServiceClient

type GuardServiceServer

type GuardServiceServer interface {
	SubmitFileStoreMeta(context.Context, *FileStoreStatus) (*Result, error)
	SendQuestions(context.Context, *FileChallengeQuestions) (*Result, error)
	CheckFileStoreMeta(context.Context, *CheckFileStoreMetaRequest) (*FileStoreStatus, error)
	ReadyForChallenge(context.Context, *ReadyForChallengeRequest) (*Result, error)
	ForceRepair(context.Context, *ForceRepairRequest) (*Result, error)
	ListHostContracts(context.Context, *ListHostContractsRequest) (*ContractsList, error)
	RetrieveFileInfo(context.Context, *ListRenterFileInfoRequest) (*FileStoreListResponse, error)
}

GuardServiceServer is the server API for GuardService service.

type ListHostContractsRequest added in v0.3.3

type ListHostContractsRequest struct {
	HostPid              string                               `protobuf:"bytes,1,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	RequesterPid         string                               `protobuf:"bytes,2,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestPageSize      int32                                `` /* 132-byte string literal not displayed */
	RequestPageIndex     int32                                `` /* 136-byte string literal not displayed */
	LastModifyTimeSince  *time.Time                           `` /* 158-byte string literal not displayed */
	LastModifyTimeTo     *time.Time                           `` /* 146-byte string literal not displayed */
	State                ListHostContractsRequest_SelectState `protobuf:"varint,7,opt,name=state,proto3,enum=guard.ListHostContractsRequest_SelectState" json:"state,omitempty" pg:"state"`
	RequestTime          *time.Time                           `protobuf:"bytes,8,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time,omitempty" pg:"request_time"`
	Signature            []byte                               `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-" pg:"-"`
	XXX_unrecognized     []byte                               `json:"-" pg:"-"`
	XXX_sizecache        int32                                `json:"-" pg:"-"`
}

func NewPopulatedListHostContractsRequest added in v0.3.3

func NewPopulatedListHostContractsRequest(r randyGuard, easy bool) *ListHostContractsRequest

func (*ListHostContractsRequest) Descriptor added in v0.3.3

func (*ListHostContractsRequest) Descriptor() ([]byte, []int)

func (*ListHostContractsRequest) GetHostPid added in v0.3.3

func (m *ListHostContractsRequest) GetHostPid() string

func (*ListHostContractsRequest) GetLastModifyTimeSince added in v0.3.3

func (m *ListHostContractsRequest) GetLastModifyTimeSince() *time.Time

func (*ListHostContractsRequest) GetLastModifyTimeTo added in v0.3.3

func (m *ListHostContractsRequest) GetLastModifyTimeTo() *time.Time

func (*ListHostContractsRequest) GetRequestPageIndex added in v0.3.3

func (m *ListHostContractsRequest) GetRequestPageIndex() int32

func (*ListHostContractsRequest) GetRequestPageSize added in v0.3.3

func (m *ListHostContractsRequest) GetRequestPageSize() int32

func (*ListHostContractsRequest) GetRequestTime added in v0.3.3

func (m *ListHostContractsRequest) GetRequestTime() *time.Time

func (*ListHostContractsRequest) GetRequesterPid added in v0.3.3

func (m *ListHostContractsRequest) GetRequesterPid() string

func (*ListHostContractsRequest) GetSignature added in v0.3.3

func (m *ListHostContractsRequest) GetSignature() []byte

func (*ListHostContractsRequest) GetState added in v0.3.3

func (*ListHostContractsRequest) Marshal added in v0.3.3

func (m *ListHostContractsRequest) Marshal() (dAtA []byte, err error)

func (*ListHostContractsRequest) MarshalTo added in v0.3.3

func (m *ListHostContractsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListHostContractsRequest) MarshalToSizedBuffer added in v0.3.3

func (m *ListHostContractsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListHostContractsRequest) ProtoMessage added in v0.3.3

func (*ListHostContractsRequest) ProtoMessage()

func (*ListHostContractsRequest) Reset added in v0.3.3

func (m *ListHostContractsRequest) Reset()

func (*ListHostContractsRequest) Size added in v0.3.3

func (m *ListHostContractsRequest) Size() (n int)

func (*ListHostContractsRequest) String added in v0.3.3

func (m *ListHostContractsRequest) String() string

func (*ListHostContractsRequest) Unmarshal added in v0.3.3

func (m *ListHostContractsRequest) Unmarshal(dAtA []byte) error

func (*ListHostContractsRequest) XXX_DiscardUnknown added in v0.3.3

func (m *ListHostContractsRequest) XXX_DiscardUnknown()

func (*ListHostContractsRequest) XXX_Marshal added in v0.3.3

func (m *ListHostContractsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListHostContractsRequest) XXX_Merge added in v0.3.3

func (m *ListHostContractsRequest) XXX_Merge(src proto.Message)

func (*ListHostContractsRequest) XXX_MessageName added in v0.3.3

func (*ListHostContractsRequest) XXX_MessageName() string

func (*ListHostContractsRequest) XXX_Size added in v0.3.3

func (m *ListHostContractsRequest) XXX_Size() int

func (*ListHostContractsRequest) XXX_Unmarshal added in v0.3.3

func (m *ListHostContractsRequest) XXX_Unmarshal(b []byte) error

type ListHostContractsRequest_SelectState added in v0.3.3

type ListHostContractsRequest_SelectState int32
const (
	ListHostContractsRequest_ALL    ListHostContractsRequest_SelectState = 0
	ListHostContractsRequest_ACTIVE ListHostContractsRequest_SelectState = 1
	ListHostContractsRequest_CLOSED ListHostContractsRequest_SelectState = 2
)

func (ListHostContractsRequest_SelectState) EnumDescriptor added in v0.3.3

func (ListHostContractsRequest_SelectState) EnumDescriptor() ([]byte, []int)

func (ListHostContractsRequest_SelectState) String added in v0.3.3

type ListRenterFileInfoRequest added in v0.4.8

type ListRenterFileInfoRequest struct {
	RenterPid            string     `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	RequesterPid         string     `protobuf:"bytes,2,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestPageSize      int32      `` /* 132-byte string literal not displayed */
	RequestPageIndex     int32      `` /* 136-byte string literal not displayed */
	RequestTime          *time.Time `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time,omitempty" pg:"request_time"`
	Signature            []byte     `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-" pg:"-"`
	XXX_unrecognized     []byte     `json:"-" pg:"-"`
	XXX_sizecache        int32      `json:"-" pg:"-"`
}

func NewPopulatedListRenterFileInfoRequest added in v0.4.8

func NewPopulatedListRenterFileInfoRequest(r randyGuard, easy bool) *ListRenterFileInfoRequest

func (*ListRenterFileInfoRequest) Descriptor added in v0.4.8

func (*ListRenterFileInfoRequest) Descriptor() ([]byte, []int)

func (*ListRenterFileInfoRequest) GetRenterPid added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRenterPid() string

func (*ListRenterFileInfoRequest) GetRequestPageIndex added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequestPageIndex() int32

func (*ListRenterFileInfoRequest) GetRequestPageSize added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequestPageSize() int32

func (*ListRenterFileInfoRequest) GetRequestTime added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequestTime() *time.Time

func (*ListRenterFileInfoRequest) GetRequesterPid added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequesterPid() string

func (*ListRenterFileInfoRequest) GetSignature added in v0.4.8

func (m *ListRenterFileInfoRequest) GetSignature() []byte

func (*ListRenterFileInfoRequest) Marshal added in v0.4.8

func (m *ListRenterFileInfoRequest) Marshal() (dAtA []byte, err error)

func (*ListRenterFileInfoRequest) MarshalTo added in v0.4.8

func (m *ListRenterFileInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListRenterFileInfoRequest) MarshalToSizedBuffer added in v0.4.8

func (m *ListRenterFileInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListRenterFileInfoRequest) ProtoMessage added in v0.4.8

func (*ListRenterFileInfoRequest) ProtoMessage()

func (*ListRenterFileInfoRequest) Reset added in v0.4.8

func (m *ListRenterFileInfoRequest) Reset()

func (*ListRenterFileInfoRequest) Size added in v0.4.8

func (m *ListRenterFileInfoRequest) Size() (n int)

func (*ListRenterFileInfoRequest) String added in v0.4.8

func (m *ListRenterFileInfoRequest) String() string

func (*ListRenterFileInfoRequest) Unmarshal added in v0.4.8

func (m *ListRenterFileInfoRequest) Unmarshal(dAtA []byte) error

func (*ListRenterFileInfoRequest) XXX_DiscardUnknown added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_DiscardUnknown()

func (*ListRenterFileInfoRequest) XXX_Marshal added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRenterFileInfoRequest) XXX_Merge added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_Merge(src proto.Message)

func (*ListRenterFileInfoRequest) XXX_MessageName added in v0.4.8

func (*ListRenterFileInfoRequest) XXX_MessageName() string

func (*ListRenterFileInfoRequest) XXX_Size added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_Size() int

func (*ListRenterFileInfoRequest) XXX_Unmarshal added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_Unmarshal(b []byte) error

type Log

type Log struct {
	ChangeTime           time.Time `protobuf:"bytes,1,opt,name=change_time,json=changeTime,proto3,stdtime" json:"change_time" pg:"change_time"`
	OriginatorPid        string    `protobuf:"bytes,2,opt,name=originator_pid,json=originatorPid,proto3" json:"originator_pid,omitempty" pg:"originator_pid"`
	Change               string    `protobuf:"bytes,3,opt,name=change,proto3" json:"change,omitempty" pg:"change"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedLog added in v0.3.1

func NewPopulatedLog(r randyGuard, easy bool) *Log

func (*Log) Descriptor

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetChange

func (m *Log) GetChange() string

func (*Log) GetChangeTime

func (m *Log) GetChangeTime() time.Time

func (*Log) GetOriginatorPid added in v0.1.2

func (m *Log) GetOriginatorPid() string

func (*Log) Marshal added in v0.0.13

func (m *Log) Marshal() (dAtA []byte, err error)

func (*Log) MarshalTo added in v0.0.13

func (m *Log) MarshalTo(dAtA []byte) (int, error)

func (*Log) MarshalToSizedBuffer added in v0.0.13

func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size added in v0.0.13

func (m *Log) Size() (n int)

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal added in v0.0.13

func (m *Log) Unmarshal(dAtA []byte) error

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge

func (m *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_MessageName added in v0.0.13

func (*Log) XXX_MessageName() string

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

func (m *Log) XXX_Unmarshal(b []byte) error

type ProofOfReplicateChallenge

type ProofOfReplicateChallenge struct {
	ChallengeQuestion    `protobuf:"bytes,1,opt,name=question,proto3,embedded=question" json:"question" pg:"question"`
	ChallengeTime        time.Time `protobuf:"bytes,2,opt,name=challenge_time,json=challengeTime,proto3,stdtime" json:"challenge_time" pg:"challenge_time"`
	GuardPid             string    `protobuf:"bytes,3,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	GuardSignature       []byte    `protobuf:"bytes,4,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	HostAnswer           string    `protobuf:"bytes,5,opt,name=host_answer,json=hostAnswer,proto3" json:"host_answer,omitempty" pg:"host_answer"`
	HostSignTime         time.Time `protobuf:"bytes,6,opt,name=host_sign_time,json=hostSignTime,proto3,stdtime" json:"host_sign_time" pg:"host_sign_time"`
	HostSignature        []byte    `protobuf:"bytes,7,opt,name=host_signature,json=hostSignature,proto3" json:"host_signature,omitempty" pg:"host_signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedProofOfReplicateChallenge added in v0.3.1

func NewPopulatedProofOfReplicateChallenge(r randyGuard, easy bool) *ProofOfReplicateChallenge

func (*ProofOfReplicateChallenge) Descriptor

func (*ProofOfReplicateChallenge) Descriptor() ([]byte, []int)

func (*ProofOfReplicateChallenge) GetChallengeTime

func (m *ProofOfReplicateChallenge) GetChallengeTime() time.Time

func (*ProofOfReplicateChallenge) GetGuardPid added in v0.1.2

func (m *ProofOfReplicateChallenge) GetGuardPid() string

func (*ProofOfReplicateChallenge) GetGuardSignature

func (m *ProofOfReplicateChallenge) GetGuardSignature() []byte

func (*ProofOfReplicateChallenge) GetHostAnswer

func (m *ProofOfReplicateChallenge) GetHostAnswer() string

func (*ProofOfReplicateChallenge) GetHostSignTime

func (m *ProofOfReplicateChallenge) GetHostSignTime() time.Time

func (*ProofOfReplicateChallenge) GetHostSignature

func (m *ProofOfReplicateChallenge) GetHostSignature() []byte

func (*ProofOfReplicateChallenge) Marshal added in v0.0.13

func (m *ProofOfReplicateChallenge) Marshal() (dAtA []byte, err error)

func (*ProofOfReplicateChallenge) MarshalTo added in v0.0.13

func (m *ProofOfReplicateChallenge) MarshalTo(dAtA []byte) (int, error)

func (*ProofOfReplicateChallenge) MarshalToSizedBuffer added in v0.0.13

func (m *ProofOfReplicateChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProofOfReplicateChallenge) ProtoMessage

func (*ProofOfReplicateChallenge) ProtoMessage()

func (*ProofOfReplicateChallenge) Reset

func (m *ProofOfReplicateChallenge) Reset()

func (*ProofOfReplicateChallenge) Size added in v0.0.13

func (m *ProofOfReplicateChallenge) Size() (n int)

func (*ProofOfReplicateChallenge) String

func (m *ProofOfReplicateChallenge) String() string

func (*ProofOfReplicateChallenge) Unmarshal added in v0.0.13

func (m *ProofOfReplicateChallenge) Unmarshal(dAtA []byte) error

func (*ProofOfReplicateChallenge) XXX_DiscardUnknown

func (m *ProofOfReplicateChallenge) XXX_DiscardUnknown()

func (*ProofOfReplicateChallenge) XXX_Marshal

func (m *ProofOfReplicateChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProofOfReplicateChallenge) XXX_Merge

func (m *ProofOfReplicateChallenge) XXX_Merge(src proto.Message)

func (*ProofOfReplicateChallenge) XXX_MessageName added in v0.0.13

func (*ProofOfReplicateChallenge) XXX_MessageName() string

func (*ProofOfReplicateChallenge) XXX_Size

func (m *ProofOfReplicateChallenge) XXX_Size() int

func (*ProofOfReplicateChallenge) XXX_Unmarshal

func (m *ProofOfReplicateChallenge) XXX_Unmarshal(b []byte) error

type ReadyForChallengeRequest added in v0.2.26

type ReadyForChallengeRequest struct {
	RenterPid            string    `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash             string    `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string    `protobuf:"bytes,3,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	ContractId           string    `protobuf:"bytes,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"`
	HostPid              string    `protobuf:"bytes,5,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	PrepareTime          time.Time `protobuf:"bytes,6,opt,name=prepare_time,json=prepareTime,proto3,stdtime" json:"prepare_time" pg:"prepare_time"`
	Signature            []byte    `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedReadyForChallengeRequest added in v0.3.1

func NewPopulatedReadyForChallengeRequest(r randyGuard, easy bool) *ReadyForChallengeRequest

func (*ReadyForChallengeRequest) Descriptor added in v0.2.26

func (*ReadyForChallengeRequest) Descriptor() ([]byte, []int)

func (*ReadyForChallengeRequest) GetContractId added in v0.2.26

func (m *ReadyForChallengeRequest) GetContractId() string

func (*ReadyForChallengeRequest) GetFileHash added in v0.2.26

func (m *ReadyForChallengeRequest) GetFileHash() string

func (*ReadyForChallengeRequest) GetHostPid added in v0.2.26

func (m *ReadyForChallengeRequest) GetHostPid() string

func (*ReadyForChallengeRequest) GetPrepareTime added in v0.2.26

func (m *ReadyForChallengeRequest) GetPrepareTime() time.Time

func (*ReadyForChallengeRequest) GetRenterPid added in v0.2.26

func (m *ReadyForChallengeRequest) GetRenterPid() string

func (*ReadyForChallengeRequest) GetShardHash added in v0.2.26

func (m *ReadyForChallengeRequest) GetShardHash() string

func (*ReadyForChallengeRequest) GetSignature added in v0.2.26

func (m *ReadyForChallengeRequest) GetSignature() []byte

func (*ReadyForChallengeRequest) Marshal added in v0.2.26

func (m *ReadyForChallengeRequest) Marshal() (dAtA []byte, err error)

func (*ReadyForChallengeRequest) MarshalTo added in v0.2.26

func (m *ReadyForChallengeRequest) MarshalTo(dAtA []byte) (int, error)

func (*ReadyForChallengeRequest) MarshalToSizedBuffer added in v0.2.26

func (m *ReadyForChallengeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadyForChallengeRequest) ProtoMessage added in v0.2.26

func (*ReadyForChallengeRequest) ProtoMessage()

func (*ReadyForChallengeRequest) Reset added in v0.2.26

func (m *ReadyForChallengeRequest) Reset()

func (*ReadyForChallengeRequest) Size added in v0.2.26

func (m *ReadyForChallengeRequest) Size() (n int)

func (*ReadyForChallengeRequest) String added in v0.2.26

func (m *ReadyForChallengeRequest) String() string

func (*ReadyForChallengeRequest) Unmarshal added in v0.2.26

func (m *ReadyForChallengeRequest) Unmarshal(dAtA []byte) error

func (*ReadyForChallengeRequest) XXX_DiscardUnknown added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_DiscardUnknown()

func (*ReadyForChallengeRequest) XXX_Marshal added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadyForChallengeRequest) XXX_Merge added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_Merge(src proto.Message)

func (*ReadyForChallengeRequest) XXX_MessageName added in v0.2.26

func (*ReadyForChallengeRequest) XXX_MessageName() string

func (*ReadyForChallengeRequest) XXX_Size added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_Size() int

func (*ReadyForChallengeRequest) XXX_Unmarshal added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_Unmarshal(b []byte) error

type ResponseCode

type ResponseCode int32
const (
	ResponseCode_SUCCESS                ResponseCode = 0
	ResponseCode_SIGNATURE_FORMAT_ERROR ResponseCode = 1
	ResponseCode_COMPUTE_ADDRESS_ERROR  ResponseCode = 2
	ResponseCode_OTHER_ERROR            ResponseCode = 20
)

func (ResponseCode) EnumDescriptor

func (ResponseCode) EnumDescriptor() ([]byte, []int)

func (ResponseCode) String

func (x ResponseCode) String() string

type Result

type Result struct {
	Code                 ResponseCode `protobuf:"varint,1,opt,name=code,proto3,enum=guard.ResponseCode" json:"code,omitempty" pg:"code"`
	Message              string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" pg:"message"`
	ResponseTime         time.Time    `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-" pg:"-"`
	XXX_unrecognized     []byte       `json:"-" pg:"-"`
	XXX_sizecache        int32        `json:"-" pg:"-"`
}

func NewPopulatedResult added in v0.3.1

func NewPopulatedResult(r randyGuard, easy bool) *Result

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetCode

func (m *Result) GetCode() ResponseCode

func (*Result) GetMessage

func (m *Result) GetMessage() string

func (*Result) GetResponseTime

func (m *Result) GetResponseTime() time.Time

func (*Result) Marshal added in v0.0.13

func (m *Result) Marshal() (dAtA []byte, err error)

func (*Result) MarshalTo added in v0.0.13

func (m *Result) MarshalTo(dAtA []byte) (int, error)

func (*Result) MarshalToSizedBuffer added in v0.0.13

func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size added in v0.0.13

func (m *Result) Size() (n int)

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal added in v0.0.13

func (m *Result) Unmarshal(dAtA []byte) error

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_MessageName added in v0.0.13

func (*Result) XXX_MessageName() string

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

type ShardChallengeQuestions added in v0.0.9

type ShardChallengeQuestions struct {
	FileHash             string               `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string               `protobuf:"bytes,2,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	PreparerPid          string               `protobuf:"bytes,3,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	QuestionCount        int32                `protobuf:"varint,4,opt,name=question_count,json=questionCount,proto3" json:"question_count,omitempty" pg:"question_count"`
	Questions            []*ChallengeQuestion `protobuf:"bytes,5,rep,name=questions,proto3" json:"questions,omitempty" pg:"questions"`
	PrepareTime          time.Time            `protobuf:"bytes,6,opt,name=prepare_time,json=prepareTime,proto3,stdtime" json:"prepare_time" pg:"prepare_time"`
	PreparerSignature    []byte               `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-" pg:"-"`
	XXX_unrecognized     []byte               `json:"-" pg:"-"`
	XXX_sizecache        int32                `json:"-" pg:"-"`
}

func NewPopulatedShardChallengeQuestions added in v0.3.1

func NewPopulatedShardChallengeQuestions(r randyGuard, easy bool) *ShardChallengeQuestions

func (*ShardChallengeQuestions) Descriptor added in v0.0.9

func (*ShardChallengeQuestions) Descriptor() ([]byte, []int)

func (*ShardChallengeQuestions) GetFileHash added in v0.0.9

func (m *ShardChallengeQuestions) GetFileHash() string

func (*ShardChallengeQuestions) GetPrepareTime added in v0.0.9

func (m *ShardChallengeQuestions) GetPrepareTime() time.Time

func (*ShardChallengeQuestions) GetPreparerPid added in v0.1.2

func (m *ShardChallengeQuestions) GetPreparerPid() string

func (*ShardChallengeQuestions) GetPreparerSignature added in v0.0.9

func (m *ShardChallengeQuestions) GetPreparerSignature() []byte

func (*ShardChallengeQuestions) GetQuestionCount added in v0.0.9

func (m *ShardChallengeQuestions) GetQuestionCount() int32

func (*ShardChallengeQuestions) GetQuestions added in v0.0.9

func (m *ShardChallengeQuestions) GetQuestions() []*ChallengeQuestion

func (*ShardChallengeQuestions) GetShardHash added in v0.0.9

func (m *ShardChallengeQuestions) GetShardHash() string

func (*ShardChallengeQuestions) Marshal added in v0.0.13

func (m *ShardChallengeQuestions) Marshal() (dAtA []byte, err error)

func (*ShardChallengeQuestions) MarshalTo added in v0.0.13

func (m *ShardChallengeQuestions) MarshalTo(dAtA []byte) (int, error)

func (*ShardChallengeQuestions) MarshalToSizedBuffer added in v0.0.13

func (m *ShardChallengeQuestions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ShardChallengeQuestions) ProtoMessage added in v0.0.9

func (*ShardChallengeQuestions) ProtoMessage()

func (*ShardChallengeQuestions) Reset added in v0.0.9

func (m *ShardChallengeQuestions) Reset()

func (*ShardChallengeQuestions) Size added in v0.0.13

func (m *ShardChallengeQuestions) Size() (n int)

func (*ShardChallengeQuestions) String added in v0.0.9

func (m *ShardChallengeQuestions) String() string

func (*ShardChallengeQuestions) Unmarshal added in v0.0.13

func (m *ShardChallengeQuestions) Unmarshal(dAtA []byte) error

func (*ShardChallengeQuestions) XXX_DiscardUnknown added in v0.0.9

func (m *ShardChallengeQuestions) XXX_DiscardUnknown()

func (*ShardChallengeQuestions) XXX_Marshal added in v0.0.9

func (m *ShardChallengeQuestions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShardChallengeQuestions) XXX_Merge added in v0.0.9

func (m *ShardChallengeQuestions) XXX_Merge(src proto.Message)

func (*ShardChallengeQuestions) XXX_MessageName added in v0.0.13

func (*ShardChallengeQuestions) XXX_MessageName() string

func (*ShardChallengeQuestions) XXX_Size added in v0.0.9

func (m *ShardChallengeQuestions) XXX_Size() int

func (*ShardChallengeQuestions) XXX_Unmarshal added in v0.0.9

func (m *ShardChallengeQuestions) XXX_Unmarshal(b []byte) error

type UnimplementedGuardServiceServer

type UnimplementedGuardServiceServer struct {
}

UnimplementedGuardServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGuardServiceServer) CheckFileStoreMeta

func (*UnimplementedGuardServiceServer) ForceRepair added in v0.2.26

func (*UnimplementedGuardServiceServer) ListHostContracts added in v0.3.3

func (*UnimplementedGuardServiceServer) ReadyForChallenge added in v0.2.26

func (*UnimplementedGuardServiceServer) RetrieveFileInfo added in v0.4.8

func (*UnimplementedGuardServiceServer) SendQuestions

func (*UnimplementedGuardServiceServer) SubmitFileStoreMeta

func (*UnimplementedGuardServiceServer) SubmitFileStoreMeta(ctx context.Context, req *FileStoreStatus) (*Result, error)

Jump to

Keyboard shortcuts

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