mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 10:33:46 +00:00
* feat: Add optional SSH port param to node in provider ssh block * fix: minor cleanups --------- Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
23 lines
575 B
Go
23 lines
575 B
Go
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
package ssh
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// ProxmoxNode represents node address and port for SSH connection.
|
|
type ProxmoxNode struct {
|
|
Address string
|
|
Port int32
|
|
}
|
|
|
|
// NodeResolver is an interface for resolving node names to IP addresses to use for SSH connection.
|
|
type NodeResolver interface {
|
|
Resolve(ctx context.Context, nodeName string) (ProxmoxNode, error)
|
|
}
|