Documentation ¶
Index ¶
- Variables
- type Deployed
- type Hetzner
- func (h *Hetzner) FindInPools(node string) string
- func (h *Hetzner) FirewallConfigByID(id, pool string) (*firewall.Config, error)
- func (h *Hetzner) NewSSHKey(key pulumi.StringOutput) (*hcloud.SshKey, error)
- func (h *Hetzner) Up(keys *sshkeypair.KeyPair) (*Deployed, error)
- func (h *Hetzner) WithNetwork(config *network.Config) *Hetzner
- func (h *Hetzner) WithNodepools(pools *config.NodepoolsConfig) *Hetzner
- type InterconnectFirewall
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFirewallDisabled = errors.New("firewall is disabled")
Functions ¶
This section is empty.
Types ¶
type Hetzner ¶
type Hetzner struct { Servers map[string]*config.NodeConfig Firewalls map[string]*firewall.Config Pools map[string][]string Network *network.Network // contains filtered or unexported fields }
func (*Hetzner) FindInPools ¶
func (*Hetzner) FirewallConfigByID ¶
FirewallConfigByID returns the firewall config for the node. If not found, then search a config for nodepool. If not found again, then return a config for role.
func (*Hetzner) Up ¶
func (h *Hetzner) Up(keys *sshkeypair.KeyPair) (*Deployed, error)
Up creates hetzner cloud infrastructure. It must be refactored.
func (*Hetzner) WithNodepools ¶
func (h *Hetzner) WithNodepools(pools *config.NodepoolsConfig) *Hetzner
type InterconnectFirewall ¶
type InterconnectFirewall struct { Config *firewall.Config Ips pulumi.StringArray IDs pulumi.IntArray }
func NewInterconnectFirewall ¶
func NewInterconnectFirewall() *InterconnectFirewall
type Server ¶
type Server struct { ID pulumi.IDOutput InternalIP pulumi.StringOutput Connection *connection.Connection }
Click to show internal directories.
Click to hide internal directories.