Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizerKey ¶
type AuthorizerKey struct { // ID is a key UUID. ID string `db:"id"` // Source identify which authorizer and\or // federation cluster added the key. // Must be the same as key owner in the federation keystore. // The rule above must be enforced by the API implementation. Source string `db:"source"` // Key is a byte64-encoded representation of rsa.PublicKey Key string `db:"key"` }
func (*AuthorizerKey) Validate ¶
func (key *AuthorizerKey) Validate() error
type PeerIdentifiers ¶
type PeerInfo ¶
type PeerInfo struct { WireguardInfo PeerIdentifiers ID int64 `db:"id"` Label *string `db:"label"` Ipv4 *xnet.IP `db:"ipv4" json:"-"` Created *xtime.Time `db:"created"` Updated *xtime.Time `db:"updated"` Expires *xtime.Time `db:"expires"` Claims *string `db:"claims"` SharingKey *string `db:"sharing_key"` SharingKeyExpiration *int64 `db:"sharing_key_expiration"` NetworkAccessPolicy *int `db:"net_access_policy"` RateLimit *int `db:"net_rate_limit"` }
func (*PeerInfo) GetNetworkPolicy ¶ added in v0.2.4
type WGPrivateKey ¶
let the compiler check types for us
func (WGPrivateKey) Public ¶
func (p WGPrivateKey) Public() WGPublicKey
func (WGPrivateKey) Unwrap ¶
func (p WGPrivateKey) Unwrap() wgtypes.Key
type WGPublicKey ¶
let the compiler check types for us
func (WGPublicKey) Unwrap ¶
func (p WGPublicKey) Unwrap() wgtypes.Key
type WireguardInfo ¶
type WireguardInfo struct {
WireguardPublicKey *string `db:"wireguard_key"`
}
Click to show internal directories.
Click to hide internal directories.