Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bastion ¶
type Bastion struct { Config *Config Client *wgctrl.Client // contains filtered or unexported fields }
func (*Bastion) CleanupPeers ¶
func (*Bastion) ServerInfo ¶
func (b *Bastion) ServerInfo() BastionServerInfo
type BastionServerInfo ¶
type CreateTunnelRequest ¶
type CreateTunnelRequest struct {
PublicKey *MarshallableKey `json:"public_key"`
}
type CreateTunnelResponse ¶
type CreateTunnelResponse struct {
PeerConfig *MarshallablePeerConfig
}
type MarshallableKey ¶
func (*MarshallableKey) MarshalJSON ¶
func (m *MarshallableKey) MarshalJSON() ([]byte, error)
func (*MarshallableKey) UnmarshalJSON ¶
func (m *MarshallableKey) UnmarshalJSON(bytes []byte) error
type MarshallablePeerConfig ¶
type MarshallablePeerConfig struct { P wgtypes.PeerConfig BSI BastionServerInfo }
func (*MarshallablePeerConfig) MarshalJSON ¶
func (m *MarshallablePeerConfig) MarshalJSON() ([]byte, error)
func (*MarshallablePeerConfig) UnmarshalJSON ¶
func (m *MarshallablePeerConfig) UnmarshalJSON(bytes []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.