directory

package
v0.2.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TfgridFarm1

type TfgridFarm1 struct {
	ID              uint64                     `json:"id"`
	ThreebotID      uint64                     `json:"threebot_id"`
	IyoOrganization string                     `json:"iyo_organization"`
	Name            string                     `json:"name"`
	WalletAddresses []string                   `json:"wallet_addresses"`
	Location        TfgridLocation1            `json:"location"`
	Email           string                     `json:"email"`
	ResourcePrices  []TfgridNodeResourcePrice1 `json:"resource_prices"`
}

TfgridFarm1 jsx schema

type TfgridFarmer1

type TfgridFarmer1 struct {
	OwnerThreebotID string   `json:"owner_threebot_id"`
	IyoOrganization string   `json:"iyo_organization"`
	Name            string   `json:"name"`
	WalletAddresses []string `json:"wallet_addresses"`
	Email           string   `json:"email"`
}

TfgridFarmer1 jsx schema

type TfgridLocation1

type TfgridLocation1 struct {
	City      string  `json:"city"`
	Country   string  `json:"country"`
	Continent string  `json:"continent"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

TfgridLocation1 jsx schema

type TfgridNode2

type TfgridNode2 struct {
	NodeID            string                    `json:"node_id"`
	NodeIDv1          string                    `json:"node_id_v1"`
	FarmID            uint64                    `json:"farm_id"`
	OsVersion         string                    `json:"os_version"`
	Created           schema.Date               `json:"created"`
	Updated           schema.Date               `json:"updated"`
	Uptime            int64                     `json:"uptime"`
	Address           string                    `json:"address"`
	Location          TfgridLocation1           `json:"location"`
	TotalResources    TfgridNodeResourceAmount1 `json:"total_resources"`
	UsedResources     TfgridNodeResourceAmount1 `json:"used_resources"`
	ReservedResources TfgridNodeResourceAmount1 `json:"reserved_resources"`
	Proofs            []TfgridNodeProof1        `json:"proofs"`
	Ifaces            []TfgridNodeIface1        `json:"ifaces"`
	PublicConfig      *TfgridNodePublicIface1   `json:"public_config,omitempty"`
	WGPorts           []uint                    `json:"wg_ports"`
	Approved          bool                      `json:"approved"`
	PublicKeyHex      string                    `json:"public_key_hex"`
}

TfgridNode2 jsx schema

type TfgridNodeIface1

type TfgridNodeIface1 struct {
	Name    string           `json:"name"`
	Addrs   []schema.IPRange `json:"addrs"`
	Gateway []net.IP         `json:"gateway"`
}

TfgridNodeIface1 jsx schema

type TfgridNodeProof1

type TfgridNodeProof1 struct {
	Created      schema.Date            `json:"created"`
	HardwareHash string                 `json:"hardware_hash"`
	DiskHash     string                 `json:"disk_hash"`
	Hardware     map[string]interface{} `json:"hardware"`
	Disks        map[string]interface{} `json:"disks"`
	Hypervisor   []string               `json:"hypervisor"`
}

TfgridNodeProof1 jsx schema

func (TfgridNodeProof1) Equal

func (p TfgridNodeProof1) Equal(proof TfgridNodeProof1) bool

Equal test of 2 proofs have the same hashes

type TfgridNodePublicIface1

type TfgridNodePublicIface1 struct {
	Master  string                         `json:"master"`
	Type    TfgridNodePublicIface1TypeEnum `json:"type"`
	Ipv4    schema.IPRange                 `json:"ipv4"`
	Ipv6    schema.IPRange                 `json:"ipv6"`
	Gw4     net.IP                         `json:"gw4"`
	Gw6     net.IP                         `json:"gw6"`
	Version int64                          `json:"version"`
}

TfgridNodePublicIface1 jsx schema

type TfgridNodePublicIface1TypeEnum

type TfgridNodePublicIface1TypeEnum uint8

TfgridNodePublicIface1TypeEnum jsx schema

const (
	TfgridNodePublicIface1TypeMacvlan TfgridNodePublicIface1TypeEnum = iota
	TfgridNodePublicIface1TypeVlan
)

TfgridNodePublicIface1TypeEnum

func (TfgridNodePublicIface1TypeEnum) String

String implements stringer interface

type TfgridNodeResourceAmount1

type TfgridNodeResourceAmount1 struct {
	Cru int64 `json:"cru"`
	Mru int64 `json:"mru"`
	Hru int64 `json:"hru"`
	Sru int64 `json:"sru"`
}

TfgridNodeResourceAmount1 jsx schema

type TfgridNodeResourcePrice1

type TfgridNodeResourcePrice1 struct {
	Currency TfgridNodeResourcePrice1CurrencyEnum `json:"currency"`
	Cru      float64                              `json:"cru"`
	Mru      float64                              `json:"mru"`
	Hru      float64                              `json:"hru"`
	Sru      float64                              `json:"sru"`
	Nru      float64                              `json:"nru"`
}

TfgridNodeResourcePrice1 jsx schema

type TfgridNodeResourcePrice1CurrencyEnum

type TfgridNodeResourcePrice1CurrencyEnum uint8

TfgridNodeResourcePrice1CurrencyEnum jsx schema

const (
	TfgridNodeResourcePrice1CurrencyEUR TfgridNodeResourcePrice1CurrencyEnum = iota
	TfgridNodeResourcePrice1CurrencyUSD
	TfgridNodeResourcePrice1CurrencyTFT
	TfgridNodeResourcePrice1CurrencyAED
	TfgridNodeResourcePrice1CurrencyGBP
)

TfgridNodeResourcePrice1CurrencyEnum jsx schema

func (TfgridNodeResourcePrice1CurrencyEnum) String

String implement stringer interface

Jump to

Keyboard shortcuts

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