Documentation
¶
Index ¶
- func NewActionClientMock() hcloud_wrapped.ActionClient
- func NewFloatingIPClientMock() hcloud.FloatingIPClient
- func NewISOClientMock() hcloud_wrapped.ISOClient
- func NewImageClientMock() hcloud.ImageClient
- func NewSSHClientMock() hcloud_wrapped.SSHKeyClient
- func NewServerClientMock() hcloud_wrapped.ServerClient
- func NewServerTypeClientMock() hcloud.ServerTypeClient
- type ActionClientMock
- func (m *ActionClientMock) All(ctx context.Context) ([]*hcloud.Action, error)
- func (m *ActionClientMock) GetByID(ctx context.Context, id int) (*hcloud.Action, *hcloud.Response, error)
- func (m *ActionClientMock) List(ctx context.Context, opts hcloud.ActionListOpts) ([]*hcloud.Action, *hcloud.Response, error)
- func (m *ActionClientMock) WatchProgress(ctx context.Context, action *hcloud.Action) (<-chan int, <-chan error)
- type FloatingIPClientMock
- func (m *FloatingIPClientMock) All(ctx context.Context) ([]*hcloud.FloatingIP, error)
- func (m *FloatingIPClientMock) Assign(ctx context.Context, floatingIP *hcloud.FloatingIP, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *FloatingIPClientMock) Create(ctx context.Context, opts hcloud.FloatingIPCreateOpts) (hcloud.FloatingIPCreateResult, *hcloud.Response, error)
- func (m *FloatingIPClientMock) Delete(ctx context.Context, floatingIP *hcloud.FloatingIP) (*hcloud.Response, error)
- func (m *FloatingIPClientMock) GetByID(ctx context.Context, id int) (*hcloud.FloatingIP, *hcloud.Response, error)
- func (m *FloatingIPClientMock) List(ctx context.Context, opts hcloud.FloatingIPListOpts) ([]*hcloud.FloatingIP, *hcloud.Response, error)
- func (m *FloatingIPClientMock) Unassign(ctx context.Context, floatingIP *hcloud.FloatingIP) (*hcloud.Action, *hcloud.Response, error)
- func (m *FloatingIPClientMock) Update(ctx context.Context, floatingIP *hcloud.FloatingIP, ...) (*hcloud.FloatingIP, *hcloud.Response, error)
- type ISOClientMock
- func (m *ISOClientMock) Get(ctx context.Context, idOrName string) (*hcloud.ISO, *hcloud.Response, error)
- func (m *ISOClientMock) GetByID(ctx context.Context, id int) (*hcloud.ISO, *hcloud.Response, error)
- func (m *ISOClientMock) GetByName(ctx context.Context, name string) (*hcloud.ISO, *hcloud.Response, error)
- type ImageClientMock
- func (m *ImageClientMock) All(ctx context.Context) ([]*hcloud.Image, error)
- func (m *ImageClientMock) Delete(ctx context.Context, image *hcloud.Image) (*hcloud.Response, error)
- func (m *ImageClientMock) Get(ctx context.Context, idOrName string) (*hcloud.Image, *hcloud.Response, error)
- func (m *ImageClientMock) GetByID(ctx context.Context, id int) (*hcloud.Image, *hcloud.Response, error)
- func (m *ImageClientMock) GetByName(ctx context.Context, name string) (*hcloud.Image, *hcloud.Response, error)
- func (m *ImageClientMock) List(ctx context.Context, opts hcloud.ImageListOpts) ([]*hcloud.Image, *hcloud.Response, error)
- type SSHKeyClientMock
- func (m *SSHKeyClientMock) All(ctx context.Context) ([]*hcloud.SSHKey, error)
- func (m *SSHKeyClientMock) Create(ctx context.Context, opts hcloud.SSHKeyCreateOpts) (*hcloud.SSHKey, *hcloud.Response, error)
- func (m *SSHKeyClientMock) Delete(ctx context.Context, sshKey *hcloud.SSHKey) (*hcloud.Response, error)
- func (m *SSHKeyClientMock) Get(ctx context.Context, idOrName string) (*hcloud.SSHKey, *hcloud.Response, error)
- func (m *SSHKeyClientMock) GetByID(ctx context.Context, id int) (*hcloud.SSHKey, *hcloud.Response, error)
- func (m *SSHKeyClientMock) GetByName(ctx context.Context, name string) (*hcloud.SSHKey, *hcloud.Response, error)
- func (m *SSHKeyClientMock) Update(ctx context.Context, sshKey *hcloud.SSHKey, opts hcloud.SSHKeyUpdateOpts) (*hcloud.SSHKey, *hcloud.Response, error)
- type ServerClientMock
- func (m *ServerClientMock) All(ctx context.Context) ([]*hcloud.Server, error)
- func (m *ServerClientMock) AttachISO(ctx context.Context, server *hcloud.Server, iso *hcloud.ISO) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) Create(ctx context.Context, opts hcloud.ServerCreateOpts) (hcloud.ServerCreateResult, *hcloud.Response, error)
- func (m *ServerClientMock) Delete(ctx context.Context, server *hcloud.Server) (*hcloud.Response, error)
- func (m *ServerClientMock) DetachISO(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) DisableBackup(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) DisableRescue(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) EnableBackup(ctx context.Context, server *hcloud.Server, window string) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) EnableRescue(ctx context.Context, server *hcloud.Server, opts hcloud.ServerEnableRescueOpts) (hcloud.ServerEnableRescueResult, *hcloud.Response, error)
- func (m *ServerClientMock) Get(ctx context.Context, idOrName string) (*hcloud.Server, *hcloud.Response, error)
- func (m *ServerClientMock) GetByID(ctx context.Context, id int) (*hcloud.Server, *hcloud.Response, error)
- func (m *ServerClientMock) GetByName(ctx context.Context, name string) (*hcloud.Server, *hcloud.Response, error)
- func (m *ServerClientMock) Poweroff(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) Poweron(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) Reboot(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) Reset(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *ServerClientMock) Update(ctx context.Context, server *hcloud.Server, opts hcloud.ServerUpdateOpts) (*hcloud.Server, *hcloud.Response, error)
- type ServerTypeClientMock
- func (m *ServerTypeClientMock) All(ctx context.Context) ([]*hcloud.ServerType, error)
- func (m *ServerTypeClientMock) Get(ctx context.Context, idOrName string) (*hcloud.ServerType, *hcloud.Response, error)
- func (m *ServerTypeClientMock) GetByID(ctx context.Context, id int) (*hcloud.ServerType, *hcloud.Response, error)
- func (m *ServerTypeClientMock) GetByName(ctx context.Context, name string) (*hcloud.ServerType, *hcloud.Response, error)
- func (m *ServerTypeClientMock) List(ctx context.Context, opts hcloud.ServerTypeListOpts) ([]*hcloud.ServerType, *hcloud.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActionClientMock ¶
func NewActionClientMock() hcloud_wrapped.ActionClient
NewActionClientMock creates a new ActionClient mock
func NewFloatingIPClientMock ¶
func NewFloatingIPClientMock() hcloud.FloatingIPClient
NewFloatingIPClientMock creates a FloatingIPClientMock
func NewISOClientMock ¶ added in v0.3.2
func NewISOClientMock() hcloud_wrapped.ISOClient
NewISOClientMock creates a new ISOClientMock
func NewImageClientMock ¶ added in v0.3.0
func NewImageClientMock() hcloud.ImageClient
NewImageClientMock creates a new ImageClientMock
func NewSSHClientMock ¶
func NewSSHClientMock() hcloud_wrapped.SSHKeyClient
NewSSHClientMock creates a new SSHKeyClientMock
func NewServerClientMock ¶
func NewServerClientMock() hcloud_wrapped.ServerClient
NewServerClientMock creates a new ServerClientMock
func NewServerTypeClientMock ¶ added in v0.3.0
func NewServerTypeClientMock() hcloud.ServerTypeClient
NewServerTypeClientMock creates a new ServerTypeClientMock
Types ¶
type ActionClientMock ¶
ActionClientMock mocks the hcloud.ActionClient interface
func (*ActionClientMock) GetByID ¶
func (m *ActionClientMock) GetByID(ctx context.Context, id int) (*hcloud.Action, *hcloud.Response, error)
GetByID mock
func (*ActionClientMock) List ¶
func (m *ActionClientMock) List(ctx context.Context, opts hcloud.ActionListOpts) ([]*hcloud.Action, *hcloud.Response, error)
List mock
func (*ActionClientMock) WatchProgress ¶
func (m *ActionClientMock) WatchProgress(ctx context.Context, action *hcloud.Action) (<-chan int, <-chan error)
WatchProgress mock
type FloatingIPClientMock ¶
FloatingIPClientMock mock of hcloud.FloatingIPClient
func (*FloatingIPClientMock) All ¶
func (m *FloatingIPClientMock) All(ctx context.Context) ([]*hcloud.FloatingIP, error)
All mock
func (*FloatingIPClientMock) Assign ¶
func (m *FloatingIPClientMock) Assign(ctx context.Context, floatingIP *hcloud.FloatingIP, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Assign mock
func (*FloatingIPClientMock) Create ¶
func (m *FloatingIPClientMock) Create(ctx context.Context, opts hcloud.FloatingIPCreateOpts) (hcloud.FloatingIPCreateResult, *hcloud.Response, error)
Create mock
func (*FloatingIPClientMock) Delete ¶
func (m *FloatingIPClientMock) Delete(ctx context.Context, floatingIP *hcloud.FloatingIP) (*hcloud.Response, error)
Delete mock
func (*FloatingIPClientMock) GetByID ¶
func (m *FloatingIPClientMock) GetByID(ctx context.Context, id int) (*hcloud.FloatingIP, *hcloud.Response, error)
GetByID mock
func (*FloatingIPClientMock) List ¶
func (m *FloatingIPClientMock) List(ctx context.Context, opts hcloud.FloatingIPListOpts) ([]*hcloud.FloatingIP, *hcloud.Response, error)
List mock
func (*FloatingIPClientMock) Unassign ¶
func (m *FloatingIPClientMock) Unassign(ctx context.Context, floatingIP *hcloud.FloatingIP) (*hcloud.Action, *hcloud.Response, error)
Unassign mock
func (*FloatingIPClientMock) Update ¶
func (m *FloatingIPClientMock) Update(ctx context.Context, floatingIP *hcloud.FloatingIP, opts hcloud.FloatingIPUpdateOpts) (*hcloud.FloatingIP, *hcloud.Response, error)
Update mock
type ISOClientMock ¶ added in v0.3.2
ISOClientMock mocks the ISOClient interface
func (*ISOClientMock) Get ¶ added in v0.3.2
func (m *ISOClientMock) Get(ctx context.Context, idOrName string) (*hcloud.ISO, *hcloud.Response, error)
Get mock
type ImageClientMock ¶ added in v0.3.0
ImageClientMock mocks the ImageClient interface
func (*ImageClientMock) Delete ¶ added in v0.3.0
func (m *ImageClientMock) Delete(ctx context.Context, image *hcloud.Image) (*hcloud.Response, error)
Delete mock
func (*ImageClientMock) Get ¶ added in v0.3.0
func (m *ImageClientMock) Get(ctx context.Context, idOrName string) (*hcloud.Image, *hcloud.Response, error)
Get mock
func (*ImageClientMock) GetByID ¶ added in v0.3.0
func (m *ImageClientMock) GetByID(ctx context.Context, id int) (*hcloud.Image, *hcloud.Response, error)
GetByID mock
type SSHKeyClientMock ¶
SSHKeyClientMock mocks the hcloud.SSHKeyClient interface
func (*SSHKeyClientMock) Create ¶
func (m *SSHKeyClientMock) Create(ctx context.Context, opts hcloud.SSHKeyCreateOpts) (*hcloud.SSHKey, *hcloud.Response, error)
Create mock
func (*SSHKeyClientMock) Delete ¶
func (m *SSHKeyClientMock) Delete(ctx context.Context, sshKey *hcloud.SSHKey) (*hcloud.Response, error)
Delete mock
func (*SSHKeyClientMock) Get ¶
func (m *SSHKeyClientMock) Get(ctx context.Context, idOrName string) (*hcloud.SSHKey, *hcloud.Response, error)
Get mock
func (*SSHKeyClientMock) GetByID ¶
func (m *SSHKeyClientMock) GetByID(ctx context.Context, id int) (*hcloud.SSHKey, *hcloud.Response, error)
GetByID mock
type ServerClientMock ¶
ServerClientMock mocks the ServerClient interface
func (*ServerClientMock) AttachISO ¶ added in v0.3.2
func (m *ServerClientMock) AttachISO(ctx context.Context, server *hcloud.Server, iso *hcloud.ISO) (*hcloud.Action, *hcloud.Response, error)
AttachISO mock
func (*ServerClientMock) Create ¶
func (m *ServerClientMock) Create(ctx context.Context, opts hcloud.ServerCreateOpts) (hcloud.ServerCreateResult, *hcloud.Response, error)
Create mock
func (*ServerClientMock) Delete ¶
func (m *ServerClientMock) Delete(ctx context.Context, server *hcloud.Server) (*hcloud.Response, error)
Delete mock
func (*ServerClientMock) DetachISO ¶ added in v0.3.2
func (m *ServerClientMock) DetachISO(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
DetachISO mock
func (*ServerClientMock) DisableBackup ¶
func (m *ServerClientMock) DisableBackup(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
DisableBackup mock
func (*ServerClientMock) DisableRescue ¶
func (m *ServerClientMock) DisableRescue(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
DisableRescue mock
func (*ServerClientMock) EnableBackup ¶
func (m *ServerClientMock) EnableBackup(ctx context.Context, server *hcloud.Server, window string) (*hcloud.Action, *hcloud.Response, error)
EnableBackup mock
func (*ServerClientMock) EnableRescue ¶
func (m *ServerClientMock) EnableRescue(ctx context.Context, server *hcloud.Server, opts hcloud.ServerEnableRescueOpts) (hcloud.ServerEnableRescueResult, *hcloud.Response, error)
EnableRescue mock
func (*ServerClientMock) Get ¶
func (m *ServerClientMock) Get(ctx context.Context, idOrName string) (*hcloud.Server, *hcloud.Response, error)
Get mock
func (*ServerClientMock) GetByID ¶
func (m *ServerClientMock) GetByID(ctx context.Context, id int) (*hcloud.Server, *hcloud.Response, error)
GetByID mock
func (*ServerClientMock) GetByName ¶
func (m *ServerClientMock) GetByName(ctx context.Context, name string) (*hcloud.Server, *hcloud.Response, error)
GetByName mock
func (*ServerClientMock) Poweroff ¶
func (m *ServerClientMock) Poweroff(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Poweroff mock
func (*ServerClientMock) Poweron ¶
func (m *ServerClientMock) Poweron(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Poweron mock
func (*ServerClientMock) Reboot ¶
func (m *ServerClientMock) Reboot(ctx context.Context, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Reboot mock
type ServerTypeClientMock ¶ added in v0.3.0
ServerTypeClientMock mocks the ServerTypeClient interface
func (*ServerTypeClientMock) All ¶ added in v0.3.0
func (m *ServerTypeClientMock) All(ctx context.Context) ([]*hcloud.ServerType, error)
All mock
func (*ServerTypeClientMock) Get ¶ added in v0.3.0
func (m *ServerTypeClientMock) Get(ctx context.Context, idOrName string) (*hcloud.ServerType, *hcloud.Response, error)
Get mock
func (*ServerTypeClientMock) GetByID ¶ added in v0.3.0
func (m *ServerTypeClientMock) GetByID(ctx context.Context, id int) (*hcloud.ServerType, *hcloud.Response, error)
GetByID mock
func (*ServerTypeClientMock) GetByName ¶ added in v0.3.0
func (m *ServerTypeClientMock) GetByName(ctx context.Context, name string) (*hcloud.ServerType, *hcloud.Response, error)
GetByName mock
func (*ServerTypeClientMock) List ¶ added in v0.3.0
func (m *ServerTypeClientMock) List(ctx context.Context, opts hcloud.ServerTypeListOpts) ([]*hcloud.ServerType, *hcloud.Response, error)
List mock