audit

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_audit_grpc_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DataAuditResult

type DataAuditResult struct {

	// Data Audit Result format version. Effectively, the version of API library
	// used to report DataAuditResult structure.
	Version *grpc.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Epoch number when the Data Audit was conducted
	AuditEpoch uint64 `protobuf:"fixed64,2,opt,name=audit_epoch,json=auditEpoch,proto3" json:"audit_epoch,omitempty"`
	// Container under audit
	ContainerId *grpc.ContainerID `protobuf:"bytes,3,opt,name=container_id,json=containerID,proto3" json:"container_id,omitempty"`
	// Public key of the auditing InnerRing node in a binary format
	PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Shows if Data Audit process was complete in time or if it was cancelled
	Complete bool `protobuf:"varint,5,opt,name=complete,proto3" json:"complete,omitempty"`
	// Number of request done at PoR stage
	Requests uint32 `protobuf:"varint,6,opt,name=requests,proto3" json:"requests,omitempty"`
	// Number of retries done at PoR stage
	Retries uint32 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"`
	// List of Storage Groups that passed audit PoR stage
	PassSg []*grpc.ObjectID `protobuf:"bytes,8,rep,name=pass_sg,json=passSG,proto3" json:"pass_sg,omitempty"`
	// List of Storage Groups that failed audit PoR stage
	FailSg []*grpc.ObjectID `protobuf:"bytes,9,rep,name=fail_sg,json=failSG,proto3" json:"fail_sg,omitempty"`
	// Number of sampled objects under the audit placed in an optimal way according to
	// the containers placement policy when checking PoP
	Hit uint32 `protobuf:"varint,10,opt,name=hit,proto3" json:"hit,omitempty"`
	// Number of sampled objects under the audit placed in suboptimal way according to
	// the containers placement policy, but still at a satisfactory level when
	// checking PoP
	Miss uint32 `protobuf:"varint,11,opt,name=miss,proto3" json:"miss,omitempty"`
	// Number of sampled objects under the audit stored inconsistently with the
	// placement policy or not found at all when checking PoP
	Fail uint32 `protobuf:"varint,12,opt,name=fail,proto3" json:"fail,omitempty"`
	// List of storage node public keys that passed at least one PDP
	PassNodes [][]byte `protobuf:"bytes,13,rep,name=pass_nodes,json=passNodes,proto3" json:"pass_nodes,omitempty"`
	// List of storage node public keys that failed at least one PDP
	FailNodes [][]byte `protobuf:"bytes,14,rep,name=fail_nodes,json=failNodes,proto3" json:"fail_nodes,omitempty"`
	// contains filtered or unexported fields
}

DataAuditResult keeps record of conducted Data Audits. The detailed report is generated separately.

func (*DataAuditResult) Descriptor deprecated

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

Deprecated: Use DataAuditResult.ProtoReflect.Descriptor instead.

func (*DataAuditResult) GetAuditEpoch

func (x *DataAuditResult) GetAuditEpoch() uint64

func (*DataAuditResult) GetComplete

func (x *DataAuditResult) GetComplete() bool

func (*DataAuditResult) GetContainerId

func (x *DataAuditResult) GetContainerId() *grpc.ContainerID

func (*DataAuditResult) GetFail

func (x *DataAuditResult) GetFail() uint32

func (*DataAuditResult) GetFailNodes

func (x *DataAuditResult) GetFailNodes() [][]byte

func (*DataAuditResult) GetFailSg

func (x *DataAuditResult) GetFailSg() []*grpc.ObjectID

func (*DataAuditResult) GetHit

func (x *DataAuditResult) GetHit() uint32

func (*DataAuditResult) GetMiss

func (x *DataAuditResult) GetMiss() uint32

func (*DataAuditResult) GetPassNodes

func (x *DataAuditResult) GetPassNodes() [][]byte

func (*DataAuditResult) GetPassSg

func (x *DataAuditResult) GetPassSg() []*grpc.ObjectID

func (*DataAuditResult) GetPublicKey

func (x *DataAuditResult) GetPublicKey() []byte

func (*DataAuditResult) GetRequests

func (x *DataAuditResult) GetRequests() uint32

func (*DataAuditResult) GetRetries

func (x *DataAuditResult) GetRetries() uint32

func (*DataAuditResult) GetVersion

func (x *DataAuditResult) GetVersion() *grpc.Version

func (*DataAuditResult) ProtoMessage

func (*DataAuditResult) ProtoMessage()

func (*DataAuditResult) ProtoReflect

func (x *DataAuditResult) ProtoReflect() protoreflect.Message

func (*DataAuditResult) Reset

func (x *DataAuditResult) Reset()

func (*DataAuditResult) SetAuditEpoch

func (x *DataAuditResult) SetAuditEpoch(v uint64)

SetAuditEpoch is an AuditEpoch field setter.

func (*DataAuditResult) SetComplete

func (x *DataAuditResult) SetComplete(v bool)

SetComplete is a Complete field setter.

func (*DataAuditResult) SetContainerId

func (x *DataAuditResult) SetContainerId(v *refs.ContainerID)

SetContainerId is a ContainerId field setter.

func (*DataAuditResult) SetFail

func (x *DataAuditResult) SetFail(v uint32)

SetFail is a Fail field setter.

func (*DataAuditResult) SetFailNodes

func (x *DataAuditResult) SetFailNodes(v [][]byte)

SetFailNodes is a FailNodes field setter.

func (*DataAuditResult) SetFailSg

func (x *DataAuditResult) SetFailSg(v []*refs.ObjectID)

SetFailSg is a FailSg field setter.

func (*DataAuditResult) SetHit

func (x *DataAuditResult) SetHit(v uint32)

SetHit is a Hit field setter.

func (*DataAuditResult) SetMiss

func (x *DataAuditResult) SetMiss(v uint32)

SetMiss is a Miss field setter.

func (*DataAuditResult) SetPassNodes

func (x *DataAuditResult) SetPassNodes(v [][]byte)

SetPassNodes is a PassNodes field setter.

func (*DataAuditResult) SetPassSg

func (x *DataAuditResult) SetPassSg(v []*refs.ObjectID)

SetPassSg is a PassSg field setter.

func (*DataAuditResult) SetPublicKey

func (x *DataAuditResult) SetPublicKey(v []byte)

SetPublicKey is a PublicKey field setter.

func (*DataAuditResult) SetRequests

func (x *DataAuditResult) SetRequests(v uint32)

SetRequests is a Requests field setter.

func (*DataAuditResult) SetRetries

func (x *DataAuditResult) SetRetries(v uint32)

SetRetries is a Retries field setter.

func (*DataAuditResult) SetVersion

func (x *DataAuditResult) SetVersion(v *refs.Version)

SetVersion is a Version field setter.

func (*DataAuditResult) String

func (x *DataAuditResult) String() string

Jump to

Keyboard shortcuts

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