Documentation ¶
Index ¶
- Constants
- func EndpointAddress(node *corev1.Node) (addr *net.UDPAddr, err error)
- func GetNodeByPublicKey(ctx context.Context, c client.Reader, publicKey string) (*corev1.Node, error)
- func GetPreferredAddress(node *corev1.Node, preferred []corev1.NodeAddressType) *corev1.NodeAddress
- func IsEndpointNotFound(err error) bool
- func IsNodeNotInitializedError(err error) bool
- func IsPublicKeyNotFound(err error) bool
- func PeerConfigForExistingPeer(ctx context.Context, log *zap.Logger, r client.Reader, peer *wgtypes.Peer) (*wgtypes.PeerConfig, error)
- func PeerConfigForNode(log *zap.Logger, node *corev1.Node) (*wgtypes.PeerConfig, error)
- func PublicKey(node *corev1.Node) (key wgtypes.Key, err error)
- func RegisterPublicKeyIndexer(ctx context.Context, indexer client.FieldIndexer) error
- func SetEndpointAddress(node *corev1.Node, address string) bool
- func SetPublicKey(node *corev1.Node, publicKey wgtypes.Key) bool
- type EndpointNotFoundError
- type Networks
- type NodeNotInitializedError
- type PodCIDRIsEmptyError
- type PublicKeyNotFoundError
Constants ¶
View Source
const ( AnnotationKeyPublicKey = "wireguard/public_key" AnnotationKeyEndpoint = "wireguard/endpoint" )
Variables ¶
This section is empty.
Functions ¶
func GetNodeByPublicKey ¶
func GetPreferredAddress ¶
func GetPreferredAddress(node *corev1.Node, preferred []corev1.NodeAddressType) *corev1.NodeAddress
func IsEndpointNotFound ¶
func IsPublicKeyNotFound ¶
func PeerConfigForNode ¶
func RegisterPublicKeyIndexer ¶
func RegisterPublicKeyIndexer(ctx context.Context, indexer client.FieldIndexer) error
Types ¶
type EndpointNotFoundError ¶
type EndpointNotFoundError struct{}
func (EndpointNotFoundError) Error ¶
func (e EndpointNotFoundError) Error() string
type NodeNotInitializedError ¶
type NodeNotInitializedError struct {
// contains filtered or unexported fields
}
func (NodeNotInitializedError) Error ¶
func (e NodeNotInitializedError) Error() string
type PodCIDRIsEmptyError ¶
type PodCIDRIsEmptyError struct{}
func (PodCIDRIsEmptyError) Error ¶
func (e PodCIDRIsEmptyError) Error() string
type PublicKeyNotFoundError ¶
type PublicKeyNotFoundError struct{}
func (PublicKeyNotFoundError) Error ¶
func (e PublicKeyNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.