Documentation ¶
Index ¶
- func AddHostToNetwork(hostID, network string) *hostNetworksUpdatePayload
- func CreateDNS(networkName string, payload *models.DNSEntry) *models.DNSEntry
- func CreateEgress(networkName, nodeID string, payload *models.EgressGatewayRequest) *models.ApiNode
- func CreateEnrollmentKey(key *models.APIEnrollmentKey) *models.EnrollmentKey
- func CreateExtClient(networkName, nodeID string, extClient models.CustomExtClient)
- func CreateIngress(networkName, nodeID string, failover bool) *models.ApiNode
- func CreateNetwork(payload *models.Network) *models.Network
- func CreateRelay(netID, nodeID string, relayedNodes []string) *models.ApiNode
- func CreateUser(payload *models.User) *models.User
- func DeleteDNS(networkName, domainName string) *string
- func DeleteEgress(networkName, nodeID string) *models.ApiNode
- func DeleteEnrollmentKey(keyID string)
- func DeleteExtClient(networkName, clientID string) *models.SuccessResponse
- func DeleteHost(hostID string, force bool) *models.ApiHost
- func DeleteHostFromNetwork(hostID, network string) *hostNetworksUpdatePayload
- func DeleteIngress(networkName, nodeID string) *models.ApiNode
- func DeleteNetwork(name string) *string
- func DeleteNode(networkName, nodeID string, force bool) *models.SuccessResponse
- func DeleteRelay(netID, nodeID string) *models.ApiNode
- func DeleteUser(username string) *string
- func GetACL(networkName string) *acls.ACLContainer
- func GetAllExtClients() *[]models.ExtClient
- func GetAllMetrics() *models.NetworkMetrics
- func GetCustomDNS(networkName string) *[]models.DNSEntry
- func GetDNS() *[]models.DNSEntry
- func GetEnrollmentKeys() *[]models.EnrollmentKey
- func GetExtClient(networkName, clientID string) *models.ExtClient
- func GetExtClientConfig(networkName, clientID string) string
- func GetHosts() *[]models.ApiHost
- func GetLogs() string
- func GetNetwork(name string) *models.Network
- func GetNetworkDNS(networkName string) *[]models.DNSEntry
- func GetNetworkExtClients(networkName string) *[]models.ExtClient
- func GetNetworkExtMetrics(networkName string) *map[string]models.Metric
- func GetNetworkNodeMetrics(networkName string) *models.NetworkMetrics
- func GetNetworks() *[]models.Network
- func GetNodeByID(networkName, nodeID string) *models.NodeGet
- func GetNodeDNS(networkName string) *[]models.DNSEntry
- func GetNodeMetrics(networkName, nodeID string) *models.Metrics
- func GetNodes(networkName ...string) *[]models.ApiNode
- func GetServerConfig() *cfg.ServerConfig
- func GetServerHealth() string
- func GetServerInfo() *models.ServerConfig
- func GetUser(username string) *models.User
- func HasAdmin() *bool
- func ListUsers() *[]models.ReturnUser
- func PrettyPrint(data any)
- func PushDNS() *string
- func RefreshKeys(hostID string) any
- func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer
- func UpdateExtClient(networkName, clientID string, payload *models.CustomExtClient) *models.ExtClient
- func UpdateHost(hostID string, body *models.ApiHost) *models.ApiHost
- func UpdateNetwork(name string, payload *models.Network) *models.Network
- func UpdateNetworkNodeLimit(name string, nodeLimit int32) *models.Network
- func UpdateNode(networkName, nodeID string, node *models.ApiNode) *models.ApiNode
- func UpdateUser(payload *models.User) *models.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostToNetwork ¶
func AddHostToNetwork(hostID, network string) *hostNetworksUpdatePayload
AddHostToNetwork - add a network to host
func CreateEgress ¶
func CreateEgress(networkName, nodeID string, payload *models.EgressGatewayRequest) *models.ApiNode
CreateEgress - turn a node into an egress
func CreateEnrollmentKey ¶
func CreateEnrollmentKey(key *models.APIEnrollmentKey) *models.EnrollmentKey
CreateEnrollmentKey - create an enrollment key
func CreateExtClient ¶
func CreateExtClient(networkName, nodeID string, extClient models.CustomExtClient)
CreateExtClient - create an external client
func CreateIngress ¶
CreateIngress - turn a node into an ingress
func CreateNetwork ¶
CreateNetwork - creates a network
func CreateRelay ¶
CreateRelay - add relay to a node
func DeleteEgress ¶
DeleteEgress - remove egress role from a node
func DeleteEnrollmentKey ¶
func DeleteEnrollmentKey(keyID string)
DeleteEnrollmentKey - delete an enrollment key
func DeleteExtClient ¶
func DeleteExtClient(networkName, clientID string) *models.SuccessResponse
DeleteExtClient - delete an external client
func DeleteHost ¶
DeleteHost - delete a host
func DeleteHostFromNetwork ¶
func DeleteHostFromNetwork(hostID, network string) *hostNetworksUpdatePayload
DeleteHostFromNetwork - deletes a network from host
func DeleteIngress ¶
DeleteIngress - remove ingress role from a node
func DeleteNode ¶
func DeleteNode(networkName, nodeID string, force bool) *models.SuccessResponse
DeleteNode - delete a node
func DeleteRelay ¶
DeleteRelay - remove relay from a node
func GetACL ¶
func GetACL(networkName string) *acls.ACLContainer
GetACL - fetch all ACLs associated with a network
func GetAllExtClients ¶
GetAllExtClients - fetch all external clients
func GetCustomDNS ¶
GetCustomDNS - fetch user defined DNS entriees
func GetEnrollmentKeys ¶
func GetEnrollmentKeys() *[]models.EnrollmentKey
GetEnrollmentKeys - gets all enrollment keys
func GetExtClient ¶
GetExtClient - fetch a single external client
func GetExtClientConfig ¶
GetExtClientConfig - fetch a wireguard config of an external client
func GetNetworkDNS ¶
GetNetworkDNS - fetch DNS entries associated with a network
func GetNetworkExtClients ¶
GetNetworkExtClients - fetch external clients associated with a network
func GetNetworkExtMetrics ¶
GetNetworkExtMetrics - fetch external client metrics belonging to a network
func GetNetworkNodeMetrics ¶
func GetNetworkNodeMetrics(networkName string) *models.NetworkMetrics
GetNetworkNodeMetrics - fetch an entire network's metrics
func GetNodeByID ¶
GetNodeByID - fetch a single node by ID
func GetNodeDNS ¶
GetNodeDNS - fetch all Node DNS entires
func GetNodeMetrics ¶
GetNodeMetrics - fetch a single node's metrics
func GetServerConfig ¶
func GetServerConfig() *cfg.ServerConfig
GetServerConfig - fetch entire server config including secrets
func GetServerHealth ¶
func GetServerHealth() string
GetServerHealth - fetch server current health status
func GetServerInfo ¶
func GetServerInfo() *models.ServerConfig
GetServerInfo - fetch minimal server info
func UpdateACL ¶
func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer
UpdateACL - update an ACL
func UpdateExtClient ¶
func UpdateExtClient(networkName, clientID string, payload *models.CustomExtClient) *models.ExtClient
UpdateExtClient - update an external client
func UpdateHost ¶
UpdateHost - update a host
func UpdateNetwork ¶
UpdateNetwork - updates a network
func UpdateNetworkNodeLimit ¶
UpdateNetworkNodeLimit - updates a network
func UpdateNode ¶
UpdateNode - update a single node
Types ¶
This section is empty.