audit

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataAuditResultToGRPCMessage

func DataAuditResultToGRPCMessage(a *DataAuditResult) *audit.DataAuditResult

DataAuditResultToGRPCMessage converts unified DataAuditResult structure into gRPC DataAuditResult message.

Types

type DataAuditResult

type DataAuditResult struct {
	// contains filtered or unexported fields
}

DataAuditResult is a unified structure of DataAuditResult message from proto definition.

func DataAuditResultFromGRPCMessage

func DataAuditResultFromGRPCMessage(m *audit.DataAuditResult) *DataAuditResult

DataAuditResultFromGRPCMessage converts gRPC message DataAuditResult into unified DataAuditResult structure.

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) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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