File: zz_datacenter_client_base.go

package info (click to toggle)
hcloud-cli 1.39.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,628 kB
  • sloc: sh: 36; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by interfacer; DO NOT EDIT

package hcapi2

import (
	"context"
	"github.com/hetznercloud/hcloud-go/v2/hcloud"
)

// DatacenterClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/v2/hcloud.DatacenterClient".
type DatacenterClientBase interface {
	All(context.Context) ([]*hcloud.Datacenter, error)
	AllWithOpts(context.Context, hcloud.DatacenterListOpts) ([]*hcloud.Datacenter, error)
	Get(context.Context, string) (*hcloud.Datacenter, *hcloud.Response, error)
	GetByID(context.Context, int64) (*hcloud.Datacenter, *hcloud.Response, error)
	GetByName(context.Context, string) (*hcloud.Datacenter, *hcloud.Response, error)
	List(context.Context, hcloud.DatacenterListOpts) ([]*hcloud.Datacenter, *hcloud.Response, error)
}