Skip to content

Releases: hetznercloud/hcloud-go

v2.16.0

05 Nov 14:27
677d80f
Compare
Choose a tag to compare

2.16.0 (2024-11-05)

Features

  • use custom IDOrName type for schemas (#545) (1d97017)

Bug Fixes

v2.15.0

31 Oct 21:16
9903f4d
Compare
Choose a tag to compare

2.15.0 (2024-10-31)

Features

  • exp: add mockutil.Server helper (#543) (fa1069b)
  • exp: fail test when mock calls were expected but not received (#542) (01392cc)

v2.14.0

21 Oct 10:53
09a582a
Compare
Choose a tag to compare

2.14.0 (2024-10-21)

Features

  • add support for Go 1.23 (#532) (838f878)
  • allow retrieving the action from an action error (#538) (07727d3)
  • include action ID in action error string (#539) (ad5417f)

Bug Fixes

  • deprecate pricing floating ip field (#523) (1089d40)
  • deprecate unused window parameter in the EnableBackup call (#531) (584f6c2), closes #525

v2.13.1

09 Aug 13:06
5a84dd9
Compare
Choose a tag to compare

2.13.1 (2024-08-09)

Bug Fixes

  • invalid_input API errors may not return details (#507) (ca78af2)

v1.59.1

09 Aug 13:06
f531ce8
Compare
Choose a tag to compare

1.59.1 (2024-08-09)

Bug Fixes

  • invalid_input API errors may not return details (bfa3803)

v2.13.0

06 Aug 08:05
60c5428
Compare
Choose a tag to compare

2.13.0 (2024-08-06)

Features

  • network: add new network zone ap-southeast (#501) (a79a06b)

Bug Fixes

v1.59.0

06 Aug 08:09
be7345b
Compare
Choose a tag to compare

1.59.0 (2024-08-06)

Features

  • network: add new network zone ap-southeast (#502) (0104ec0)

v2.12.0

25 Jul 11:13
482aee2
Compare
Choose a tag to compare

2.12.0 (2024-07-25)

API Changes for Traffic Prices and Server Type Included Traffic

There will be a breaking change in the API regarding Traffic Prices and Server Type Included Traffic on 2024-08-05. This release marks the affected fields as Deprecated. Please check if this affects any of your code and switch to the replacement fields where necessary.

You can learn more about this change in our changelog.

Upgrading

Server Type Included Traffic

If you were using the field hcloud.ServerType.IncludedTraffic, you can now get the information through hcloud.ServerType.Pricings:

func main() {
// previous
includedTraffic := serverType.IncludedTraffic

    // now
    locationOfInterest := "fsn1"
    var includedTraffic uint64
    for _, price := range serverType.Pricings {
        if price.Location.Name == locationOfInterest {
            includedTraffic = price.IncludedTraffic
            break
        }
    }
}
Traffic Prices

If you were using the field hcloud.Pricing.Traffic, you can now get the information through hcloud.Pricing.ServerTypes or hcloud.Pricing.LoadBalancerTypes:

func main() {
// previous
trafficPrice := pricing.Traffic

    // now
    serverTypeOfInterest := "cx22"
    locationOfInterest := "fsn1"

    var trafficPrice hcloud.Price
    for _, serverTypePricings := range pricing.ServerTypes {
        if serverTypePricings.ServerType.Name == serverTypeOfInterest {
            for _, price := range serverTypePricings {
               if price.Location.Name == locationOfInterest {
                   trafficPrice = price.PerTBTraffic
                   break
               }
            }
        }
    }
}

Features

  • add jitter in the client default retry exponential backoff (#492) (6205076)
  • add new WithPollOpts client option (#493) (2c1a2d6)
  • allow checking multiple errors codes in IsError (#491) (af59ab8)
  • load-balancer-type: new traffic price fields (94e0f44)
  • pricing: mark traffic field as deprecated (94e0f44)
  • server-type: mark included traffic field as deprecated (94e0f44)
  • server-type: new traffic price fields (94e0f44)

v1.58.0

25 Jul 11:35
108237d
Compare
Choose a tag to compare

1.58.0 (2024-07-25)

API Changes for Traffic Prices and Server Type Included Traffic

There will be a breaking change in the API regarding Traffic Prices and Server Type Included Traffic on 2024-08-05. This release marks the affected fields as Deprecated. Please check if this affects any of your code and switch to the replacement fields where necessary.

You can learn more about this change in our changelog.

Upgrading

Server Type Included Traffic

If you were using the field hcloud.ServerType.IncludedTraffic, you can now get the information through hcloud.ServerType.Pricings:

func main() {
// previous
includedTraffic := serverType.IncludedTraffic

    // now
    locationOfInterest := "fsn1"
    var includedTraffic uint64
    for _, price := range serverType.Pricings {
        if price.Location.Name == locationOfInterest {
            includedTraffic = price.IncludedTraffic
            break
        }
    }
}
Traffic Prices

If you were using the field hcloud.Pricing.Traffic, you can now get the information through hcloud.Pricing.ServerTypes or hcloud.Pricing.LoadBalancerTypes:

func main() {
// previous
trafficPrice := pricing.Traffic

    // now
    serverTypeOfInterest := "cx22"
    locationOfInterest := "fsn1"

    var trafficPrice hcloud.Price
    for _, serverTypePricings := range pricing.ServerTypes {
        if serverTypePricings.ServerType.Name == serverTypeOfInterest {
            for _, price := range serverTypePricings {
               if price.Location.Name == locationOfInterest {
                   trafficPrice = price.PerTBTraffic
                   break
               }
            }
        }
    }
}

Features

  • load-balancer-type: new traffic price fields (90c3110)
  • pricing: mark traffic field as deprecated (90c3110)
  • server-type: mark included traffic field as deprecated (90c3110)
  • server-type: new traffic price fields (90c3110)

v2.11.0

23 Jul 09:18
cf9fdaf
Compare
Choose a tag to compare

2.11.0 (2024-07-23)

Features

  • add truncated exponential backoff with full jitter (#459) (fd1f46c)
  • allow configuring retry options (#488) (2db9575)
  • exp: add sliceutil package (#489) (f4ad6bc)
  • exp: rename *utils package to *util (#487) (19da475)
  • respect cancelled contexts during retry sleep (#470) (756f605)
  • retry requests when the api gateway errors (#470) (756f605)
  • retry requests when the network timed out (#470) (756f605)
  • retry requests when the rate limit was reached (#470) (756f605)

Bug Fixes