client

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDNSClient

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

MockDNSClient is a mock of DNSClient interface.

func NewMockDNSClient

func NewMockDNSClient(ctrl *gomock.Controller) *MockDNSClient

NewMockDNSClient creates a new mock instance.

func (*MockDNSClient) CreateOrUpdateRecordSet

func (m *MockDNSClient) CreateOrUpdateRecordSet(ctx context.Context, zoneID, name, recordType string, records []string, ttl int64) error

CreateOrUpdateRecordSet mocks base method.

func (*MockDNSClient) DeleteRecordSet

func (m *MockDNSClient) DeleteRecordSet(ctx context.Context, zoneID, name, recordType string) error

DeleteRecordSet mocks base method.

func (*MockDNSClient) EXPECT

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

func (*MockDNSClient) ListZones

func (m *MockDNSClient) ListZones(ctx context.Context) ([]client.DNSZone, error)

ListZones mocks base method.

type MockDNSClientMockRecorder

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

MockDNSClientMockRecorder is the mock recorder for MockDNSClient.

func (*MockDNSClientMockRecorder) CreateOrUpdateRecordSet

func (mr *MockDNSClientMockRecorder) CreateOrUpdateRecordSet(ctx, zoneID, name, recordType, records, ttl any) *gomock.Call

CreateOrUpdateRecordSet indicates an expected call of CreateOrUpdateRecordSet.

func (*MockDNSClientMockRecorder) DeleteRecordSet

func (mr *MockDNSClientMockRecorder) DeleteRecordSet(ctx, zoneID, name, recordType any) *gomock.Call

DeleteRecordSet indicates an expected call of DeleteRecordSet.

func (*MockDNSClientMockRecorder) ListZones

func (mr *MockDNSClientMockRecorder) ListZones(ctx any) *gomock.Call

ListZones indicates an expected call of ListZones.

type MockFactory

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

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) DNS

DNS mocks base method.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

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

func (*MockFactory) IaaS

IaaS mocks base method.

func (*MockFactory) LoadBalancing

LoadBalancing mocks base method.

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) DNS

func (mr *MockFactoryMockRecorder) DNS(arg0, arg1, arg2 any) *gomock.Call

DNS indicates an expected call of DNS.

func (*MockFactoryMockRecorder) IaaS

func (mr *MockFactoryMockRecorder) IaaS(arg0, arg1, arg2 any) *gomock.Call

IaaS indicates an expected call of IaaS.

func (*MockFactoryMockRecorder) LoadBalancing

func (mr *MockFactoryMockRecorder) LoadBalancing(arg0, arg1, arg2 any) *gomock.Call

LoadBalancing indicates an expected call of LoadBalancing.

type MockIaaSClient

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

MockIaaSClient is a mock of IaaSClient interface.

func NewMockIaaSClient

func NewMockIaaSClient(ctrl *gomock.Controller) *MockIaaSClient

NewMockIaaSClient creates a new mock instance.

func (*MockIaaSClient) AddPublicIpToServer

func (m *MockIaaSClient) AddPublicIpToServer(ctx context.Context, serverId, publicIpId string) error

AddPublicIpToServer mocks base method.

func (*MockIaaSClient) CreateIsolatedNetwork

func (m *MockIaaSClient) CreateIsolatedNetwork(ctx context.Context, payload iaas.CreateIsolatedNetworkPayload) (*iaas.Network, error)

CreateIsolatedNetwork mocks base method.

func (*MockIaaSClient) CreateKeypair

func (m *MockIaaSClient) CreateKeypair(ctx context.Context, name, publicKey string) (*iaas.Keypair, error)

CreateKeypair mocks base method.

func (*MockIaaSClient) CreatePublicIp

func (m *MockIaaSClient) CreatePublicIp(ctx context.Context, payload iaas.CreatePublicIPPayload) (*iaas.PublicIp, error)

CreatePublicIp mocks base method.

func (*MockIaaSClient) CreateSecurityGroup

func (m *MockIaaSClient) CreateSecurityGroup(ctx context.Context, payload iaas.CreateSecurityGroupPayload) (*iaas.SecurityGroup, error)

CreateSecurityGroup mocks base method.

