package
1.0.1
Repository: https://github.com/masnax/microtest.git
Documentation: pkg.go.dev

# Functions

ParseAddrPort parses an IPv4/IPv6 address and port string into an AddrPort.
ParseAddrPorts parses a list of IPv4/IPv6 address and port strings into an AddrPorts.
ParseX509Certificate decodes the given PEM encoded string and parses it into an X509Certificate.

# Constants

ClusterCertificateName represents the name of the cluster certificate used by the core API.
DatabaseNotReady indicates the database is not yet ready for use.
DatabaseOffline indicates that the database is offline.
DatabaseReady indicates the database is open for use.
DatabaseStarting indicates the daemon is running, but dqlite is still in the process of starting up.
DatabaseWaiting indicates the database is blocked on a schema or API extension upgrade.
MemberNeedsUpgrade should be the MemberStatus if the system needs to receive a schema upgrade to be compatible with other cluster members.
MemberNotFound should be the MemberStatus when the node was not found in dqlite.
MemberNotTrusted should be the MemberStatus when there is no local yaml entry for this node.
MemberOnline should be the MemberStatus when the node is online and reachable.
MemberUnreachable should be the MemberStatus when we were not able to connect to the node.
MemberUpgrading should be the MemberStatus if the system is awaiting or performing a schema upgrade.
ServerCertificateName represents the name of the identifying certificate of a cluster member.

# Structs

AddrPort is a wrapper for netip.AddrPort for which (json/yaml).(Marshaller/Unmarshaller) are implemented.
ClusterCertificatePut represents the content of a new cluster keypair and CA.
ClusterMember represents information about a dqlite cluster member.
ClusterMemberLocal represents local information about a new cluster member.
DaemonConfig is the in memory version of the local daemon.yaml file.
KeyPair holds a certificate together with its private key and optional CA.
ServerConfig represents the mutable fields of an additional network listener.
X509Certificate is a json/yaml marshallable/unmarshallable type wrapper for x509.Certificate.

# Type aliases

AddrPorts is a defined type for a slice of AddrPort.
CertificateName represents the name of a certificate.
DatabaseStatus is the current status of the database.
EndpointPrefix is a type specifying the endpoint on which the resource exists.
MemberStatus represents the online status of a cluster member.