hetznertasks

package
v1.30.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

type Firewall struct {
	Name      *string
	Lifecycle fi.Lifecycle

	ID       *int
	Selector string
	Rules    []*FirewallRule

	Labels map[string]string
}

+kops:fitask

func (*Firewall) CheckChanges

func (_ *Firewall) CheckChanges(a, e, changes *Firewall) error

func (*Firewall) CompareWithID

func (v *Firewall) CompareWithID() *string

func (*Firewall) Find

func (v *Firewall) Find(c *fi.CloudupContext) (*Firewall, error)

func (*Firewall) GetLifecycle

func (o *Firewall) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Firewall) GetName

func (o *Firewall) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Firewall) RenderHetzner

func (_ *Firewall) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *Firewall) error

func (*Firewall) RenderTerraform added in v1.25.0

func (_ *Firewall) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Firewall) error

func (*Firewall) Run

func (v *Firewall) Run(c *fi.CloudupContext) error

func (*Firewall) SetLifecycle

func (o *Firewall) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Firewall) String

func (o *Firewall) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

type FirewallRule

type FirewallRule struct {
	Direction string
	SourceIPs []net.IPNet
	Protocol  string
	Port      *string
}

FirewallRule represents a Firewall's rules.

func (*FirewallRule) GetDependencies

func (e *FirewallRule) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask

type LoadBalancer

type LoadBalancer struct {
	Name      *string
	Lifecycle fi.Lifecycle
	Network   *Network

	ID       *int
	Location string
	Type     string
	Services []*LoadBalancerService
	Target   string

	Labels map[string]string

	// WellKnownServices indicates which services are supported by this resource.
	// This field is internal and is not rendered to the cloud.
	WellKnownServices []wellknownservices.WellKnownService
}

+kops:fitask

func (*LoadBalancer) CheckChanges

func (_ *LoadBalancer) CheckChanges(a, e, changes *LoadBalancer) error

func (*LoadBalancer) CompareWithID

func (v *LoadBalancer) CompareWithID() *string

func (*LoadBalancer) Find

func (*LoadBalancer) FindAddresses

func (v *LoadBalancer) FindAddresses(c *fi.CloudupContext) ([]string, error)

func (*LoadBalancer) GetLifecycle

func (o *LoadBalancer) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*LoadBalancer) GetName

func (o *LoadBalancer) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*LoadBalancer) GetWellKnownServices added in v1.29.0

func (e *LoadBalancer) GetWellKnownServices() []wellknownservices.WellKnownService

GetWellKnownServices implements fi.HasAddress::GetWellKnownServices. It indicates which services we support with this load balancer.

func (*LoadBalancer) RenderHetzner

func (_ *LoadBalancer) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *LoadBalancer) error

func (*LoadBalancer) RenderTerraform added in v1.25.0

func (_ *LoadBalancer) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *LoadBalancer) error

func (*LoadBalancer) Run

func (v *LoadBalancer) Run(c *fi.CloudupContext) error

func (*LoadBalancer) SetLifecycle

func (o *LoadBalancer) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*LoadBalancer) String

func (o *LoadBalancer) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *LoadBalancer) TerraformLink() *terraformWriter.Literal

type LoadBalancerService

type LoadBalancerService struct {
	Protocol        string
	ListenerPort    *int
	DestinationPort *int
}

LoadBalancerService represents a LoadBalancer's service.

func (*LoadBalancerService) GetDependencies

func (e *LoadBalancerService) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask

type Network

type Network struct {
	Name      *string
	Lifecycle fi.Lifecycle

	ID      *string
	Region  string
	IPRange string
	Subnets []string

	Labels map[string]string
}

+kops:fitask

func (*Network) CheckChanges

func (_ *Network) CheckChanges(a, e, changes *Network) error

func (*Network) CompareWithID

func (v *Network) CompareWithID() *string

func (*Network) Find

func (v *Network) Find(c *fi.CloudupContext) (*Network, error)

func (*Network) GetLifecycle

func (o *Network) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Network) GetName

