Help us shape the future of Go! Take the 2026 Go Developer Survey

ncert

package
v0.1.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NebulaCertificate

type NebulaCertificate struct {
	Certinfo NebulaCertificateInfo
	Crt      string
	Key      string
}

func GenerateCert

func GenerateCert(name string, durationSeconds int, groups string, ipCIDR string, subnets []string, publickey string) (NebulaCertificate, string, error)

type NebulaCertificateInfo

type NebulaCertificateInfo struct {
	Details struct {
		Groups    []string      `json:"groups"`
		Ips       []string      `json:"ips"`
		Isca      bool          `json:"isCa"`
		Issuer    string        `json:"issuer"`
		Name      string        `json:"name"`
		Notafter  time.Time     `json:"notAfter"`
		Notbefore time.Time     `json:"notBefore"`
		Publickey string        `json:"publicKey"`
		Subnets   []interface{} `json:"subnets"`
	} `json:"details"`
	Fingerprint string `json:"fingerprint"`
	Signature   string `json:"signature"`
}

func GetCACert

func GetCACert() (NebulaCertificateInfo, string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL