Documentation
¶
Index ¶
- func C25519pair() (string, string)
- func Create(apiClient flyutil.Client, orgID, orgSlug, regionCode, name, network string, ...) (*wg.WireGuardState, error)
- func GetWireGuardState() (wg.States, error)
- func PruneInvalidPeers(ctx context.Context, apiClient WebClient) error
- func StateForOrg(ctx context.Context, apiClient flyutil.Client, orgID, orgSlug string, ...) (*wg.WireGuardState, error)
- type WebClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func C25519pair ¶
func GetWireGuardState ¶ added in v0.0.233
func PruneInvalidPeers ¶ added in v0.0.232
func StateForOrg ¶
func StateForOrg(ctx context.Context, apiClient flyutil.Client, orgID, orgSlug string, regionCode string, name string, reestablish bool, network string) (*wg.WireGuardState, error)
StateForOrg returns the WireGuard state for the org identified by its GraphQL ID and slug, creating a peer when none is cached.
Types ¶
Click to show internal directories.
Click to hide internal directories.