Documentation
¶
Index ¶
- Constants
- func HashPayload(payload []byte) []byte
- func MarshalDeterministic(msg proto.Message) ([]byte, error)
- func ResourceSummaryFromCluster(cluster inventoryv1.Cluster, activeLeases uint32, softwareVersion string, ...) inventoryv1.SnapshotResourceSummary
- func ValidateNonce(nonce []byte) error
- func ValidateSnapshot(snapshot *Snapshot) error
- type Builder
- type Collector
- type EvidenceSection
- type PayloadSource
- type Snapshot
- type SnapshotRequest
- type StatusClient
- type StatusPayloadSource
- type StatusPayloadSourceConfig
Constants ¶
View Source
const ( SnapshotPayloadSchemaVersion uint32 = 1 EvidenceSectionProviderStatus = "akash.provider.v1.Status" )
View Source
const NonceSize = 32
Variables ¶
This section is empty.
Functions ¶
func HashPayload ¶
func ResourceSummaryFromCluster ¶
func ResourceSummaryFromCluster( cluster inventoryv1.Cluster, activeLeases uint32, softwareVersion string, softwareSignature []byte, softwareIdentity *inventoryv1.SoftwareIdentity, ) inventoryv1.SnapshotResourceSummary
func ValidateNonce ¶
func ValidateSnapshot ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(payload PayloadSource, signer ptypes.ProviderSigner) (*Builder, error)
type Collector ¶
type Collector interface {
Name() string
Collect(context.Context) (EvidenceSection, error)
}
type EvidenceSection ¶
type PayloadSource ¶
type PayloadSource interface {
Payload(context.Context, SnapshotRequest) ([]byte, error)
}
type SnapshotRequest ¶
type SnapshotRequest struct {
Nonce []byte
}
type StatusClient ¶
type StatusClient interface {
StatusV1(context.Context) (*providerv1.Status, error)
}
type StatusPayloadSource ¶
type StatusPayloadSource struct {
// contains filtered or unexported fields
}
func NewStatusPayloadSource ¶
func NewStatusPayloadSource(cfg StatusPayloadSourceConfig) (*StatusPayloadSource, error)
func (*StatusPayloadSource) Payload ¶
func (s *StatusPayloadSource) Payload(ctx context.Context, req SnapshotRequest) ([]byte, error)
type StatusPayloadSourceConfig ¶
type StatusPayloadSourceConfig struct {
Status StatusClient
Provider string
ChainID string
SoftwareVersion string
SoftwareSignature []byte
SoftwareIdentity *inventoryv1.SoftwareIdentity
Now func() time.Time
Collectors []Collector
}
Click to show internal directories.
Click to hide internal directories.