Documentation ¶
Index ¶
- type TfgridNetworkNetResource1
- type TfgridReservation1
- type TfgridReservation1NextActionEnum
- type TfgridReservationContainer1
- type TfgridReservationContainerMount1
- type TfgridReservationData1
- type TfgridReservationNetwork1
- type TfgridReservationNetworkConnection1
- type TfgridReservationResult1
- type TfgridReservationResult1CategoryEnum
- type TfgridReservationResult1StateEnum
- type TfgridReservationSigningRequest1
- type TfgridReservationSigningSignature1
- type TfgridReservationStatsaggregator1
- type TfgridReservationVolume1
- type TfgridReservationVolume1TypeEnum
- type TfgridReservationWorkload1
- type TfgridReservationWorkload1TypeEnum
- type TfgridReservationZdb1
- type TfgridReservationZdb1DiskTypeEnum
- type TfgridReservationZdb1ModeEnum
- type TfgridWorkloadsReservationK8S1
- type WireguardPeer1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TfgridNetworkNetResource1 ¶
type TfgridNetworkNetResource1 struct { NodeID string `json:"node_id"` IPRange schema.IPRange `json:"iprange"` WireguardPrivateKeyEncrypted string `json:"wireguard_private_key_encrypted"` WireguardPublicKey string `json:"wireguard_public_key"` WireguardListenPort int64 `json:"wireguard_listen_port"` Peers []WireguardPeer1 `json:"peers"` }
TfgridNetworkNetResource1 jsx Schema
func (TfgridNetworkNetResource1) ToProvisionType ¶
func (r TfgridNetworkNetResource1) ToProvisionType() (pkg.NetResource, error)
ToProvisionType converts TfgridNetworkNetResource1 to pkg.NetResource
type TfgridReservation1 ¶
type TfgridReservation1 struct { ID uint `json:"id"` JSON string `json:"json"` DataReservation TfgridReservationData1 `json:"data_reservation"` CustomerTid int64 `json:"customer_tid"` CustomerSignature string `json:"customer_signature"` NextAction TfgridReservation1NextActionEnum `json:"next_action"` SignaturesProvision []TfgridReservationSigningSignature1 `json:"signatures_provision"` SignaturesFarmer []TfgridReservationSigningSignature1 `json:"signatures_farmer"` SignaturesDelete []TfgridReservationSigningSignature1 `json:"signatures_delete"` Epoch schema.Date `json:"epoch"` Results []TfgridReservationResult1 `json:"results"` }
TfgridReservation1 jsx schema
type TfgridReservation1NextActionEnum ¶
type TfgridReservation1NextActionEnum uint8
TfgridReservation1NextActionEnum jsx schema
const ( TfgridReservation1NextActionCreate TfgridReservation1NextActionEnum = iota TfgridReservation1NextActionSign TfgridReservation1NextActionPay TfgridReservation1NextActionDeploy TfgridReservation1NextActionDelete TfgridReservation1NextActionInvalid TfgridReservation1NextActionDeleted )
TfgridReservation1NextActionEnum enum
func (TfgridReservation1NextActionEnum) String ¶
func (e TfgridReservation1NextActionEnum) String() string
type TfgridReservationContainer1 ¶
type TfgridReservationContainer1 struct { WorkloadID int64 `json:"workload_id"` NodeID string `json:"node_id"` Flist string `json:"flist"` HubURL string `json:"hub_url"` Environment map[string]string `json:"environment"` SecretEnvironment map[string]string `json:"secret_environment"` Entrypoint string `json:"entrypoint"` Interactive bool `json:"interactive"` Volumes []TfgridReservationContainerMount1 `json:"volumes"` NetworkConnection []TfgridReservationNetworkConnection1 `json:"network_connection"` StatsAggregator []TfgridReservationStatsaggregator1 `json:"stats_aggregator"` }
TfgridReservationContainer1 jsx schema
func (TfgridReservationContainer1) ToProvisionType ¶
func (c TfgridReservationContainer1) ToProvisionType() (provision.Container, string, error)
ToProvisionType converts TfgridReservationContainer1 to provision.Container
type TfgridReservationContainerMount1 ¶
type TfgridReservationContainerMount1 struct { VolumeID string `json:"volume_id"` Mountpoint string `json:"mountpoint"` }
TfgridReservationContainerMount1 jsx schema
type TfgridReservationData1 ¶
type TfgridReservationData1 struct { Description string `json:"description"` SigningRequestProvision TfgridReservationSigningRequest1 `json:"signing_request_provision"` SigningRequestDelete TfgridReservationSigningRequest1 `json:"signing_request_delete"` Containers []TfgridReservationContainer1 `json:"containers"` Volumes []TfgridReservationVolume1 `json:"volumes"` Zdbs []TfgridReservationZdb1 `json:"zdbs"` Networks []TfgridReservationNetwork1 `json:"networks"` Kubernetes []TfgridWorkloadsReservationK8S1 `json:"kubernetes"` ExpirationProvisioning schema.Date `json:"expiration_provisioning"` ExpirationReservation schema.Date `json:"expiration_reservation"` }
TfgridReservationData1 jsx schema
type TfgridReservationNetwork1 ¶
type TfgridReservationNetwork1 struct { Name string `json:"name"` WorkloadID int64 `json:"workload_id"` Iprange schema.IPRange `json:"iprange"` StatsAggregator []TfgridReservationStatsaggregator1 `json:"stats_aggregator"` NetworkResources []TfgridNetworkNetResource1 `json:"network_resources"` }
TfgridReservationNetwork1 jsx Schema
func (TfgridReservationNetwork1) ToProvisionType ¶
func (n TfgridReservationNetwork1) ToProvisionType() (pkg.Network, error)
ToProvisionType convert TfgridReservationNetwork1 to pkg.Network
type TfgridReservationNetworkConnection1 ¶
type TfgridReservationNetworkConnection1 struct { NetworkID string `json:"network_id"` Ipaddress net.IP `json:"ipaddress"` PublicIP6 bool `json:"public_ip6"` }
TfgridReservationNetworkConnection1 jsx schema
type TfgridReservationResult1 ¶
type TfgridReservationResult1 struct { Category TfgridReservationResult1CategoryEnum `json:"category"` WorkloadID string `json:"workload_id"` DataJSON string `json:"data_json"` Signature []byte `json:"signature"` State TfgridReservationResult1StateEnum `json:"state"` Message string `json:"message"` Epoch schema.Date `json:"epoch"` }
TfgridReservationResult1 jsx schema
type TfgridReservationResult1CategoryEnum ¶
type TfgridReservationResult1CategoryEnum uint8
TfgridReservationResult1CategoryEnum jsx schema
const ( TfgridReservationResult1CategoryZdb TfgridReservationResult1CategoryEnum = iota TfgridReservationResult1CategoryContainer TfgridReservationResult1CategoryNetwork TfgridReservationResult1CategoryVolume )
TfgridReservationResult1CategoryEnum
func (TfgridReservationResult1CategoryEnum) String ¶
func (e TfgridReservationResult1CategoryEnum) String() string
String implements Stringer interface
type TfgridReservationResult1StateEnum ¶
type TfgridReservationResult1StateEnum uint8
TfgridReservationResult1StateEnum jsx schema
const ( TfgridReservationResult1StateError TfgridReservationResult1StateEnum = iota TfgridReservationResult1StateOk TfgridReservationResult1StateDeleted )
TfgridReservationResult1StateEnum
func (TfgridReservationResult1StateEnum) String ¶
func (e TfgridReservationResult1StateEnum) String() string
type TfgridReservationSigningRequest1 ¶
type TfgridReservationSigningRequest1 struct { Signers []int64 `json:"signers"` QuorumMin int64 `json:"quorum_min"` }
TfgridReservationSigningRequest1 jsx schema
type TfgridReservationSigningSignature1 ¶
type TfgridReservationSigningSignature1 struct { Tid int64 `json:"tid"` Signature string `json:"signature"` Epoch schema.Date `json:"epoch"` }
TfgridReservationSigningSignature1 jsx schema
type TfgridReservationStatsaggregator1 ¶
type TfgridReservationStatsaggregator1 struct { Addr string `json:"addr"` Port int64 `json:"port"` Secret string `json:"secret"` }
TfgridReservationStatsaggregator1 jsx schema
type TfgridReservationVolume1 ¶
type TfgridReservationVolume1 struct { WorkloadID int64 `json:"workload_id"` NodeID string `json:"node_id"` Size int64 `json:"size"` Type TfgridReservationVolume1TypeEnum `json:"type"` StatsAggregator []TfgridReservationStatsaggregator1 `json:"stats_aggregator"` }
TfgridReservationVolume1 jsx schema
func (TfgridReservationVolume1) ToProvisionType ¶
func (v TfgridReservationVolume1) ToProvisionType() (provision.Volume, string, error)
ToProvisionType converts TfgridReservationVolume1 to provision.Volume
type TfgridReservationVolume1TypeEnum ¶
type TfgridReservationVolume1TypeEnum uint8
TfgridReservationVolume1TypeEnum jsx schema
const ( TfgridReservationVolume1TypeHDD TfgridReservationVolume1TypeEnum = iota TfgridReservationVolume1TypeSSD )
TfgridReservationVolume1TypeEnum
func (TfgridReservationVolume1TypeEnum) String ¶
func (e TfgridReservationVolume1TypeEnum) String() string
String implements Stringer interface
type TfgridReservationWorkload1 ¶
type TfgridReservationWorkload1 struct { WorkloadID string `json:"workload_id,omitempty"` Type TfgridReservationWorkload1TypeEnum `json:"type,omitempty"` Workload json.RawMessage `json:"content,omitempty"` User string `json:"user,omitempty"` Created int64 `json:"created,omitempty"` Duration int64 `json:"duration,omitempty"` Signature string `json:"signature,omitempty"` ToDelete bool `json:"to_delete,omitempty"` }
TfgridReservationWorkload1 jsx schema
type TfgridReservationWorkload1TypeEnum ¶
type TfgridReservationWorkload1TypeEnum uint8
TfgridReservationWorkload1TypeEnum jsx schema
const ( TfgridReservationWorkload1TypeZdb TfgridReservationWorkload1TypeEnum = iota TfgridReservationWorkload1TypeContainer TfgridReservationWorkload1TypeVolume TfgridReservationWorkload1TypeNetwork TfgridReservationWorkload1TypeKubernetes )
TfgridReservationWorkload1TypeEnum
func (TfgridReservationWorkload1TypeEnum) String ¶
func (e TfgridReservationWorkload1TypeEnum) String() string
String implements Stringer interface
type TfgridReservationZdb1 ¶
type TfgridReservationZdb1 struct { WorkloadID int64 `json:"workload_id"` NodeID string `json:"node_id"` ReservationID int64 `json:"reservation_id"` Size int64 `json:"size"` Mode TfgridReservationZdb1ModeEnum `json:"mode"` Password string `json:"password"` DiskType TfgridReservationZdb1DiskTypeEnum `json:"disk_type"` Public bool `json:"public"` StatsAggregator []TfgridReservationStatsaggregator1 `json:"stats_aggregator"` }
TfgridReservationZdb1 jsx schema
func (TfgridReservationZdb1) ToProvisionType ¶
func (z TfgridReservationZdb1) ToProvisionType() (provision.ZDB, string, error)
ToProvisionType converts TfgridReservationZdb1 to provision.ZDB
type TfgridReservationZdb1DiskTypeEnum ¶
type TfgridReservationZdb1DiskTypeEnum uint8
TfgridReservationZdb1DiskTypeEnum jsx schema
const ( TfgridReservationZdb1DiskTypeHdd TfgridReservationZdb1DiskTypeEnum = iota TfgridReservationZdb1DiskTypeSsd )
TfgridReservationZdb1DiskTypeEnum
func (TfgridReservationZdb1DiskTypeEnum) String ¶
func (e TfgridReservationZdb1DiskTypeEnum) String() string
String implement Stringer interface
type TfgridReservationZdb1ModeEnum ¶
type TfgridReservationZdb1ModeEnum uint8
TfgridReservationZdb1ModeEnum jsx schema
const ( TfgridReservationZdb1ModeSeq TfgridReservationZdb1ModeEnum = iota TfgridReservationZdb1ModeUser )
TfgridReservationZdb1ModeEnum
func (TfgridReservationZdb1ModeEnum) String ¶
func (e TfgridReservationZdb1ModeEnum) String() string
type TfgridWorkloadsReservationK8S1 ¶
type TfgridWorkloadsReservationK8S1 struct { WorkloadID int64 `json:"workload_id"` NodeID string `json:"node_id"` Size uint8 `json:"size"` NetworkID string `json:"network_id"` Ipaddress net.IP `json:"ipaddress"` ClusterSecret string `json:"cluster_secret"` MasterIps []net.IP `json:"master_ips"` SSHKeys []string `json:"ssh_keys"` StatsAggregator []TfgridReservationStatsaggregator1 `json:"stats_aggregator"` FarmerTid int64 `json:"farmer_tid"` }
TfgridWorkloadsReservationK8S1 struct
func (TfgridWorkloadsReservationK8S1) ToProvisionType ¶
func (k TfgridWorkloadsReservationK8S1) ToProvisionType() (provision.Kubernetes, string, error)
ToProvisionType converts type to internal provision type
type WireguardPeer1 ¶
type WireguardPeer1 struct { PublicKey string `json:"public_key"` Endpoint string `json:"endpoint"` AllowedIPs []string `json:"allowed_iprange"` IPRange schema.IPRange `json:"iprange"` }
WireguardPeer1 jsx Schema
func (WireguardPeer1) ToProvisionType ¶
func (p WireguardPeer1) ToProvisionType() (pkg.Peer, error)
ToProvisionType converts WireguardPeer1 to pkg.Peer