Documentation
¶
Index ¶
- func ProtocolForConfigType(t int) (string, bool)
- func Redact(input string) string
- type Discovery
- type ImportedEndpoint
- func NewImported(protocol, host string, port int, label, subgroup, source string) (ImportedEndpoint, bool)
- func ParseContent(content string) []ImportedEndpoint
- func ParseLine(line string) (ImportedEndpoint, bool)
- func ParseWireGuardINI(content string) []ImportedEndpoint
- func ReadProfiles(dbPath string) ([]ImportedEndpoint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocolForConfigType ¶
Types ¶
type ImportedEndpoint ¶
type ImportedEndpoint struct {
Protocol string `json:"protocol"`
Host string `json:"host"`
Port int `json:"port"`
Label string `json:"label,omitempty"`
SubGroup string `json:"sub_group,omitempty"`
Source string `json:"source"`
}
func NewImported ¶
func NewImported(protocol, host string, port int, label, subgroup, source string) (ImportedEndpoint, bool)
func ParseContent ¶
func ParseContent(content string) []ImportedEndpoint
func ParseLine ¶
func ParseLine(line string) (ImportedEndpoint, bool)
func ParseWireGuardINI ¶
func ParseWireGuardINI(content string) []ImportedEndpoint
func ReadProfiles ¶
func ReadProfiles(dbPath string) ([]ImportedEndpoint, error)
func (ImportedEndpoint) ToEndpoint ¶
func (e ImportedEndpoint) ToEndpoint() endpoint.Endpoint
func (ImportedEndpoint) Validate ¶
func (e ImportedEndpoint) Validate() error
Click to show internal directories.
Click to hide internal directories.