Documentation ¶
Index ¶
- func NewHashTree(tree *v1.MixedHashTree) (*hashtree.HashTree, error)
- type Client
- func (c *Client) GetLatestVersion() (uint64, error)
- func (c *Client) GetNNSSubnetID() (*principal.Principal, error)
- func (c *Client) GetNodeListSince(version uint64) (NodeMap, error)
- func (c *Client) GetSubnetDetails(subnetID principal.Principal) (*v1.SubnetRecord, error)
- func (c *Client) GetSubnetIDs() ([]principal.Principal, error)
- func (c *Client) GetSubnetPublicKey(subnetID principal.Principal) ([]byte, error)
- type DataCenterMap
- type DataProvider
- func (d DataProvider) GetCertifiedChangesSince(version uint64, publicKey []byte) ([]VersionedRecord, uint64, error)
- func (d DataProvider) GetChangesSince(version uint64) ([]*v1.RegistryDelta, uint64, error)
- func (d DataProvider) GetLatestVersion() (uint64, error)
- func (d DataProvider) GetValue(key []byte, version *uint64) ([]byte, uint64, error)
- func (d DataProvider) GetValueUpdate(key []byte, version *uint64) ([]byte, uint64, error)
- type IPv4Interface
- type NodeDetails
- type NodeMap
- type NodeOperatorMap
- type NodeProviderMap
- type VersionedRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHashTree ¶
func NewHashTree(tree *v1.MixedHashTree) (*hashtree.HashTree, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetLatestVersion ¶
func (*Client) GetNodeListSince ¶
func (*Client) GetSubnetDetails ¶
type DataCenterMap ¶
type DataCenterMap map[string][]NodeDetails
type DataProvider ¶
type DataProvider struct {
// contains filtered or unexported fields
}
func NewDataProvider ¶
func NewDataProvider() (*DataProvider, error)
func (DataProvider) GetCertifiedChangesSince ¶
func (d DataProvider) GetCertifiedChangesSince(version uint64, publicKey []byte) ([]VersionedRecord, uint64, error)
func (DataProvider) GetChangesSince ¶
func (d DataProvider) GetChangesSince(version uint64) ([]*v1.RegistryDelta, uint64, error)
GetChangesSince returns the changes since the given version.
func (DataProvider) GetLatestVersion ¶
func (d DataProvider) GetLatestVersion() (uint64, error)
func (DataProvider) GetValue ¶
GetValue returns the value of the given key and its version. If version is nil, the latest version is returned.
func (DataProvider) GetValueUpdate ¶
GetValueUpdate returns the value of the given key and its version.
type IPv4Interface ¶
type NodeDetails ¶
type NodeMap ¶
type NodeMap map[string]NodeDetails
func (NodeMap) ByDataCenter ¶
func (n NodeMap) ByDataCenter() DataCenterMap
func (NodeMap) ByNodeOperator ¶
func (n NodeMap) ByNodeOperator() NodeOperatorMap
func (NodeMap) ByNodeProvider ¶
func (n NodeMap) ByNodeProvider() NodeProviderMap
type NodeOperatorMap ¶
type NodeOperatorMap map[string][]NodeDetails
type NodeProviderMap ¶
type NodeProviderMap map[string][]NodeDetails
type VersionedRecord ¶
Click to show internal directories.
Click to hide internal directories.