Documentation
¶
Index ¶
- func CreateNetBirdOneOffSetupKeyAPI(managementURL string, agentID string, groups string, allowExtraDNSLabels bool, ...) (string, string, error)
- func CreatePostgresDatabaseURL() (string, error)
- func DeleteNetBirdOneOffSetupKeyAPI(managementURL string, key string, token string) error
- func DeleteNetBirdPeer(peerID string, managementURL string, token string) error
- func DownloadFile(url, filepath string, expectedHash string) error
- func GenerateRandomPIN(length int) (string, error)
- func GenerateSerialNumber() (*big.Int, error)
- func GetAgentConfigFile() string
- func GetConfigFile() string
- func GetJWTKey() (string, error)
- func GetMyNetBirdPeerID(ip string, managementURL string, token string) (string, error)
- func GetSHA256Sum(filepath string) ([]byte, error)
- func GetWd() (string, error)
- func NetBirdPeerExists(name string, managementURL string, token string) (bool, error)
- func NewAuthLogger() *log.Logger
- func QueryReleasesEndpoint(url string) ([]byte, error)
- func ReadPEMCertificate(path string) (*x509.Certificate, error)
- func ReadPEMPrivateKey(path string) (*rsa.PrivateKey, error)
- func SaveCertificate(certBytes []byte, path string) error
- func SavePFX(b []byte, path string) error
- func SavePrivateKey(certPrivKey *rsa.PrivateKey, path string) error
- func UTF16BytesToString(b []byte, o binary.ByteOrder) string
- type NetBirdCreateSetupKeyResponse
- type NetBirdPeer
- type OpenUEMLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNetBirdPeer ¶
func DownloadFile ¶
func GenerateSerialNumber ¶
func GetAgentConfigFile ¶
func GetAgentConfigFile() string
func GetConfigFile ¶
func GetConfigFile() string
func GetMyNetBirdPeerID ¶
func GetSHA256Sum ¶
func NetBirdPeerExists ¶
func NewAuthLogger ¶
func QueryReleasesEndpoint ¶
func ReadPEMCertificate ¶
func ReadPEMCertificate(path string) (*x509.Certificate, error)
func ReadPEMPrivateKey ¶
func ReadPEMPrivateKey(path string) (*rsa.PrivateKey, error)
func SaveCertificate ¶
func SavePrivateKey ¶
func SavePrivateKey(certPrivKey *rsa.PrivateKey, path string) error
Types ¶
type NetBirdCreateSetupKeyResponse ¶
type NetBirdCreateSetupKeyResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Expires string `json:"expires"`
Type string `json:"type"`
Valid bool `json:"valid"`
Revoked bool `json:"revoked"`
UsedTimes int `json:"used_times"`
LastUsed string `json:"last_used"`
State string `json:"state"`
AutoGroups []string `json:"auto_groups"`
UpdateAt string `json:"updated_at"`
UsageLimit int `json:"usage_limit"`
Ephemeral bool `json:"ephemeral"`
AllowExtraDNSLabels bool `json:"allow_extra_dns_labels"`
Key string `json:"key"`
}
type NetBirdPeer ¶
type NetBirdPeer struct {
ID string `json:"id"`
}
type OpenUEMLogger ¶
func NewLogger ¶
func NewLogger(logFilename string) *OpenUEMLogger
func (*OpenUEMLogger) Close ¶
func (l *OpenUEMLogger) Close()
Click to show internal directories.
Click to hide internal directories.