Versions in this module Expand all Collapse all v0 v0.1.1 Feb 5, 2025 v0.1.0 Jan 22, 2025 Changes in this version + const GatewayFQDNProxyType + const GatewayNameProxyType + const MyceliumIPSeedLen + const MyceliumKeyLen + const NetworkLightType + const NetworkType + const PublicIPType + const PublicIPv4Type + const QuantumSafeFSType + const VolumeType + const ZDBModeSeq + const ZDBModeUser + const ZDBType + const ZLogsType + const ZMachineLightType + const ZMachineType + const ZMountType + type Backend string + func (b Backend) AsAddress() (string, error) + func (b Backend) Valid(tlsPassthrough bool) error + type Bytes []byte + func BytesFromHex(h string) (Bytes, error) + func MustBytesFromHex(h string) Bytes + func (h *Bytes) UnmarshalText(text []byte) error + func (h Bytes) MarshalText() (text []byte, err error) + type DeviceType string + const HDDDevice + const SSDDevice + func (d DeviceType) String() string + func (d DeviceType) Valid() error + type Encryption struct + Algorithm EncryptionAlgorithm + Key EncryptionKey + func (c *Encryption) Challenge(w io.Writer) error + type EncryptionAlgorithm string + type EncryptionKey []byte + func (k *EncryptionKey) UnmarshalText(data []byte) error + func (k EncryptionKey) MarshalText() ([]byte, error) + func (k EncryptionKey) Valid() error + type GPU string + func (g GPU) Parts() (slot, vendor, device string, err error) + type GatewayBase struct + Backends []Backend + Network *gridtypes.Name + TLSPassthrough bool + func (g GatewayBase) Challenge(w io.Writer) error + func (g GatewayBase) Valid(getter gridtypes.WorkloadGetter) error + type GatewayFQDNProxy struct + FQDN string + func (g GatewayFQDNProxy) Capacity() (gridtypes.Capacity, error) + func (g GatewayFQDNProxy) Challenge(w io.Writer) error + func (g GatewayFQDNProxy) Valid(getter gridtypes.WorkloadGetter) error + type GatewayFQDNResult struct + type GatewayNameProxy struct + Name string + func (g GatewayNameProxy) Capacity() (gridtypes.Capacity, error) + func (g GatewayNameProxy) Challenge(w io.Writer) error + func (g GatewayNameProxy) Valid(getter gridtypes.WorkloadGetter) error + type GatewayProxyResult struct + FQDN string + type MachineCapacity struct + CPU uint8 + Memory gridtypes.Unit + func (c *MachineCapacity) Challenge(w io.Writer) error + func (c *MachineCapacity) String() string + type MachineInterface struct + IP net.IP + Network gridtypes.Name + type MachineMount struct + Mountpoint string + Name gridtypes.Name + func (m *MachineMount) Challenge(w io.Writer) error + type MachineNetwork struct + Interfaces []MachineInterface + Mycelium *MyceliumIP + Planetary bool + PublicIP gridtypes.Name + func (n *MachineNetwork) Challenge(w io.Writer) error + type MachineNetworkLight struct + Interfaces []MachineInterface + Mycelium *MyceliumIP + func (n *MachineNetworkLight) Challenge(w io.Writer) error + type Mycelium struct + Key Bytes + Peers []MyceliumPeer + func (c *Mycelium) Challenge(b io.Writer) error + func (c *Mycelium) Valid() error + type MyceliumIP struct + Network gridtypes.Name + Seed Bytes + func (c *MyceliumIP) Challenge(w io.Writer) error + type MyceliumPeer string + type NetID string + func NetworkID(twin uint32, network gridtypes.Name) NetID + func NetworkIDFromWorkloadID(wl gridtypes.WorkloadID) (NetID, error) + func (i NetID) String() string + type Network struct + Mycelium *Mycelium + NetworkIPRange gridtypes.IPNet + Peers []Peer + Subnet gridtypes.IPNet + WGListenPort uint16 + WGPrivateKey string + func (n Network) Capacity() (gridtypes.Capacity, error) + func (n Network) Challenge(b io.Writer) error + func (n Network) Valid(getter gridtypes.WorkloadGetter) error + type NetworkLight struct + Mycelium Mycelium + Subnet gridtypes.IPNet + func (n NetworkLight) Capacity() (gridtypes.Capacity, error) + func (n NetworkLight) Challenge(b io.Writer) error + func (n NetworkLight) Valid(getter gridtypes.WorkloadGetter) error + type Peer struct + AllowedIPs []gridtypes.IPNet + Endpoint string + Subnet gridtypes.IPNet + WGPublicKey string + func (p *Peer) Valid() error + func (p Peer) Challenge(w io.Writer) error + type PublicIP struct + V4 bool + V6 bool + func (p PublicIP) Capacity() (gridtypes.Capacity, error) + func (p PublicIP) Challenge(w io.Writer) error + func (p PublicIP) Valid(getter gridtypes.WorkloadGetter) error + type PublicIP4 struct + func (p PublicIP4) Capacity() (gridtypes.Capacity, error) + func (p PublicIP4) Challenge(b io.Writer) error + func (p PublicIP4) Valid(getter gridtypes.WorkloadGetter) error + type PublicIPResult struct + Gateway net.IP + IP gridtypes.IPNet + IPv6 gridtypes.IPNet + func (p *PublicIPResult) HasIPv4() bool + func (p *PublicIPResult) HasIPv6() bool + type QuantumCompression struct + Algorithm string + func (c *QuantumCompression) Challenge(w io.Writer) error + type QuantumSafeConfig struct + Backends []ZdbBackend + Encryption Encryption + Prefix string + func (m *QuantumSafeConfig) Challenge(w io.Writer) error + type QuantumSafeFS struct + Cache gridtypes.Unit + Config QuantumSafeFSConfig + func (q QuantumSafeFS) Capacity() (gridtypes.Capacity, error) + func (q QuantumSafeFS) Challenge(w io.Writer) error + func (q QuantumSafeFS) Valid(getter gridtypes.WorkloadGetter) error + type QuantumSafeFSConfig struct + Compression QuantumCompression + Encryption Encryption + ExpectedShards uint32 + Groups []ZdbGroup + MaxZDBDataDirSize uint32 + Meta QuantumSafeMeta + MinimalShards uint32 + RedundantGroups uint32 + RedundantNodes uint32 + func (c *QuantumSafeFSConfig) Challenge(w io.Writer) error + type QuantumSafeMeta struct + Config QuantumSafeConfig + Type string + func (m *QuantumSafeMeta) Challenge(w io.Writer) error + type QuatumSafeFSResult struct + MetricsEndpoint string + Path string + type Volume struct + Size gridtypes.Unit + func (v Volume) Capacity() (gridtypes.Capacity, error) + func (v Volume) Challenge(w io.Writer) error + func (v Volume) Valid(getter gridtypes.WorkloadGetter) error + type VolumeResult struct + ID string + type ZDB struct + Mode ZDBMode + Password string + Public bool + Size gridtypes.Unit + func (z ZDB) Capacity() (cap gridtypes.Capacity, err error) + func (z ZDB) Challenge(b io.Writer) error + func (z ZDB) Valid(getter gridtypes.WorkloadGetter) error + type ZDBMode string + func (m ZDBMode) String() string + func (m ZDBMode) Valid() error + type ZDBResult struct + IPs []string + Namespace string + Port uint + type ZLogs struct + Output string + ZMachine gridtypes.Name + func (z ZLogs) Capacity() (gridtypes.Capacity, error) + func (z ZLogs) Challenge(w io.Writer) error + func (z ZLogs) Valid(getter gridtypes.WorkloadGetter) error + type ZMachine struct + ComputeCapacity MachineCapacity + Corex bool + Entrypoint string + Env map[string]string + FList string + GPU []GPU + Mounts []MachineMount + Network MachineNetwork + Size gridtypes.Unit + func (m *ZMachine) MinRootSize() gridtypes.Unit + func (m *ZMachine) RootSize() gridtypes.Unit + func (v ZMachine) Capacity() (gridtypes.Capacity, error) + func (v ZMachine) Challenge(b io.Writer) error + func (v ZMachine) Valid(getter gridtypes.WorkloadGetter) error + type ZMachineLight struct + ComputeCapacity MachineCapacity + Corex bool + Entrypoint string + Env map[string]string + FList string + GPU []GPU + Mounts []MachineMount + Network MachineNetworkLight + Size gridtypes.Unit + func (m *ZMachineLight) MinRootSize() gridtypes.Unit + func (m *ZMachineLight) RootSize() gridtypes.Unit + func (v ZMachineLight) Capacity() (gridtypes.Capacity, error) + func (v ZMachineLight) Challenge(b io.Writer) error + func (v ZMachineLight) Valid(getter gridtypes.WorkloadGetter) error + type ZMachineLightResult struct + ConsoleURL string + ID string + IP string + MyceliumIP string + type ZMachineResult struct + ConsoleURL string + ID string + IP string + MyceliumIP string + PlanetaryIP string + func (r *ZMachineResult) UnmarshalJSON(data []byte) error + type ZMount struct + Size gridtypes.Unit + func (v ZMount) Capacity() (gridtypes.Capacity, error) + func (v ZMount) Challenge(w io.Writer) error + func (v ZMount) Valid(getter gridtypes.WorkloadGetter) error + type ZMountResult struct + ID string + type ZdbBackend struct + Address string + Namespace string + Password string + func (z *ZdbBackend) Challenge(w io.Writer) error + type ZdbGroup struct + Backends []ZdbBackend + func (z *ZdbGroup) Challenge(w io.Writer) error