func (*MockIaaSClient) CreateSecurityGroupRule

func (m *MockIaaSClient) CreateSecurityGroupRule(ctx context.Context, securityGroupId string, wantedRule iaas.SecurityGroupRule) (*iaas.SecurityGroupRule, error)

CreateSecurityGroupRule mocks base method.

func (*MockIaaSClient) CreateServer

func (m *MockIaaSClient) CreateServer(ctx context.Context, payload iaas.CreateServerPayload) (*iaas.Server, error)

CreateServer mocks base method.

func (*MockIaaSClient) DeleteKeypair

func (m *MockIaaSClient) DeleteKeypair(ctx context.Context, name string) error

DeleteKeypair mocks base method.

func (*MockIaaSClient) DeleteNetwork

func (m *MockIaaSClient) DeleteNetwork(ctx context.Context, networkID string) error

DeleteNetwork mocks base method.

func (*MockIaaSClient) DeletePublicIp

func (m *MockIaaSClient) DeletePublicIp(ctx context.Context, publicIpId string) error

DeletePublicIp mocks base method.

func (*MockIaaSClient) DeleteSecurityGroup

func (m *MockIaaSClient) DeleteSecurityGroup(ctx context.Context, securityGroupId string) error

DeleteSecurityGroup mocks base method.

func (*MockIaaSClient) DeleteServer

func (m *MockIaaSClient) DeleteServer(ctx context.Context, serverId string) error

DeleteServer mocks base method.

func (*MockIaaSClient) EXPECT

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

func (*MockIaaSClient) GetKeypair

func (m *MockIaaSClient) GetKeypair(ctx context.Context, name string) (*iaas.Keypair, error)

GetKeypair mocks base method.

func (*MockIaaSClient) GetNetworkById

func (m *MockIaaSClient) GetNetworkById(ctx context.Context, id string) (*iaas.Network, error)

GetNetworkById mocks base method.

func (*MockIaaSClient) GetNetworkByName

func (m *MockIaaSClient) GetNetworkByName(ctx context.Context, name string) ([]iaas.Network, error)

GetNetworkByName mocks base method.

func (*MockIaaSClient) GetPublicIpByLabels

func (m *MockIaaSClient) GetPublicIpByLabels(ctx context.Context, selector stackit.LabelSelector) ([]iaas.PublicIp, error)

GetPublicIpByLabels mocks base method.

func (*MockIaaSClient) GetSecurityGroupById

func (m *MockIaaSClient) GetSecurityGroupById(ctx context.Context, securityGroupId string) (*iaas.SecurityGroup, error)

GetSecurityGroupById mocks base method.

func (*MockIaaSClient) GetSecurityGroupByName

func (m *MockIaaSClient) GetSecurityGroupByName(ctx context.Context, name string) ([]iaas.SecurityGroup, error)

GetSecurityGroupByName mocks base method.

func (*MockIaaSClient) GetServerByName

func (m *MockIaaSClient) GetServerByName(ctx context.Context, name string) ([]iaas.Server, error)

GetServerByName mocks base method.

func (*MockIaaSClient) ProjectID

func (m *MockIaaSClient) ProjectID() string

ProjectID mocks base method.

func (*MockIaaSClient) ReconcileSecurityGroupRules

func (m *MockIaaSClient) ReconcileSecurityGroupRules(ctx context.Context, log logr.Logger, securityGroup *iaas.SecurityGroup, wantedRules []iaas.SecurityGroupRule) error

ReconcileSecurityGroupRules mocks base method.

func (*MockIaaSClient) UpdateNetwork

func (m *MockIaaSClient) UpdateNetwork(ctx context.Context, networkId string, payload iaas.PartialUpdateNetworkPayload) (*iaas.Network, error)

UpdateNetwork mocks base method.

func (*MockIaaSClient) UpdateSecurityGroupRules

func (m *MockIaaSClient) UpdateSecurityGroupRules(ctx context.Context, group *iaas.SecurityGroup, desiredRules []iaas.SecurityGroupRule, allowDelete func(*iaas.SecurityGroupRule) bool) (bool, error)

UpdateSecurityGroupRules mocks base method.

type MockIaaSClientMockRecorder

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

MockIaaSClientMockRecorder is the mock recorder for MockIaaSClient.

func (*MockIaaSClientMockRecorder) AddPublicIpToServer

func (mr *MockIaaSClientMockRecorder) AddPublicIpToServer(ctx, serverId, publicIpId any) *gomock.Call

AddPublicIpToServer indicates an expected call of AddPublicIpToServer.

func (*MockIaaSClientMockRecorder) CreateIsolatedNetwork

func (mr *MockIaaSClientMockRecorder) CreateIsolatedNetwork(ctx, payload any) *gomock.Call

CreateIsolatedNetwork indicates an expected call of CreateIsolatedNetwork.

func (*MockIaaSClientMockRecorder) CreateKeypair

func (mr *MockIaaSClientMockRecorder) CreateKeypair(ctx, name, publicKey any) *gomock.Call

CreateKeypair indicates an expected call of CreateKeypair.

func (*MockIaaSClientMockRecorder) CreatePublicIp

func (mr *MockIaaSClientMockRecorder) CreatePublicIp(ctx, payload any) *gomock.Call

CreatePublicIp indicates an expected call of CreatePublicIp.

func (*MockIaaSClientMockRecorder) CreateSecurityGroup

func (mr *MockIaaSClientMockRecorder) CreateSecurityGroup(ctx, payload any) *gomock.Call

CreateSecurityGroup indicates an expected call of CreateSecurityGroup.

func (*MockIaaSClientMockRecorder) CreateSecurityGroupRule

func (mr *MockIaaSClientMockRecorder) CreateSecurityGroupRule(ctx, securityGroupId, wantedRule any) *gomock.Call

CreateSecurityGroupRule indicates an expected call of CreateSecurityGroupRule.

func (*MockIaaSClientMockRecorder) CreateServer

func (mr *MockIaaSClientMockRecorder) CreateServer(ctx, payload any) *gomock.Call

CreateServer indicates an expected call of CreateServer.

func (*MockIaaSClientMockRecorder) DeleteKeypair

func (mr *MockIaaSClientMockRecorder) DeleteKeypair(ctx, name any) *gomock.Call

DeleteKeypair indicates an expected call of DeleteKeypair.

func (*MockIaaSClientMockRecorder) DeleteNetwork

func (mr *MockIaaSClientMockRecorder) DeleteNetwork(ctx, networkID any) *gomock.Call

DeleteNetwork indicates an expected call of DeleteNetwork.

func (*MockIaaSClientMockRecorder) DeletePublicIp

func (mr *MockIaaSClientMockRecorder) DeletePublicIp(ctx, publicIpId any) *gomock.Call

DeletePublicIp indicates an expected call of DeletePublicIp.

func (*MockIaaSClientMockRecorder) DeleteSecurityGroup

func (mr *MockIaaSClientMockRecorder) DeleteSecurityGroup(ctx, securityGroupId any) *gomock.Call

DeleteSecurityGroup indicates an expected call of DeleteSecurityGroup.

func (*MockIaaSClientMockRecorder) DeleteServer

func (mr *MockIaaSClientMockRecorder) DeleteServer(ctx, serverId any) *gomock.Call

DeleteServer indicates an expected call of DeleteServer.

func (*MockIaaSClientMockRecorder) GetKeypair

func (mr *MockIaaSClientMockRecorder) GetKeypair(ctx, name any) *gomock.Call

GetKeypair indicates an expected call of GetKeypair.

func (*MockIaaSClientMockRecorder) GetNetworkById

func (mr *MockIaaSClientMockRecorder) GetNetworkById(ctx, id any) *gomock.Call

GetNetworkById indicates an expected call of GetNetworkById.

func (*MockIaaSClientMockRecorder) GetNetworkByName

func (mr *MockIaaSClientMockRecorder) GetNetworkByName(ctx, name any) *gomock.Call

GetNetworkByName indicates an expected call of GetNetworkByName.

func (*MockIaaSClientMockRecorder) GetPublicIpByLabels

func (mr *MockIaaSClientMockRecorder) GetPublicIpByLabels(ctx, selector any) *gomock.Call

GetPublicIpByLabels indicates an expected call of GetPublicIpByLabels.

func (*MockIaaSClientMockRecorder) GetSecurityGroupById

func (mr *MockIaaSClientMockRecorder) GetSecurityGroupById(ctx, securityGroupId any) *gomock.Call

GetSecurityGroupById indicates an expected call of GetSecurityGroupById.

func (*MockIaaSClientMockRecorder) GetSecurityGroupByName

func (mr *MockIaaSClientMockRecorder) GetSecurityGroupByName(ctx, name any) *gomock.Call

GetSecurityGroupByName indicates an expected call of GetSecurityGroupByName.

func (*MockIaaSClientMockRecorder) GetServerByName

func (mr *MockIaaSClientMockRecorder) GetServerByName(ctx, name any) *gomock.Call

GetServerByName indicates an expected call of GetServerByName.

func (*MockIaaSClientMockRecorder) ProjectID

func (mr *MockIaaSClientMockRecorder) ProjectID() *gomock.Call

ProjectID indicates an expected call of ProjectID.

func (*MockIaaSClientMockRecorder) ReconcileSecurityGroupRules

func (mr *MockIaaSClientMockRecorder) ReconcileSecurityGroupRules(ctx, log, securityGroup, wantedRules any) *gomock.Call

ReconcileSecurityGroupRules indicates an expected call of ReconcileSecurityGroupRules.

func (*MockIaaSClientMockRecorder) UpdateNetwork

func (mr *MockIaaSClientMockRecorder) UpdateNetwork(ctx, networkId, payload any) *gomock.Call

UpdateNetwork indicates an expected call of UpdateNetwork.

func (*MockIaaSClientMockRecorder) UpdateSecurityGroupRules

func (mr *MockIaaSClientMockRecorder) UpdateSecurityGroupRules(ctx, group, desiredRules, allowDelete any) *gomock.Call

UpdateSecurityGroupRules indicates an expected call of UpdateSecurityGroupRules.

type MockLoadBalancingClient

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

MockLoadBalancingClient is a mock of LoadBalancingClient interface.

func NewMockLoadBalancingClient

func NewMockLoadBalancingClient(ctrl *gomock.Controller) *MockLoadBalancingClient

NewMockLoadBalancingClient creates a new mock instance.

func (*MockLoadBalancingClient) DeleteLoadBalancer

func (m *MockLoadBalancingClient) DeleteLoadBalancer(ctx context.Context, lbName string) error

DeleteLoadBalancer mocks base method.

func (*MockLoadBalancingClient) EXPECT

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

func (*MockLoadBalancingClient) GetLoadBalancer

GetLoadBalancer mocks base method.

func (*MockLoadBalancingClient) ListLoadBalancers

func (m *MockLoadBalancingClient) ListLoadBalancers(ctx context.Context) ([]loadbalancer.LoadBalancer, error)

ListLoadBalancers mocks base method.

type MockLoadBalancingClientMockRecorder

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

MockLoadBalancingClientMockRecorder is the mock recorder for MockLoadBalancingClient.

func (*MockLoadBalancingClientMockRecorder) DeleteLoadBalancer

func (mr *MockLoadBalancingClientMockRecorder) DeleteLoadBalancer(ctx, lbName any) *gomock.Call

DeleteLoadBalancer indicates an expected call of DeleteLoadBalancer.

func (*MockLoadBalancingClientMockRecorder) GetLoadBalancer

func (mr *MockLoadBalancingClientMockRecorder) GetLoadBalancer(ctx, id any) *gomock.Call

GetLoadBalancer indicates an expected call of GetLoadBalancer.

func (*MockLoadBalancingClientMockRecorder) ListLoadBalancers

func (mr *MockLoadBalancingClientMockRecorder) ListLoadBalancers(ctx any) *gomock.Call

ListLoadBalancers indicates an expected call of ListLoadBalancers.

Directories

Path Synopsis
Package dns is a generated GoMock package.
Package dns is a generated GoMock package.
Package iaas is a generated GoMock package.
Package iaas is a generated GoMock package.
Package loadbalancer is a generated GoMock package.
Package loadbalancer is a generated GoMock package.

Jump to

Keyboard shortcuts

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