Documentation ¶
Index ¶
- func GetLoadBalancerPtr(args mock.Arguments, i int) *hcloud.LoadBalancer
- type ActionClient
- type CertificateClient
- func (m *CertificateClient) AllWithOpts(ctx context.Context, opts hcloud.CertificateListOpts) ([]*hcloud.Certificate, error)
- func (m *CertificateClient) CreateCertificate(ctx context.Context, opts hcloud.CertificateCreateOpts) (hcloud.CertificateCreateResult, *hcloud.Response, error)
- func (m *CertificateClient) Get(ctx context.Context, idOrName string) (*hcloud.Certificate, *hcloud.Response, error)
- type LoadBalancerClient
- func (m *LoadBalancerClient) AddIPTarget(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) AddServerTarget(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) AddService(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) AllWithOpts(ctx context.Context, opts hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, error)
- func (m *LoadBalancerClient) AttachToNetwork(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) ChangeAlgorithm(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) ChangeType(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) Create(ctx context.Context, opts hcloud.LoadBalancerCreateOpts) (hcloud.LoadBalancerCreateResult, *hcloud.Response, error)
- func (m *LoadBalancerClient) Delete(ctx context.Context, lb *hcloud.LoadBalancer) (*hcloud.Response, error)
- func (m *LoadBalancerClient) DeleteService(ctx context.Context, lb *hcloud.LoadBalancer, listenPort int) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) DetachFromNetwork(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) DisablePublicInterface(ctx context.Context, lb *hcloud.LoadBalancer) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) EnablePublicInterface(ctx context.Context, lb *hcloud.LoadBalancer) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) GetByID(ctx context.Context, id int) (*hcloud.LoadBalancer, *hcloud.Response, error)
- func (m *LoadBalancerClient) GetByName(ctx context.Context, name string) (*hcloud.LoadBalancer, *hcloud.Response, error)
- func (m *LoadBalancerClient) RemoveIPTarget(ctx context.Context, lb *hcloud.LoadBalancer, ip net.IP) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) RemoveServerTarget(ctx context.Context, lb *hcloud.LoadBalancer, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
- func (m *LoadBalancerClient) Update(ctx context.Context, lb *hcloud.LoadBalancer, ...) (*hcloud.LoadBalancer, *hcloud.Response, error)
- func (m *LoadBalancerClient) UpdateService(ctx context.Context, lb *hcloud.LoadBalancer, listenPort int, ...) (*hcloud.Action, *hcloud.Response, error)
- type NetworkClient
- type RobotClient
- func (m *RobotClient) BootLinuxDelete(id int) (*models.Linux, error)
- func (m *RobotClient) BootLinuxGet(id int) (*models.Linux, error)
- func (m *RobotClient) BootLinuxSet(id int, input *models.LinuxSetInput) (*models.Linux, error)
- func (m *RobotClient) BootRescueDelete(id int) (*models.Rescue, error)
- func (m *RobotClient) BootRescueGet(id int) (*models.Rescue, error)
- func (m *RobotClient) BootRescueSet(id int, input *models.RescueSetInput) (*models.Rescue, error)
- func (m *RobotClient) FailoverGet(ip string) (*models.Failover, error)
- func (m *RobotClient) FailoverGetList() ([]models.Failover, error)
- func (m *RobotClient) GetVersion() string
- func (m *RobotClient) IPGetList() ([]models.IP, error)
- func (m *RobotClient) KeyGetList() ([]models.Key, error)
- func (m *RobotClient) KeySet(input *models.KeySetInput) (*models.Key, error)
- func (m *RobotClient) RDnsGet(ip string) (*models.Rdns, error)
- func (m *RobotClient) RDnsGetList() ([]models.Rdns, error)
- func (m *RobotClient) ResetGet(id int) (*models.Reset, error)
- func (m *RobotClient) ResetSet(id int, input *models.ResetSetInput) (*models.ResetPost, error)
- func (m *RobotClient) ServerGet(id int) (*models.Server, error)
- func (m *RobotClient) ServerGetList() ([]models.Server, error)
- func (m *RobotClient) ServerReverse(id int) (*models.Cancellation, error)
- func (m *RobotClient) ServerSetName(id int, input *models.ServerSetNameInput) (*models.Server, error)
- func (m *RobotClient) SetBaseURL(baseURL string)
- func (m *RobotClient) SetUserAgent(userAgent string)
- func (m *RobotClient) ValidateCredentials() error
- type ServerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoadBalancerPtr ¶
func GetLoadBalancerPtr(args mock.Arguments, i int) *hcloud.LoadBalancer
Types ¶
type CertificateClient ¶
func (*CertificateClient) AllWithOpts ¶
func (m *CertificateClient) AllWithOpts( ctx context.Context, opts hcloud.CertificateListOpts, ) ([]*hcloud.Certificate, error)
func (*CertificateClient) CreateCertificate ¶
func (m *CertificateClient) CreateCertificate( ctx context.Context, opts hcloud.CertificateCreateOpts, ) (hcloud.CertificateCreateResult, *hcloud.Response, error)
type LoadBalancerClient ¶
func (*LoadBalancerClient) AddIPTarget ¶
func (m *LoadBalancerClient) AddIPTarget( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerAddIPTargetOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) AddServerTarget ¶
func (m *LoadBalancerClient) AddServerTarget( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerAddServerTargetOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) AddService ¶
func (m *LoadBalancerClient) AddService( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerAddServiceOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) AllWithOpts ¶
func (m *LoadBalancerClient) AllWithOpts( ctx context.Context, opts hcloud.LoadBalancerListOpts, ) ([]*hcloud.LoadBalancer, error)
func (*LoadBalancerClient) AttachToNetwork ¶
func (m *LoadBalancerClient) AttachToNetwork( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerAttachToNetworkOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) ChangeAlgorithm ¶
func (m *LoadBalancerClient) ChangeAlgorithm( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerChangeAlgorithmOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) ChangeType ¶
func (m *LoadBalancerClient) ChangeType( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerChangeTypeOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) Create ¶
func (m *LoadBalancerClient) Create( ctx context.Context, opts hcloud.LoadBalancerCreateOpts, ) (hcloud.LoadBalancerCreateResult, *hcloud.Response, error)
func (*LoadBalancerClient) Delete ¶
func (m *LoadBalancerClient) Delete(ctx context.Context, lb *hcloud.LoadBalancer) (*hcloud.Response, error)
func (*LoadBalancerClient) DeleteService ¶
func (*LoadBalancerClient) DetachFromNetwork ¶
func (m *LoadBalancerClient) DetachFromNetwork( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerDetachFromNetworkOpts, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) DisablePublicInterface ¶
func (m *LoadBalancerClient) DisablePublicInterface( ctx context.Context, lb *hcloud.LoadBalancer, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) EnablePublicInterface ¶
func (m *LoadBalancerClient) EnablePublicInterface( ctx context.Context, lb *hcloud.LoadBalancer, ) (*hcloud.Action, *hcloud.Response, error)
func (*LoadBalancerClient) GetByID ¶
func (m *LoadBalancerClient) GetByID(ctx context.Context, id int) (*hcloud.LoadBalancer, *hcloud.Response, error)
func (*LoadBalancerClient) GetByName ¶
func (m *LoadBalancerClient) GetByName( ctx context.Context, name string, ) (*hcloud.LoadBalancer, *hcloud.Response, error)
func (*LoadBalancerClient) RemoveIPTarget ¶
func (*LoadBalancerClient) RemoveServerTarget ¶
func (*LoadBalancerClient) Update ¶
func (m *LoadBalancerClient) Update( ctx context.Context, lb *hcloud.LoadBalancer, opts hcloud.LoadBalancerUpdateOpts, ) (*hcloud.LoadBalancer, *hcloud.Response, error)
func (*LoadBalancerClient) UpdateService ¶
func (m *LoadBalancerClient) UpdateService( ctx context.Context, lb *hcloud.LoadBalancer, listenPort int, opts hcloud.LoadBalancerUpdateServiceOpts, ) (*hcloud.Action, *hcloud.Response, error)
type NetworkClient ¶
type RobotClient ¶
func (*RobotClient) BootLinuxDelete ¶
func (m *RobotClient) BootLinuxDelete(id int) (*models.Linux, error)
func (*RobotClient) BootLinuxGet ¶
func (m *RobotClient) BootLinuxGet(id int) (*models.Linux, error)
func (*RobotClient) BootLinuxSet ¶
func (m *RobotClient) BootLinuxSet(id int, input *models.LinuxSetInput) (*models.Linux, error)
func (*RobotClient) BootRescueDelete ¶
func (m *RobotClient) BootRescueDelete(id int) (*models.Rescue, error)
func (*RobotClient) BootRescueGet ¶
func (m *RobotClient) BootRescueGet(id int) (*models.Rescue, error)
func (*RobotClient) BootRescueSet ¶
func (m *RobotClient) BootRescueSet(id int, input *models.RescueSetInput) (*models.Rescue, error)
func (*RobotClient) FailoverGet ¶
func (m *RobotClient) FailoverGet(ip string) (*models.Failover, error)
func (*RobotClient) FailoverGetList ¶
func (m *RobotClient) FailoverGetList() ([]models.Failover, error)
func (*RobotClient) GetVersion ¶
func (m *RobotClient) GetVersion() string
func (*RobotClient) KeyGetList ¶
func (m *RobotClient) KeyGetList() ([]models.Key, error)
func (*RobotClient) KeySet ¶
func (m *RobotClient) KeySet(input *models.KeySetInput) (*models.Key, error)
func (*RobotClient) RDnsGetList ¶
func (m *RobotClient) RDnsGetList() ([]models.Rdns, error)
func (*RobotClient) ResetSet ¶
func (m *RobotClient) ResetSet(id int, input *models.ResetSetInput) (*models.ResetPost, error)
func (*RobotClient) ServerGetList ¶
func (m *RobotClient) ServerGetList() ([]models.Server, error)
func (*RobotClient) ServerReverse ¶
func (m *RobotClient) ServerReverse(id int) (*models.Cancellation, error)
func (*RobotClient) ServerSetName ¶
func (m *RobotClient) ServerSetName(id int, input *models.ServerSetNameInput) (*models.Server, error)
func (*RobotClient) SetBaseURL ¶
func (m *RobotClient) SetBaseURL(baseURL string)
func (*RobotClient) SetUserAgent ¶
func (m *RobotClient) SetUserAgent(userAgent string)
func (*RobotClient) ValidateCredentials ¶
func (m *RobotClient) ValidateCredentials() error
type ServerClient ¶
ServerClient is a mock implementation of the hcloud.ServerClient
func NewServerClient ¶
func NewServerClient(t *testing.T) *ServerClient
NewServerClient creates a new mock server client ready for use.
Click to show internal directories.
Click to hide internal directories.