Documentation ¶
Index ¶
- type DataAuditResult
- func (a *DataAuditResult) FromGRPCMessage(m grpc.Message) error
- func (a *DataAuditResult) GetAuditEpoch() uint64
- func (a *DataAuditResult) GetComplete() bool
- func (a *DataAuditResult) GetContainerID() *refs.ContainerID
- func (a *DataAuditResult) GetFail() uint32
- func (a *DataAuditResult) GetFailNodes() [][]byte
- func (a *DataAuditResult) GetFailSG() []*refs.ObjectID
- func (a *DataAuditResult) GetHit() uint32
- func (a *DataAuditResult) GetMiss() uint32
- func (a *DataAuditResult) GetPassNodes() [][]byte
- func (a *DataAuditResult) GetPassSG() []*refs.ObjectID
- func (a *DataAuditResult) GetPublicKey() []byte
- func (a *DataAuditResult) GetRequests() uint32
- func (a *DataAuditResult) GetRetries() uint32
- func (a *DataAuditResult) GetVersion() *refs.Version
- func (a *DataAuditResult) MarshalJSON() ([]byte, error)
- func (a *DataAuditResult) SetAuditEpoch(v uint64)
- func (a *DataAuditResult) SetComplete(v bool)
- func (a *DataAuditResult) SetContainerID(v *refs.ContainerID)
- func (a *DataAuditResult) SetFail(v uint32)
- func (a *DataAuditResult) SetFailNodes(v [][]byte)
- func (a *DataAuditResult) SetFailSG(v []*refs.ObjectID)
- func (a *DataAuditResult) SetHit(v uint32)
- func (a *DataAuditResult) SetMiss(v uint32)
- func (a *DataAuditResult) SetPassNodes(v [][]byte)
- func (a *DataAuditResult) SetPassSG(v []*refs.ObjectID)
- func (a *DataAuditResult) SetPublicKey(v []byte)
- func (a *DataAuditResult) SetRequests(v uint32)
- func (a *DataAuditResult) SetRetries(v uint32)
- func (a *DataAuditResult) SetVersion(v *refs.Version)
- func (a *DataAuditResult) StableMarshal(buf []byte) ([]byte, error)
- func (a *DataAuditResult) StableSize() (size int)
- func (a *DataAuditResult) ToGRPCMessage() grpc.Message
- func (a *DataAuditResult) Unmarshal(data []byte) error
- func (a *DataAuditResult) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataAuditResult ¶
type DataAuditResult struct {
// contains filtered or unexported fields
}
DataAuditResult is a unified structure of DataAuditResult message from proto definition.
func (*DataAuditResult) FromGRPCMessage ¶ added in v1.25.0
func (a *DataAuditResult) FromGRPCMessage(m grpc.Message) error
func (*DataAuditResult) GetAuditEpoch ¶
func (a *DataAuditResult) GetAuditEpoch() uint64
GetAuditEpoch returns epoch number when the Data Audit was conducted.
func (*DataAuditResult) GetComplete ¶
func (a *DataAuditResult) GetComplete() bool
GetComplete returns boolean completion statement of audit result.
func (*DataAuditResult) GetContainerID ¶
func (a *DataAuditResult) GetContainerID() *refs.ContainerID
GetContainerID returns container under audit.
func (*DataAuditResult) GetFail ¶
func (a *DataAuditResult) GetFail() uint32
GetFail returns number of sampled objects under audit stored in a way not confirming placement policy or not found at all when checking PoP.
func (*DataAuditResult) GetFailNodes ¶
func (a *DataAuditResult) GetFailNodes() [][]byte
GetFailNodes returns list of storage node public keys that failed at least one PDP.
func (*DataAuditResult) GetFailSG ¶
func (a *DataAuditResult) GetFailSG() []*refs.ObjectID
GetFailSG returns list of Storage Groups that failed audit PoR stage.
func (*DataAuditResult) GetHit ¶
func (a *DataAuditResult) GetHit() uint32
GetHit returns number of sampled objects under audit placed in an optimal way according to the containers placement policy when checking PoP.
func (*DataAuditResult) GetMiss ¶
func (a *DataAuditResult) GetMiss() uint32
GetMiss returns number of sampled objects under audit placed in suboptimal way according to the containers placement policy, but still at a satisfactory level when checking PoP.
func (*DataAuditResult) GetPassNodes ¶
func (a *DataAuditResult) GetPassNodes() [][]byte
GetPassNodes returns list of storage node public keys that passed at least one PDP.
func (*DataAuditResult) GetPassSG ¶
func (a *DataAuditResult) GetPassSG() []*refs.ObjectID
GetPassSG returns list of Storage Groups that passed audit PoR stage.
func (*DataAuditResult) GetPublicKey ¶
func (a *DataAuditResult) GetPublicKey() []byte
GetPublicKey returns public key of the auditing InnerRing node in a binary format.
func (*DataAuditResult) GetRequests ¶
func (a *DataAuditResult) GetRequests() uint32
GetRequests returns number of requests made by PoR audit check to get all headers of the objects inside storage groups.
func (*DataAuditResult) GetRetries ¶
func (a *DataAuditResult) GetRetries() uint32
GetRetries returns number of retries made by PoR audit check to get all headers of the objects inside storage groups.
func (*DataAuditResult) GetVersion ¶
func (a *DataAuditResult) GetVersion() *refs.Version
GetVersion returns version of Data Audit structure.
func (*DataAuditResult) MarshalJSON ¶
func (a *DataAuditResult) MarshalJSON() ([]byte, error)
func (*DataAuditResult) SetAuditEpoch ¶
func (a *DataAuditResult) SetAuditEpoch(v uint64)
SetAuditEpoch sets epoch number when the Data Audit was conducted.
func (*DataAuditResult) SetComplete ¶
func (a *DataAuditResult) SetComplete(v bool)
SetComplete sets boolean completion statement of audit result.
func (*DataAuditResult) SetContainerID ¶
func (a *DataAuditResult) SetContainerID(v *refs.ContainerID)
SetContainerID sets container under audit.
func (*DataAuditResult) SetFail ¶
func (a *DataAuditResult) SetFail(v uint32)
SetFail sets number of sampled objects under audit stored in a way not confirming placement policy or not found at all when checking PoP.
func (*DataAuditResult) SetFailNodes ¶
func (a *DataAuditResult) SetFailNodes(v [][]byte)
SetFailNodes sets list of storage node public keys that failed at least one PDP.
func (*DataAuditResult) SetFailSG ¶
func (a *DataAuditResult) SetFailSG(v []*refs.ObjectID)
SetFailSG sets list of Storage Groups that failed audit PoR stage.
func (*DataAuditResult) SetHit ¶
func (a *DataAuditResult) SetHit(v uint32)
SetHit sets number of sampled objects under audit placed in an optimal way according to the containers placement policy when checking PoP.
func (*DataAuditResult) SetMiss ¶
func (a *DataAuditResult) SetMiss(v uint32)
SetMiss sets number of sampled objects under audit placed in suboptimal way according to the containers placement policy, but still at a satisfactory level when checking PoP.
func (*DataAuditResult) SetPassNodes ¶
func (a *DataAuditResult) SetPassNodes(v [][]byte)
SetPassNodes sets list of storage node public keys that passed at least one PDP.
func (*DataAuditResult) SetPassSG ¶
func (a *DataAuditResult) SetPassSG(v []*refs.ObjectID)
SetPassSG sets list of Storage Groups that passed audit PoR stage.
func (*DataAuditResult) SetPublicKey ¶
func (a *DataAuditResult) SetPublicKey(v []byte)
SetPublicKey sets public key of the auditing InnerRing node in a binary format.
func (*DataAuditResult) SetRequests ¶
func (a *DataAuditResult) SetRequests(v uint32)
SetRequests sets number of requests made by PoR audit check to get all headers of the objects inside storage groups.
func (*DataAuditResult) SetRetries ¶
func (a *DataAuditResult) SetRetries(v uint32)
SetRetries sets number of retries made by PoR audit check to get all headers of the objects inside storage groups.
func (*DataAuditResult) SetVersion ¶
func (a *DataAuditResult) SetVersion(v *refs.Version)
SetVersion sets version of Data Audit structure.
func (*DataAuditResult) StableMarshal ¶
func (a *DataAuditResult) StableMarshal(buf []byte) ([]byte, error)
StableMarshal marshals unified DataAuditResult structure into a protobuf binary format without field order shuffle.
func (*DataAuditResult) StableSize ¶
func (a *DataAuditResult) StableSize() (size int)
StableSize returns byte length of DataAuditResult structure marshaled by StableMarshal function.
func (*DataAuditResult) ToGRPCMessage ¶ added in v1.25.0
func (a *DataAuditResult) ToGRPCMessage() grpc.Message
func (*DataAuditResult) Unmarshal ¶
func (a *DataAuditResult) Unmarshal(data []byte) error
Unmarshal unmarshals DataAuditResult structure from its protobuf binary representation.
func (*DataAuditResult) UnmarshalJSON ¶
func (a *DataAuditResult) UnmarshalJSON(data []byte) error