func (o *Network) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Network) RenderHetzner

func (_ *Network) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *Network) error

func (*Network) RenderTerraform added in v1.25.0

func (_ *Network) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Network) error

func (*Network) Run

func (v *Network) Run(c *fi.CloudupContext) error

func (*Network) SetLifecycle

func (o *Network) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Network) String

func (o *Network) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *Network) TerraformLink() *terraformWriter.Literal

type SSHKey

type SSHKey struct {
	Name      *string
	Lifecycle fi.Lifecycle

	ID        *int
	PublicKey string

	Labels map[string]string
}

+kops:fitask

func (*SSHKey) CheckChanges

func (_ *SSHKey) CheckChanges(a, e, changes *SSHKey) error

func (*SSHKey) CompareWithID

func (v *SSHKey) CompareWithID() *string

func (*SSHKey) Find

func (v *SSHKey) Find(c *fi.CloudupContext) (*SSHKey, error)

func (*SSHKey) GetLifecycle

func (o *SSHKey) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*SSHKey) GetName

func (o *SSHKey) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*SSHKey) RenderHetzner

func (_ *SSHKey) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *SSHKey) error

func (*SSHKey) RenderTerraform added in v1.25.0

func (_ *SSHKey) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *SSHKey) error

func (*SSHKey) Run

func (v *SSHKey) Run(c *fi.CloudupContext) error

func (*SSHKey) SetLifecycle

func (o *SSHKey) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*SSHKey) String

func (o *SSHKey) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *SSHKey) TerraformLink() *terraformWriter.Literal

type ServerGroup added in v1.24.1

type ServerGroup struct {
	Name      *string
	Lifecycle fi.Lifecycle
	SSHKeys   []*SSHKey
	Network   *Network

	Count      int
	NeedUpdate []string

	Location string
	Size     string
	Image    string

	EnableIPv4 bool
	EnableIPv6 bool

	UserData fi.Resource

	Labels map[string]string
}

+kops:fitask

func (*ServerGroup) CheckChanges added in v1.24.1

func (_ *ServerGroup) CheckChanges(a, e, changes *ServerGroup) error

func (*ServerGroup) Find added in v1.24.1

func (v *ServerGroup) Find(c *fi.CloudupContext) (*ServerGroup, error)

func (*ServerGroup) GetLifecycle added in v1.24.1

func (o *ServerGroup) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*ServerGroup) GetName added in v1.24.1

func (o *ServerGroup) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*ServerGroup) RenderHetzner added in v1.24.1

func (_ *ServerGroup) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *ServerGroup) error

func (*ServerGroup) RenderTerraform added in v1.25.0

func (_ *ServerGroup) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *ServerGroup) error

func (*ServerGroup) Run added in v1.24.1

func (v *ServerGroup) Run(c *fi.CloudupContext) error

func (*ServerGroup) SetLifecycle added in v1.24.1

func (o *ServerGroup) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*ServerGroup) String added in v1.24.1

func (o *ServerGroup) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

type Volume

type Volume struct {
	Name      *string
	Lifecycle fi.Lifecycle

	ID       *int
	Location string
	Size     int

	Labels map[string]string
}

+kops:fitask

func (*Volume) CheckChanges

func (_ *Volume) CheckChanges(a, e, changes *Volume) error

func (*Volume) CompareWithID

func (v *Volume) CompareWithID() *string

func (*Volume) Find

func (v *Volume) Find(c *fi.CloudupContext) (*Volume, error)

func (*Volume) GetLifecycle

func (o *Volume) GetLifecycle() fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Volume) GetName

func (o *Volume) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Volume) RenderHetzner

func (_ *Volume) RenderHetzner(t *hetzner.HetznerAPITarget, a, e, changes *Volume) error

func (*Volume) RenderTerraform added in v1.25.0

func (_ *Volume) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Volume) error

func (*Volume) Run

func (v *Volume) Run(c *fi.CloudupContext) error

func (*Volume) SetLifecycle

func (o *Volume) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Volume) String

func (o *Volume) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL