hcapi2

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Package hcapi2 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Datacenter() DatacenterClient
	Firewall() FirewallClient
	FloatingIP() FloatingIPClient
	Image() ImageClient
	Location() LocationClient
	Network() NetworkClient
	Server() ServerClient
	ServerType() ServerTypeClient
	SSHKey() SSHKeyClient
	Volume() VolumeClient
}

Client makes all API clients accessible via a single interface.

func NewClient

func NewClient(c *hcloud.Client) Client

NewClient creates a new CLI API client extending hcloud.Client.

type DatacenterClient

type DatacenterClient interface {
	DatacenterClientBase
	Names() []string
}

DatacenterClient embeds the Hetzner Cloud DataCenter client and provides some additional helper functions.

func NewDatacenterClient

func NewDatacenterClient(client DatacenterClientBase) DatacenterClient

type DatacenterClientBase

DatacenterClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.DatacenterClient".

type FirewallClient

type FirewallClient interface {
	FirewallClientBase
	Names() []string
}

func NewFirewallClient

func NewFirewallClient(client FirewallClientBase) FirewallClient

type FloatingIPClient

type FloatingIPClient interface {
	FloatingIPClientBase
	Names() []string
	LabelKeys(idOrName string) []string
}

FloatingIPClient embeds the hcloud FloatingIPClient (via an interface) and provides some additional helper functions.

func NewFloatingIPClient

func NewFloatingIPClient(client FloatingIPClientBase) FloatingIPClient

NewFloatingIPClient creates a new floating IP client.

type ImageClient

type ImageClient interface {
	ImageClientBase
	Names() []string
	LabelKeys(string) []string
}

ImageClient embeds the Hetzner Cloud Image client and provides some additional helper functions.

func NewImageClient

func NewImageClient(client ImageClientBase) ImageClient

type ImageClientBase

ImageClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ImageClient".

type LocationClient

type LocationClient interface {
	LocationClientBase
	Names() []string
}

LocationClient embeds the Hetzner Cloud Location client and provides some additional helper functions.

func NewLocationClient

func NewLocationClient(client LocationClientBase) LocationClient

type LocationClientBase

LocationClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.LocationClient".

type MockClient

type MockClient struct {
	DatacenterClient *MockDatacenterClient
	FirewallClient   *MockFirewallClient
	FloatingIPClient *MockFloatingIPClient
	ImageClient      *MockImageClient
	LocationClient   *MockLocationClient
	NetworkClient    *MockNetworkClient
	ServerClient     *MockServerClient
	ServerTypeClient *MockServerTypeClient
	SSHKeyClient     *MockSSHKeyClient
	VolumeClient     *MockVolumeClient
}

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) Datacenter

func (c *MockClient) Datacenter() DatacenterClient

func (*MockClient) Firewall

func (c *MockClient) Firewall() FirewallClient

func (*MockClient) FloatingIP

func (c *MockClient) FloatingIP() FloatingIPClient

func (*MockClient) Image

func (c *MockClient) Image() ImageClient

func (*MockClient) Location

func (c *MockClient) Location() LocationClient

func (*MockClient) Network

func (c *MockClient) Network() NetworkClient

func (*MockClient) SSHKey

func (c *MockClient) SSHKey() SSHKeyClient

func (*MockClient) Server

func (c *MockClient) Server() ServerClient

func (*MockClient) ServerType

func (c *MockClient) ServerType() ServerTypeClient

func (*MockClient) Volume

func (c *MockClient) Volume() VolumeClient

type MockDatacenterClient

type MockDatacenterClient struct {
	// contains filtered or unexported fields
}

MockDatacenterClient is a mock of DatacenterClient interface.

func NewMockDatacenterClient

func NewMockDatacenterClient(ctrl *gomock.Controller) *MockDatacenterClient

NewMockDatacenterClient creates a new mock instance.

func (*MockDatacenterClient) All

All mocks base method.

func (*MockDatacenterClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatacenterClient) Get

Get mocks base method.

func (*MockDatacenterClient) GetByID

GetByID mocks base method.

func (*MockDatacenterClient) GetByName

GetByName mocks base method.

func (*MockDatacenterClient) List

List mocks base method.

func (*MockDatacenterClient) Names

func (m *MockDatacenterClient) Names() []string

Names mocks base method.

type MockDatacenterClientMockRecorder

type MockDatacenterClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatacenterClientMockRecorder is the mock recorder for MockDatacenterClient.

func (*MockDatacenterClientMockRecorder) All

func (mr *MockDatacenterClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockDatacenterClientMockRecorder) Get

func (mr *MockDatacenterClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockDatacenterClientMockRecorder) GetByID

func (mr *MockDatacenterClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockDatacenterClientMockRecorder) GetByName

func (mr *MockDatacenterClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockDatacenterClientMockRecorder) List

func (mr *MockDatacenterClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockDatacenterClientMockRecorder) Names

Names indicates an expected call of Names.

type MockFirewallClient

type MockFirewallClient struct {
	// contains filtered or unexported fields
}

MockFirewallClient is a mock of FirewallClient interface.

func NewMockFirewallClient

func NewMockFirewallClient(ctrl *gomock.Controller) *MockFirewallClient

NewMockFirewallClient creates a new mock instance.

func (*MockFirewallClient) All

All mocks base method.

func (*MockFirewallClient) AllWithOpts

func (m *MockFirewallClient) AllWithOpts(arg0 context.Context, arg1 hcloud.FirewallListOpts) ([]*hcloud.Firewall, error)

AllWithOpts mocks base method.

func (*MockFirewallClient) ApplyResources

func (m *MockFirewallClient) ApplyResources(arg0 context.Context, arg1 *hcloud.Firewall, arg2 []hcloud.FirewallResource) ([]*hcloud.Action, *hcloud.Response, error)

ApplyResources mocks base method.

func (*MockFirewallClient) Create

Create mocks base method.

func (*MockFirewallClient) Delete

Delete mocks base method.

func (*MockFirewallClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFirewallClient) Get

Get mocks base method.

func (*MockFirewallClient) GetByID

func (m *MockFirewallClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Firewall, *hcloud.Response, error)

GetByID mocks base method.

func (*MockFirewallClient) GetByName

func (m *MockFirewallClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Firewall, *hcloud.Response, error)

GetByName mocks base method.

func (*MockFirewallClient) List

List mocks base method.

func (*MockFirewallClient) Names

func (m *MockFirewallClient) Names() []string

Names mocks base method.

func (*MockFirewallClient) RemoveResources

func (m *MockFirewallClient) RemoveResources(arg0 context.Context, arg1 *hcloud.Firewall, arg2 []hcloud.FirewallResource) ([]*hcloud.Action, *hcloud.Response, error)

RemoveResources mocks base method.

func (*MockFirewallClient) SetRules

SetRules mocks base method.

func (*MockFirewallClient) Update

Update mocks base method.

type MockFirewallClientMockRecorder

type MockFirewallClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockFirewallClientMockRecorder is the mock recorder for MockFirewallClient.

func (*MockFirewallClientMockRecorder) All

func (mr *MockFirewallClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockFirewallClientMockRecorder) AllWithOpts

func (mr *MockFirewallClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockFirewallClientMockRecorder) ApplyResources

func (mr *MockFirewallClientMockRecorder) ApplyResources(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyResources indicates an expected call of ApplyResources.

func (*MockFirewallClientMockRecorder) Create

func (mr *MockFirewallClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockFirewallClientMockRecorder) Delete

func (mr *MockFirewallClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockFirewallClientMockRecorder) Get

func (mr *MockFirewallClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockFirewallClientMockRecorder) GetByID

func (mr *MockFirewallClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockFirewallClientMockRecorder) GetByName

func (mr *MockFirewallClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockFirewallClientMockRecorder) List

func (mr *MockFirewallClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockFirewallClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockFirewallClientMockRecorder) RemoveResources

func (mr *MockFirewallClientMockRecorder) RemoveResources(arg0, arg1, arg2 interface{}) *gomock.Call

RemoveResources indicates an expected call of RemoveResources.

func (*MockFirewallClientMockRecorder) SetRules

func (mr *MockFirewallClientMockRecorder) SetRules(arg0, arg1, arg2 interface{}) *gomock.Call

SetRules indicates an expected call of SetRules.

func (*MockFirewallClientMockRecorder) Update

func (mr *MockFirewallClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockFloatingIPClient

type MockFloatingIPClient struct {
	// contains filtered or unexported fields
}

MockFloatingIPClient is a mock of FloatingIPClient interface.

func NewMockFloatingIPClient

func NewMockFloatingIPClient(ctrl *gomock.Controller) *MockFloatingIPClient

NewMockFloatingIPClient creates a new mock instance.

func (*MockFloatingIPClient) All

All mocks base method.

func (*MockFloatingIPClient) AllWithOpts

AllWithOpts mocks base method.

func (*MockFloatingIPClient) Assign

Assign mocks base method.

func (*MockFloatingIPClient) ChangeDNSPtr

func (m *MockFloatingIPClient) ChangeDNSPtr(arg0 context.Context, arg1 *hcloud.FloatingIP, arg2 string, arg3 *string) (*hcloud.Action, *hcloud.Response, error)

ChangeDNSPtr mocks base method.

func (*MockFloatingIPClient) ChangeProtection

ChangeProtection mocks base method.

func (*MockFloatingIPClient) Create

Create mocks base method.

func (*MockFloatingIPClient) Delete

Delete mocks base method.

func (*MockFloatingIPClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFloatingIPClient) Get

Get mocks base method.

func (*MockFloatingIPClient) GetByID

GetByID mocks base method.

func (*MockFloatingIPClient) GetByName

GetByName mocks base method.

func (*MockFloatingIPClient) LabelKeys

func (m *MockFloatingIPClient) LabelKeys(arg0 string) []string

LabelKeys mocks base method.

func (*MockFloatingIPClient) List

List mocks base method.

func (*MockFloatingIPClient) Names

func (m *MockFloatingIPClient) Names() []string

Names mocks base method.

func (*MockFloatingIPClient) Unassign

Unassign mocks base method.

func (*MockFloatingIPClient) Update

Update mocks base method.

type MockFloatingIPClientMockRecorder

type MockFloatingIPClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockFloatingIPClientMockRecorder is the mock recorder for MockFloatingIPClient.

func (*MockFloatingIPClientMockRecorder) All

func (mr *MockFloatingIPClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockFloatingIPClientMockRecorder) AllWithOpts

func (mr *MockFloatingIPClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockFloatingIPClientMockRecorder) Assign

func (mr *MockFloatingIPClientMockRecorder) Assign(arg0, arg1, arg2 interface{}) *gomock.Call

Assign indicates an expected call of Assign.

func (*MockFloatingIPClientMockRecorder) ChangeDNSPtr

func (mr *MockFloatingIPClientMockRecorder) ChangeDNSPtr(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ChangeDNSPtr indicates an expected call of ChangeDNSPtr.

func (*MockFloatingIPClientMockRecorder) ChangeProtection

func (mr *MockFloatingIPClientMockRecorder) ChangeProtection(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeProtection indicates an expected call of ChangeProtection.

func (*MockFloatingIPClientMockRecorder) Create

func (mr *MockFloatingIPClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockFloatingIPClientMockRecorder) Delete

func (mr *MockFloatingIPClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockFloatingIPClientMockRecorder) Get

func (mr *MockFloatingIPClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockFloatingIPClientMockRecorder) GetByID

func (mr *MockFloatingIPClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockFloatingIPClientMockRecorder) GetByName

func (mr *MockFloatingIPClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockFloatingIPClientMockRecorder) LabelKeys

func (mr *MockFloatingIPClientMockRecorder) LabelKeys(arg0 interface{}) *gomock.Call

LabelKeys indicates an expected call of LabelKeys.

func (*MockFloatingIPClientMockRecorder) List

func (mr *MockFloatingIPClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockFloatingIPClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockFloatingIPClientMockRecorder) Unassign

func (mr *MockFloatingIPClientMockRecorder) Unassign(arg0, arg1 interface{}) *gomock.Call

Unassign indicates an expected call of Unassign.

func (*MockFloatingIPClientMockRecorder) Update

func (mr *MockFloatingIPClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockImageClient

type MockImageClient struct {
	// contains filtered or unexported fields
}

MockImageClient is a mock of ImageClient interface.

func NewMockImageClient

func NewMockImageClient(ctrl *gomock.Controller) *MockImageClient

NewMockImageClient creates a new mock instance.

func (*MockImageClient) All

func (m *MockImageClient) All(arg0 context.Context) ([]*hcloud.Image, error)

All mocks base method.

func (*MockImageClient) AllWithOpts

func (m *MockImageClient) AllWithOpts(arg0 context.Context, arg1 hcloud.ImageListOpts) ([]*hcloud.Image, error)

AllWithOpts mocks base method.

func (*MockImageClient) ChangeProtection

ChangeProtection mocks base method.

func (*MockImageClient) Delete

func (m *MockImageClient) Delete(arg0 context.Context, arg1 *hcloud.Image) (*hcloud.Response, error)

Delete mocks base method.

func (*MockImageClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockImageClient) Get

Get mocks base method.

func (*MockImageClient) GetByID

func (m *MockImageClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Image, *hcloud.Response, error)

GetByID mocks base method.

func (*MockImageClient) GetByName

func (m *MockImageClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Image, *hcloud.Response, error)

GetByName mocks base method.

func (*MockImageClient) LabelKeys

func (m *MockImageClient) LabelKeys(arg0 string) []string

LabelKeys mocks base method.

func (*MockImageClient) List

List mocks base method.

func (*MockImageClient) Names

func (m *MockImageClient) Names() []string

Names mocks base method.

func (*MockImageClient) Update

Update mocks base method.

type MockImageClientMockRecorder

type MockImageClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockImageClientMockRecorder is the mock recorder for MockImageClient.

func (*MockImageClientMockRecorder) All

func (mr *MockImageClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockImageClientMockRecorder) AllWithOpts

func (mr *MockImageClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockImageClientMockRecorder) ChangeProtection

func (mr *MockImageClientMockRecorder) ChangeProtection(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeProtection indicates an expected call of ChangeProtection.

func (*MockImageClientMockRecorder) Delete

func (mr *MockImageClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockImageClientMockRecorder) Get

func (mr *MockImageClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockImageClientMockRecorder) GetByID

func (mr *MockImageClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockImageClientMockRecorder) GetByName

func (mr *MockImageClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockImageClientMockRecorder) LabelKeys

func (mr *MockImageClientMockRecorder) LabelKeys(arg0 interface{}) *gomock.Call

LabelKeys indicates an expected call of LabelKeys.

func (*MockImageClientMockRecorder) List

func (mr *MockImageClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockImageClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockImageClientMockRecorder) Update

func (mr *MockImageClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockLocationClient

type MockLocationClient struct {
	// contains filtered or unexported fields
}

MockLocationClient is a mock of LocationClient interface.

func NewMockLocationClient

func NewMockLocationClient(ctrl *gomock.Controller) *MockLocationClient

NewMockLocationClient creates a new mock instance.

func (*MockLocationClient) All

All mocks base method.

func (*MockLocationClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLocationClient) Get

Get mocks base method.

func (*MockLocationClient) GetByID

func (m *MockLocationClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Location, *hcloud.Response, error)

GetByID mocks base method.

func (*MockLocationClient) GetByName

func (m *MockLocationClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Location, *hcloud.Response, error)

GetByName mocks base method.

func (*MockLocationClient) List

List mocks base method.

func (*MockLocationClient) Names

func (m *MockLocationClient) Names() []string

Names mocks base method.

type MockLocationClientMockRecorder

type MockLocationClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockLocationClientMockRecorder is the mock recorder for MockLocationClient.

func (*MockLocationClientMockRecorder) All

func (mr *MockLocationClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockLocationClientMockRecorder) Get

func (mr *MockLocationClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockLocationClientMockRecorder) GetByID

func (mr *MockLocationClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockLocationClientMockRecorder) GetByName

func (mr *MockLocationClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockLocationClientMockRecorder) List

func (mr *MockLocationClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockLocationClientMockRecorder) Names

Names indicates an expected call of Names.

type MockNetworkClient

type MockNetworkClient struct {
	// contains filtered or unexported fields
}

MockNetworkClient is a mock of NetworkClient interface.

func NewMockNetworkClient

func NewMockNetworkClient(ctrl *gomock.Controller) *MockNetworkClient

NewMockNetworkClient creates a new mock instance.

func (*MockNetworkClient) AddRoute

AddRoute mocks base method.

func (*MockNetworkClient) AddSubnet

AddSubnet mocks base method.

func (*MockNetworkClient) All

func (m *MockNetworkClient) All(arg0 context.Context) ([]*hcloud.Network, error)

All mocks base method.

func (*MockNetworkClient) AllWithOpts

func (m *MockNetworkClient) AllWithOpts(arg0 context.Context, arg1 hcloud.NetworkListOpts) ([]*hcloud.Network, error)

AllWithOpts mocks base method.

func (*MockNetworkClient) ChangeIPRange

ChangeIPRange mocks base method.

func (*MockNetworkClient) ChangeProtection

ChangeProtection mocks base method.

func (*MockNetworkClient) Create

Create mocks base method.

func (*MockNetworkClient) Delete

func (m *MockNetworkClient) Delete(arg0 context.Context, arg1 *hcloud.Network) (*hcloud.Response, error)

Delete mocks base method.

func (*MockNetworkClient) DeleteRoute

DeleteRoute mocks base method.

func (*MockNetworkClient) DeleteSubnet

DeleteSubnet mocks base method.

func (*MockNetworkClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNetworkClient) Get

Get mocks base method.

func (*MockNetworkClient) GetByID

func (m *MockNetworkClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Network, *hcloud.Response, error)

GetByID mocks base method.

func (*MockNetworkClient) GetByName

func (m *MockNetworkClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Network, *hcloud.Response, error)

GetByName mocks base method.

func (*MockNetworkClient) List

List mocks base method.

func (*MockNetworkClient) Name

func (m *MockNetworkClient) Name(arg0 int) string

Name mocks base method.

func (*MockNetworkClient) Names

func (m *MockNetworkClient) Names() []string

Names mocks base method.

func (*MockNetworkClient) Update

Update mocks base method.

type MockNetworkClientMockRecorder

type MockNetworkClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkClientMockRecorder is the mock recorder for MockNetworkClient.

func (*MockNetworkClientMockRecorder) AddRoute

func (mr *MockNetworkClientMockRecorder) AddRoute(arg0, arg1, arg2 interface{}) *gomock.Call

AddRoute indicates an expected call of AddRoute.

func (*MockNetworkClientMockRecorder) AddSubnet

func (mr *MockNetworkClientMockRecorder) AddSubnet(arg0, arg1, arg2 interface{}) *gomock.Call

AddSubnet indicates an expected call of AddSubnet.

func (*MockNetworkClientMockRecorder) All

func (mr *MockNetworkClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockNetworkClientMockRecorder) AllWithOpts

func (mr *MockNetworkClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockNetworkClientMockRecorder) ChangeIPRange

func (mr *MockNetworkClientMockRecorder) ChangeIPRange(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeIPRange indicates an expected call of ChangeIPRange.

func (*MockNetworkClientMockRecorder) ChangeProtection

func (mr *MockNetworkClientMockRecorder) ChangeProtection(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeProtection indicates an expected call of ChangeProtection.

func (*MockNetworkClientMockRecorder) Create

func (mr *MockNetworkClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockNetworkClientMockRecorder) Delete

func (mr *MockNetworkClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNetworkClientMockRecorder) DeleteRoute

func (mr *MockNetworkClientMockRecorder) DeleteRoute(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockNetworkClientMockRecorder) DeleteSubnet

func (mr *MockNetworkClientMockRecorder) DeleteSubnet(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteSubnet indicates an expected call of DeleteSubnet.

func (*MockNetworkClientMockRecorder) Get

func (mr *MockNetworkClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockNetworkClientMockRecorder) GetByID

func (mr *MockNetworkClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockNetworkClientMockRecorder) GetByName

func (mr *MockNetworkClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockNetworkClientMockRecorder) List

func (mr *MockNetworkClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockNetworkClientMockRecorder) Name

func (mr *MockNetworkClientMockRecorder) Name(arg0 interface{}) *gomock.Call

Name indicates an expected call of Name.

func (*MockNetworkClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockNetworkClientMockRecorder) Update

func (mr *MockNetworkClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockSSHKeyClient

type MockSSHKeyClient struct {
	// contains filtered or unexported fields
}

MockSSHKeyClient is a mock of SSHKeyClient interface.

func NewMockSSHKeyClient

func NewMockSSHKeyClient(ctrl *gomock.Controller) *MockSSHKeyClient

NewMockSSHKeyClient creates a new mock instance.

func (*MockSSHKeyClient) All

func (m *MockSSHKeyClient) All(arg0 context.Context) ([]*hcloud.SSHKey, error)

All mocks base method.

func (*MockSSHKeyClient) AllWithOpts

func (m *MockSSHKeyClient) AllWithOpts(arg0 context.Context, arg1 hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, error)

AllWithOpts mocks base method.

func (*MockSSHKeyClient) Create

Create mocks base method.

func (*MockSSHKeyClient) Delete

func (m *MockSSHKeyClient) Delete(arg0 context.Context, arg1 *hcloud.SSHKey) (*hcloud.Response, error)

Delete mocks base method.

func (*MockSSHKeyClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSSHKeyClient) Get

Get mocks base method.

func (*MockSSHKeyClient) GetByFingerprint

func (m *MockSSHKeyClient) GetByFingerprint(arg0 context.Context, arg1 string) (*hcloud.SSHKey, *hcloud.Response, error)

GetByFingerprint mocks base method.

func (*MockSSHKeyClient) GetByID

func (m *MockSSHKeyClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.SSHKey, *hcloud.Response, error)

GetByID mocks base method.

func (*MockSSHKeyClient) GetByName

func (m *MockSSHKeyClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.SSHKey, *hcloud.Response, error)

GetByName mocks base method.

func (*MockSSHKeyClient) List

List mocks base method.

func (*MockSSHKeyClient) Names

func (m *MockSSHKeyClient) Names() []string

Names mocks base method.

func (*MockSSHKeyClient) Update

Update mocks base method.

type MockSSHKeyClientMockRecorder

type MockSSHKeyClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockSSHKeyClientMockRecorder is the mock recorder for MockSSHKeyClient.

func (*MockSSHKeyClientMockRecorder) All

func (mr *MockSSHKeyClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockSSHKeyClientMockRecorder) AllWithOpts

func (mr *MockSSHKeyClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockSSHKeyClientMockRecorder) Create

func (mr *MockSSHKeyClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSSHKeyClientMockRecorder) Delete

func (mr *MockSSHKeyClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSSHKeyClientMockRecorder) Get

func (mr *MockSSHKeyClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSSHKeyClientMockRecorder) GetByFingerprint

func (mr *MockSSHKeyClientMockRecorder) GetByFingerprint(arg0, arg1 interface{}) *gomock.Call

GetByFingerprint indicates an expected call of GetByFingerprint.

func (*MockSSHKeyClientMockRecorder) GetByID

func (mr *MockSSHKeyClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockSSHKeyClientMockRecorder) GetByName

func (mr *MockSSHKeyClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockSSHKeyClientMockRecorder) List

func (mr *MockSSHKeyClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockSSHKeyClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockSSHKeyClientMockRecorder) Update

func (mr *MockSSHKeyClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockServerClient

type MockServerClient struct {
	// contains filtered or unexported fields
}

MockServerClient is a mock of ServerClient interface.

func NewMockServerClient

func NewMockServerClient(ctrl *gomock.Controller) *MockServerClient

NewMockServerClient creates a new mock instance.

func (*MockServerClient) All

func (m *MockServerClient) All(arg0 context.Context) ([]*hcloud.Server, error)

All mocks base method.

func (*MockServerClient) AllWithOpts

func (m *MockServerClient) AllWithOpts(arg0 context.Context, arg1 hcloud.ServerListOpts) ([]*hcloud.Server, error)

AllWithOpts mocks base method.

func (*MockServerClient) AttachISO

func (m *MockServerClient) AttachISO(arg0 context.Context, arg1 *hcloud.Server, arg2 *hcloud.ISO) (*hcloud.Action, *hcloud.Response, error)

AttachISO mocks base method.

func (*MockServerClient) AttachToNetwork

AttachToNetwork mocks base method.

func (*MockServerClient) ChangeAliasIPs

ChangeAliasIPs mocks base method.

func (*MockServerClient) ChangeDNSPtr

func (m *MockServerClient) ChangeDNSPtr(arg0 context.Context, arg1 *hcloud.Server, arg2 string, arg3 *string) (*hcloud.Action, *hcloud.Response, error)

ChangeDNSPtr mocks base method.

func (*MockServerClient) ChangeProtection

ChangeProtection mocks base method.

func (*MockServerClient) ChangeType

ChangeType mocks base method.

func (*MockServerClient) Create

Create mocks base method.

func (*MockServerClient) CreateImage

CreateImage mocks base method.

func (*MockServerClient) Delete

func (m *MockServerClient) Delete(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Response, error)

Delete mocks base method.

func (*MockServerClient) DetachFromNetwork

DetachFromNetwork mocks base method.

func (*MockServerClient) DetachISO

func (m *MockServerClient) DetachISO(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

DetachISO mocks base method.

func (*MockServerClient) DisableBackup

func (m *MockServerClient) DisableBackup(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

DisableBackup mocks base method.

func (*MockServerClient) DisableRescue

func (m *MockServerClient) DisableRescue(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

DisableRescue mocks base method.

func (*MockServerClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockServerClient) EnableBackup

func (m *MockServerClient) EnableBackup(arg0 context.Context, arg1 *hcloud.Server, arg2 string) (*hcloud.Action, *hcloud.Response, error)

EnableBackup mocks base method.

func (*MockServerClient) EnableRescue

EnableRescue mocks base method.

func (*MockServerClient) Get

Get mocks base method.

func (*MockServerClient) GetByID

func (m *MockServerClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Server, *hcloud.Response, error)

GetByID mocks base method.

func (*MockServerClient) GetByName

func (m *MockServerClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Server, *hcloud.Response, error)

GetByName mocks base method.

func (*MockServerClient) GetMetrics

GetMetrics mocks base method.

func (*MockServerClient) LabelKeys

func (m *MockServerClient) LabelKeys(arg0 string) []string

LabelKeys mocks base method.

func (*MockServerClient) List

List mocks base method.

func (*MockServerClient) Names

func (m *MockServerClient) Names() []string

Names mocks base method.

func (*MockServerClient) Poweroff

func (m *MockServerClient) Poweroff(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

Poweroff mocks base method.

func (*MockServerClient) Poweron

Poweron mocks base method.

func (*MockServerClient) Reboot

Reboot mocks base method.

func (*MockServerClient) Rebuild

Rebuild mocks base method.

func (*MockServerClient) RequestConsole

RequestConsole mocks base method.

func (*MockServerClient) Reset

Reset mocks base method.

func (*MockServerClient) ResetPassword

ResetPassword mocks base method.

func (*MockServerClient) Shutdown

func (m *MockServerClient) Shutdown(arg0 context.Context, arg1 *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

Shutdown mocks base method.

func (*MockServerClient) Update

Update mocks base method.

type MockServerClientMockRecorder

type MockServerClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockServerClientMockRecorder is the mock recorder for MockServerClient.

func (*MockServerClientMockRecorder) All

func (mr *MockServerClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockServerClientMockRecorder) AllWithOpts

func (mr *MockServerClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockServerClientMockRecorder) AttachISO

func (mr *MockServerClientMockRecorder) AttachISO(arg0, arg1, arg2 interface{}) *gomock.Call

AttachISO indicates an expected call of AttachISO.

func (*MockServerClientMockRecorder) AttachToNetwork

func (mr *MockServerClientMockRecorder) AttachToNetwork(arg0, arg1, arg2 interface{}) *gomock.Call

AttachToNetwork indicates an expected call of AttachToNetwork.

func (*MockServerClientMockRecorder) ChangeAliasIPs

func (mr *MockServerClientMockRecorder) ChangeAliasIPs(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeAliasIPs indicates an expected call of ChangeAliasIPs.

func (*MockServerClientMockRecorder) ChangeDNSPtr

func (mr *MockServerClientMockRecorder) ChangeDNSPtr(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ChangeDNSPtr indicates an expected call of ChangeDNSPtr.

func (*MockServerClientMockRecorder) ChangeProtection

func (mr *MockServerClientMockRecorder) ChangeProtection(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeProtection indicates an expected call of ChangeProtection.

func (*MockServerClientMockRecorder) ChangeType

func (mr *MockServerClientMockRecorder) ChangeType(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeType indicates an expected call of ChangeType.

func (*MockServerClientMockRecorder) Create

func (mr *MockServerClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServerClientMockRecorder) CreateImage

func (mr *MockServerClientMockRecorder) CreateImage(arg0, arg1, arg2 interface{}) *gomock.Call

CreateImage indicates an expected call of CreateImage.

func (*MockServerClientMockRecorder) Delete

func (mr *MockServerClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockServerClientMockRecorder) DetachFromNetwork

func (mr *MockServerClientMockRecorder) DetachFromNetwork(arg0, arg1, arg2 interface{}) *gomock.Call

DetachFromNetwork indicates an expected call of DetachFromNetwork.

func (*MockServerClientMockRecorder) DetachISO

func (mr *MockServerClientMockRecorder) DetachISO(arg0, arg1 interface{}) *gomock.Call

DetachISO indicates an expected call of DetachISO.

func (*MockServerClientMockRecorder) DisableBackup

func (mr *MockServerClientMockRecorder) DisableBackup(arg0, arg1 interface{}) *gomock.Call

DisableBackup indicates an expected call of DisableBackup.

func (*MockServerClientMockRecorder) DisableRescue

func (mr *MockServerClientMockRecorder) DisableRescue(arg0, arg1 interface{}) *gomock.Call

DisableRescue indicates an expected call of DisableRescue.

func (*MockServerClientMockRecorder) EnableBackup

func (mr *MockServerClientMockRecorder) EnableBackup(arg0, arg1, arg2 interface{}) *gomock.Call

EnableBackup indicates an expected call of EnableBackup.

func (*MockServerClientMockRecorder) EnableRescue

func (mr *MockServerClientMockRecorder) EnableRescue(arg0, arg1, arg2 interface{}) *gomock.Call

EnableRescue indicates an expected call of EnableRescue.

func (*MockServerClientMockRecorder) Get

func (mr *MockServerClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServerClientMockRecorder) GetByID

func (mr *MockServerClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockServerClientMockRecorder) GetByName

func (mr *MockServerClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockServerClientMockRecorder) GetMetrics

func (mr *MockServerClientMockRecorder) GetMetrics(arg0, arg1, arg2 interface{}) *gomock.Call

GetMetrics indicates an expected call of GetMetrics.

func (*MockServerClientMockRecorder) LabelKeys

func (mr *MockServerClientMockRecorder) LabelKeys(arg0 interface{}) *gomock.Call

LabelKeys indicates an expected call of LabelKeys.

func (*MockServerClientMockRecorder) List

func (mr *MockServerClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockServerClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockServerClientMockRecorder) Poweroff

func (mr *MockServerClientMockRecorder) Poweroff(arg0, arg1 interface{}) *gomock.Call

Poweroff indicates an expected call of Poweroff.

func (*MockServerClientMockRecorder) Poweron

func (mr *MockServerClientMockRecorder) Poweron(arg0, arg1 interface{}) *gomock.Call

Poweron indicates an expected call of Poweron.

func (*MockServerClientMockRecorder) Reboot

func (mr *MockServerClientMockRecorder) Reboot(arg0, arg1 interface{}) *gomock.Call

Reboot indicates an expected call of Reboot.

func (*MockServerClientMockRecorder) Rebuild

func (mr *MockServerClientMockRecorder) Rebuild(arg0, arg1, arg2 interface{}) *gomock.Call

Rebuild indicates an expected call of Rebuild.

func (*MockServerClientMockRecorder) RequestConsole

func (mr *MockServerClientMockRecorder) RequestConsole(arg0, arg1 interface{}) *gomock.Call

RequestConsole indicates an expected call of RequestConsole.

func (*MockServerClientMockRecorder) Reset

func (mr *MockServerClientMockRecorder) Reset(arg0, arg1 interface{}) *gomock.Call

Reset indicates an expected call of Reset.

func (*MockServerClientMockRecorder) ResetPassword

func (mr *MockServerClientMockRecorder) ResetPassword(arg0, arg1 interface{}) *gomock.Call

ResetPassword indicates an expected call of ResetPassword.

func (*MockServerClientMockRecorder) Shutdown

func (mr *MockServerClientMockRecorder) Shutdown(arg0, arg1 interface{}) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockServerClientMockRecorder) Update

func (mr *MockServerClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockServerTypeClient

type MockServerTypeClient struct {
	// contains filtered or unexported fields
}

MockServerTypeClient is a mock of ServerTypeClient interface.

func NewMockServerTypeClient

func NewMockServerTypeClient(ctrl *gomock.Controller) *MockServerTypeClient

NewMockServerTypeClient creates a new mock instance.

func (*MockServerTypeClient) All

All mocks base method.

func (*MockServerTypeClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockServerTypeClient) Get

Get mocks base method.

func (*MockServerTypeClient) GetByID

GetByID mocks base method.

func (*MockServerTypeClient) GetByName

GetByName mocks base method.

func (*MockServerTypeClient) List

List mocks base method.

func (*MockServerTypeClient) Names

func (m *MockServerTypeClient) Names() []string

Names mocks base method.

type MockServerTypeClientMockRecorder

type MockServerTypeClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockServerTypeClientMockRecorder is the mock recorder for MockServerTypeClient.

func (*MockServerTypeClientMockRecorder) All

func (mr *MockServerTypeClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockServerTypeClientMockRecorder) Get

func (mr *MockServerTypeClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServerTypeClientMockRecorder) GetByID

func (mr *MockServerTypeClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockServerTypeClientMockRecorder) GetByName

func (mr *MockServerTypeClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockServerTypeClientMockRecorder) List

func (mr *MockServerTypeClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockServerTypeClientMockRecorder) Names

Names indicates an expected call of Names.

type MockVolumeClient

type MockVolumeClient struct {
	// contains filtered or unexported fields
}

MockVolumeClient is a mock of VolumeClient interface.

func NewMockVolumeClient

func NewMockVolumeClient(ctrl *gomock.Controller) *MockVolumeClient

NewMockVolumeClient creates a new mock instance.

func (*MockVolumeClient) All

func (m *MockVolumeClient) All(arg0 context.Context) ([]*hcloud.Volume, error)

All mocks base method.

func (*MockVolumeClient) AllWithOpts

func (m *MockVolumeClient) AllWithOpts(arg0 context.Context, arg1 hcloud.VolumeListOpts) ([]*hcloud.Volume, error)

AllWithOpts mocks base method.

func (*MockVolumeClient) Attach

Attach mocks base method.

func (*MockVolumeClient) AttachWithOpts

AttachWithOpts mocks base method.

func (*MockVolumeClient) ChangeProtection

ChangeProtection mocks base method.

func (*MockVolumeClient) Create

Create mocks base method.

func (*MockVolumeClient) Delete

func (m *MockVolumeClient) Delete(arg0 context.Context, arg1 *hcloud.Volume) (*hcloud.Response, error)

Delete mocks base method.

func (*MockVolumeClient) Detach

Detach mocks base method.

func (*MockVolumeClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVolumeClient) Get

Get mocks base method.

func (*MockVolumeClient) GetByID

func (m *MockVolumeClient) GetByID(arg0 context.Context, arg1 int) (*hcloud.Volume, *hcloud.Response, error)

GetByID mocks base method.

func (*MockVolumeClient) GetByName

func (m *MockVolumeClient) GetByName(arg0 context.Context, arg1 string) (*hcloud.Volume, *hcloud.Response, error)

GetByName mocks base method.

func (*MockVolumeClient) List

List mocks base method.

func (*MockVolumeClient) Names

func (m *MockVolumeClient) Names() []string

Names mocks base method.

func (*MockVolumeClient) Resize

func (m *MockVolumeClient) Resize(arg0 context.Context, arg1 *hcloud.Volume, arg2 int) (*hcloud.Action, *hcloud.Response, error)

Resize mocks base method.

func (*MockVolumeClient) Update

Update mocks base method.

type MockVolumeClientMockRecorder

type MockVolumeClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockVolumeClientMockRecorder is the mock recorder for MockVolumeClient.

func (*MockVolumeClientMockRecorder) All

func (mr *MockVolumeClientMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockVolumeClientMockRecorder) AllWithOpts

func (mr *MockVolumeClientMockRecorder) AllWithOpts(arg0, arg1 interface{}) *gomock.Call

AllWithOpts indicates an expected call of AllWithOpts.

func (*MockVolumeClientMockRecorder) Attach

func (mr *MockVolumeClientMockRecorder) Attach(arg0, arg1, arg2 interface{}) *gomock.Call

Attach indicates an expected call of Attach.

func (*MockVolumeClientMockRecorder) AttachWithOpts

func (mr *MockVolumeClientMockRecorder) AttachWithOpts(arg0, arg1, arg2 interface{}) *gomock.Call

AttachWithOpts indicates an expected call of AttachWithOpts.

func (*MockVolumeClientMockRecorder) ChangeProtection

func (mr *MockVolumeClientMockRecorder) ChangeProtection(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeProtection indicates an expected call of ChangeProtection.

func (*MockVolumeClientMockRecorder) Create

func (mr *MockVolumeClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockVolumeClientMockRecorder) Delete

func (mr *MockVolumeClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVolumeClientMockRecorder) Detach

func (mr *MockVolumeClientMockRecorder) Detach(arg0, arg1 interface{}) *gomock.Call

Detach indicates an expected call of Detach.

func (*MockVolumeClientMockRecorder) Get

func (mr *MockVolumeClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockVolumeClientMockRecorder) GetByID

func (mr *MockVolumeClientMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockVolumeClientMockRecorder) GetByName

func (mr *MockVolumeClientMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

func (*MockVolumeClientMockRecorder) List

func (mr *MockVolumeClientMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockVolumeClientMockRecorder) Names

Names indicates an expected call of Names.

func (*MockVolumeClientMockRecorder) Resize

func (mr *MockVolumeClientMockRecorder) Resize(arg0, arg1, arg2 interface{}) *gomock.Call

Resize indicates an expected call of Resize.

func (*MockVolumeClientMockRecorder) Update

func (mr *MockVolumeClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type NetworkClient

type NetworkClient interface {
	NetworkClientBase
	Names() []string
	Name(int) string
}

NetworkClient embeds the Hetzner Cloud Network client and provides some additional helper functions.

func NewNetworkClient

func NewNetworkClient(client NetworkClientBase) NetworkClient

type NetworkClientBase

NetworkClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.NetworkClient".

type SSHKeyClient

type SSHKeyClient interface {
	SSHKeyClientBase
	Names() []string
}

SSHKeyClient embeds the Hetzner Cloud SSHKey client and provides some additional helper functions.

func NewSSHKeyClient

func NewSSHKeyClient(client SSHKeyClientBase) SSHKeyClient

type SSHKeyClientBase

SSHKeyClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.SSHKeyClient".

type ServerClient

type ServerClient interface {
	ServerClientBase
	Names() []string
	LabelKeys(idOrName string) []string
}

func NewServerClient

func NewServerClient(client *hcloud.ServerClient) ServerClient

type ServerClientBase

type ServerClientBase interface {
	All(context.Context) ([]*hcloud.Server, error)
	AllWithOpts(context.Context, hcloud.ServerListOpts) ([]*hcloud.Server, error)
	AttachISO(context.Context, *hcloud.Server, *hcloud.ISO) (*hcloud.Action, *hcloud.Response, error)
	AttachToNetwork(context.Context, *hcloud.Server, hcloud.ServerAttachToNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
	ChangeAliasIPs(context.Context, *hcloud.Server, hcloud.ServerChangeAliasIPsOpts) (*hcloud.Action, *hcloud.Response, error)
	ChangeDNSPtr(context.Context, *hcloud.Server, string, *string) (*hcloud.Action, *hcloud.Response, error)
	ChangeProtection(context.Context, *hcloud.Server, hcloud.ServerChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
	ChangeType(context.Context, *hcloud.Server, hcloud.ServerChangeTypeOpts) (*hcloud.Action, *hcloud.Response, error)
	Create(context.Context, hcloud.ServerCreateOpts) (hcloud.ServerCreateResult, *hcloud.Response, error)
	CreateImage(context.Context, *hcloud.Server, *hcloud.ServerCreateImageOpts) (hcloud.ServerCreateImageResult, *hcloud.Response, error)
	Delete(context.Context, *hcloud.Server) (*hcloud.Response, error)
	DetachFromNetwork(context.Context, *hcloud.Server, hcloud.ServerDetachFromNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
	DetachISO(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	DisableBackup(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	DisableRescue(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	EnableBackup(context.Context, *hcloud.Server, string) (*hcloud.Action, *hcloud.Response, error)
	EnableRescue(context.Context, *hcloud.Server, hcloud.ServerEnableRescueOpts) (hcloud.ServerEnableRescueResult, *hcloud.Response, error)
	Get(context.Context, string) (*hcloud.Server, *hcloud.Response, error)
	GetByID(context.Context, int) (*hcloud.Server, *hcloud.Response, error)
	GetByName(context.Context, string) (*hcloud.Server, *hcloud.Response, error)
	GetMetrics(context.Context, *hcloud.Server, hcloud.ServerGetMetricsOpts) (*hcloud.ServerMetrics, *hcloud.Response, error)
	List(context.Context, hcloud.ServerListOpts) ([]*hcloud.Server, *hcloud.Response, error)
	Poweroff(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	Poweron(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	Reboot(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	Rebuild(context.Context, *hcloud.Server, hcloud.ServerRebuildOpts) (*hcloud.Action, *hcloud.Response, error)
	RequestConsole(context.Context, *hcloud.Server) (hcloud.ServerRequestConsoleResult, *hcloud.Response, error)
	Reset(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	ResetPassword(context.Context, *hcloud.Server) (hcloud.ServerResetPasswordResult, *hcloud.Response, error)
	Shutdown(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
	Update(context.Context, *hcloud.Server, hcloud.ServerUpdateOpts) (*hcloud.Server, *hcloud.Response, error)
}

ServerClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ServerClient".

type ServerTypeClient

type ServerTypeClient interface {
	ServerTypeClientBase
	Names() []string
}

func NewServerTypeClient

func NewServerTypeClient(client ServerTypeClientBase) ServerTypeClient

type ServerTypeClientBase

ServerTypeClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ServerTypeClient".

type VolumeClient

type VolumeClient interface {
	VolumeClientBase
	Names() []string
}

VolumeClient embeds the Hetzner Cloud Volume client and provides some additional helper functions.

func NewVolumeClient

func NewVolumeClient(client VolumeClientBase) VolumeClient

Jump to

Keyboard shortcuts

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