mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func (*API) AddHost

func (_m *API) AddHost(_a0 api.HostConfig) (*host.Host, []byte, error)

AddHost provides a mock function with given fields: _a0

func (*API) AddHostPrivate

func (_m *API) AddHostPrivate(_a0 api.HostConfig) (*host.Host, []byte, error)

AddHostPrivate provides a mock function with given fields: _a0

func (*API) AddPublicEndpointPort

func (_m *API) AddPublicEndpointPort(serviceid string, endpointName string, portAddr string, usetls bool, protocol string, isEnabled bool, restart bool) (*servicedefinition.Port, error)

AddPublicEndpointPort provides a mock function with given fields: serviceid, endpointName, portAddr, usetls, protocol, isEnabled, restart

func (*API) AddPublicEndpointVHost

func (_m *API) AddPublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool, restart bool) (*servicedefinition.VHost, error)

AddPublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost, isEnabled, restart

func (*API) AddResourcePool

func (_m *API) AddResourcePool(_a0 api.PoolConfig) (*pool.ResourcePool, error)

AddResourcePool provides a mock function with given fields: _a0

func (*API) AddService

func (_m *API) AddService(_a0 api.ServiceConfig) (*service.ServiceDetails, error)

AddService provides a mock function with given fields: _a0

func (*API) AddServiceTemplate

func (_m *API) AddServiceTemplate(_a0 io.Reader) (*servicetemplate.ServiceTemplate, error)

AddServiceTemplate provides a mock function with given fields: _a0

func (*API) AddSnapshot

func (_m *API) AddSnapshot(_a0 api.SnapshotConfig) (string, error)

AddSnapshot provides a mock function with given fields: _a0

func (*API) AddVirtualIP

func (_m *API) AddVirtualIP(_a0 pool.VirtualIP) error

AddVirtualIP provides a mock function with given fields: _a0

func (*API) AssignIP

func (_m *API) AssignIP(_a0 api.IPConfig) error

AssignIP provides a mock function with given fields: _a0

func (*API) AttachServiceInstance

func (_m *API) AttachServiceInstance(serviceID string, instanceID int, command string, args []string) error

AttachServiceInstance provides a mock function with given fields: serviceID, instanceID, command, args

func (*API) AuthenticateHost

func (_m *API) AuthenticateHost(_a0 string) (string, int64, error)

AuthenticateHost provides a mock function with given fields: _a0

func (*API) Backup

func (_m *API) Backup(_a0 string, _a1 []string, _a2 bool) (string, error)

Backup provides a mock function with given fields: _a0, _a1

func (*API) ClearEmergency

func (_m *API) ClearEmergency(_a0 string) (int, error)

ClearEmergency provides a mock function with given fields: _a0

func (*API) CloneService

func (_m *API) CloneService(_a0 string, _a1 string) (*service.ServiceDetails, error)

CloneService provides a mock function with given fields: _a0, _a1

func (*API) CompileServiceTemplate

func (_m *API) CompileServiceTemplate(_a0 api.CompileTemplateConfig) (*servicetemplate.ServiceTemplate, error)

CompileServiceTemplate provides a mock function with given fields: _a0

func (*API) DebugDisableMetrics

func (_m *API) DebugDisableMetrics() (string, error)

DebugDisableMetrics provides a mock function with given fields:

func (*API) DebugEnableMetrics

func (_m *API) DebugEnableMetrics() (string, error)

DebugEnableMetrics provides a mock function with given fields:

func (*API) DeployServiceTemplate

func (_m *API) DeployServiceTemplate(_a0 api.DeployTemplateConfig) ([]service.ServiceDetails, error)

DeployServiceTemplate provides a mock function with given fields: _a0

func (*API) DockerOverride

func (_m *API) DockerOverride(newImage string, oldImage string) error

DockerOverride provides a mock function with given fields: newImage, oldImage

func (*API) EnablePublicEndpointPort

func (_m *API) EnablePublicEndpointPort(serviceid string, endpointName string, portAddr string, isEnabled bool) error

EnablePublicEndpointPort provides a mock function with given fields: serviceid, endpointName, portAddr, isEnabled

func (*API) EnablePublicEndpointVHost

func (_m *API) EnablePublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool) error

EnablePublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost, isEnabled

func (*API) ExportLogs

func (_m *API) ExportLogs(config api.ExportLogsConfig) error

ExportLogs provides a mock function with given fields: config

func (*API) GetAllPublicEndpoints

func (_m *API) GetAllPublicEndpoints() ([]service.PublicEndpoint, error)

GetAllPublicEndpoints provides a mock function with given fields:

func (*API) GetAllServiceDetails

func (_m *API) GetAllServiceDetails() ([]service.ServiceDetails, error)

GetAllServiceDetails provides a mock function with given fields:

func (*API) GetBackupEstimate

func (_m *API) GetBackupEstimate(_a0 string, _a1 []string) (*dao.BackupEstimate, error)

func (*API) GetEndpoints

func (_m *API) GetEndpoints(serviceID string, reportImports bool, reportExports bool, validate bool) ([]applicationendpoint.EndpointReport, error)

GetEndpoints provides a mock function with given fields: serviceID, reportImports, reportExports, validate

func (*API) GetHost

func (_m *API) GetHost(_a0 string) (*host.Host, error)

GetHost provides a mock function with given fields: _a0

func (*API) GetHostMap

func (_m *API) GetHostMap() (map[string]host.Host, error)

GetHostMap provides a mock function with given fields:

func (*API) GetHostMemory

func (_m *API) GetHostMemory(_a0 string) (*metrics.MemoryUsageStats, error)

GetHostMemory provides a mock function with given fields: _a0

func (*API) GetHostPublicKey

func (_m *API) GetHostPublicKey(_a0 string) ([]byte, error)

GetHostPublicKey provides a mock function with given fields: _a0

func (*API) GetHostWithAuthInfo

func (_m *API) GetHostWithAuthInfo(_a0 string) (*api.AuthHost, error)

GetHostWithAuthInfo provides a mock function with given fields: _a0

func (*API) GetHosts

func (_m *API) GetHosts() ([]host.Host, error)

GetHosts provides a mock function with given fields:

func (*API) GetHostsWithAuthInfo

func (_m *API) GetHostsWithAuthInfo() ([]api.AuthHost, error)

GetHostsWithAuthInfo provides a mock function with given fields:

func (*API) GetPoolIPs

func (_m *API) GetPoolIPs(_a0 string) (*pool.PoolIPs, error)

GetPoolIPs provides a mock function with given fields: _a0

func (*API) GetResourcePool

func (_m *API) GetResourcePool(_a0 string) (*pool.ResourcePool, error)

GetResourcePool provides a mock function with given fields: _a0

func (*API) GetResourcePools

func (_m *API) GetResourcePools() ([]pool.ResourcePool, error)

GetResourcePools provides a mock function with given fields:

func (*API) GetService

func (_m *API) GetService(_a0 string) (*service.Service, error)

GetService provides a mock function with given fields: _a0

func (*API) GetServiceDetails

func (_m *API) GetServiceDetails(serviceID string) (*service.ServiceDetails, error)

GetServiceDetails provides a mock function with given fields: serviceID

func (*API) GetServiceInstances

func (_m *API) GetServiceInstances(serviceID string) ([]service.Instance, error)

GetServiceInstances provides a mock function with given fields: serviceID

func (*API) GetServiceStatus

func (_m *API) GetServiceStatus(_a0 string) (map[string]map[string]interface{}, error)

GetServiceStatus provides a mock function with given fields: _a0

func (*API) GetServiceTemplate

func (_m *API) GetServiceTemplate(_a0 string) (*servicetemplate.ServiceTemplate, error)

GetServiceTemplate provides a mock function with given fields: _a0

func (*API) GetServiceTemplates

func (_m *API) GetServiceTemplates() ([]servicetemplate.ServiceTemplate, error)

GetServiceTemplates provides a mock function with given fields:

func (*API) GetSnapshotByServiceIDAndTag

func (_m *API) GetSnapshotByServiceIDAndTag(_a0 string, _a1 string) (string, error)

GetSnapshotByServiceIDAndTag provides a mock function with given fields: _a0, _a1

func (*API) GetSnapshots

func (_m *API) GetSnapshots() ([]dao.SnapshotInfo, error)

GetSnapshots provides a mock function with given fields:

func (*API) GetSnapshotsByServiceID

func (_m *API) GetSnapshotsByServiceID(_a0 string) ([]dao.SnapshotInfo, error)

GetSnapshotsByServiceID provides a mock function with given fields: _a0

func (*API) GetVolumeStatus

func (_m *API) GetVolumeStatus() (*volume.Statuses, error)

GetVolumeStatus provides a mock function with given fields:

func (*API) LogsForServiceInstance

func (_m *API) LogsForServiceInstance(serviceID string, instanceID int, command string, args []string) error

LogsForServiceInstance provides a mock function with given fields: serviceID, instanceID, command, args

func (*API) PauseService

func (_m *API) PauseService(_a0 api.SchedulerConfig) (int, error)

pauseService provides a mock function with given fields: _a0

func (*API) PostMetric

func (_m *API) PostMetric(metricName string, metricValue string) (string, error)

PostMetric provides a mock function with given fields: metricName, metricValue

func (*API) RebalanceService

func (_m *API) RebalanceService(_a0 api.SchedulerConfig) (int, error)

RebalanceService provides a mock function with given fields: _a0

func (*API) RegisterHost

func (_m *API) RegisterHost(_a0 []byte) error

RegisterHost provides a mock function with given fields: _a0

func (*API) RegisterRemoteHost

func (_m *API) RegisterRemoteHost(_a0 *host.Host, _a1 utils.URL, _a2 []byte, _a3 bool) error

RegisterRemoteHost provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*API) RegistrySync

func (_m *API) RegistrySync() error

RegistrySync provides a mock function with given fields:

func (*API) RemoveHost

func (_m *API) RemoveHost(_a0 string) error

RemoveHost provides a mock function with given fields: _a0

func (*API) RemoveIP

func (_m *API) RemoveIP(args []string) error

RemoveIP provides a mock function with given fields: args

func (*API) RemovePublicEndpointPort

func (_m *API) RemovePublicEndpointPort(serviceid string, endpointName string, portAddr string) error

RemovePublicEndpointPort provides a mock function with given fields: serviceid, endpointName, portAddr

func (*API) RemovePublicEndpointVHost

func (_m *API) RemovePublicEndpointVHost(serviceid string, endpointName string, vhost string) error

RemovePublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost

func (*API) RemoveResourcePool

func (_m *API) RemoveResourcePool(_a0 string) error

RemoveResourcePool provides a mock function with given fields: _a0

func (*API) RemoveService

func (_m *API) RemoveService(_a0 string) error

RemoveService provides a mock function with given fields: _a0

func (*API) RemoveServiceTemplate

func (_m *API) RemoveServiceTemplate(_a0 string) error

RemoveServiceTemplate provides a mock function with given fields: _a0

func (*API) RemoveSnapshot

func (_m *API) RemoveSnapshot(_a0 string) error

RemoveSnapshot provides a mock function with given fields: _a0

func (*API) RemoveSnapshotTag

func (_m *API) RemoveSnapshotTag(_a0 string, _a1 string) (string, error)

RemoveSnapshotTag provides a mock function with given fields: _a0, _a1

func (*API) RemoveVirtualIP

func (_m *API) RemoveVirtualIP(_a0 pool.VirtualIP) error

RemoveVirtualIP provides a mock function with given fields: _a0

func (*API) ResetHostKey

func (_m *API) ResetHostKey(_a0 string) ([]byte, error)

ResetHostKey provides a mock function with given fields: _a0

func (*API) ResetRegistry

func (_m *API) ResetRegistry() error

ResetRegistry provides a mock function with given fields:

func (*API) ResolveServicePath

func (_m *API) ResolveServicePath(path string, noprefix bool) ([]service.ServiceDetails, error)

ResolveServicePath provides a mock function with given fields: path, noprefix

func (*API) RestartService

func (_m *API) RestartService(_a0 api.SchedulerConfig) (int, error)

RestartService provides a mock function with given fields: _a0

func (*API) Restore

func (_m *API) Restore(_a0 string) error

Restore provides a mock function with given fields: _a0

func (*API) Rollback

func (_m *API) Rollback(_a0 string, _a1 bool) error

Rollback provides a mock function with given fields: _a0, _a1

func (*API) RunShell

func (_m *API) RunShell(_a0 api.ShellConfig, _a1 chan struct{}) (int, error)

RunShell provides a mock function with given fields: _a0, _a1

func (*API) ScriptParse

func (_m *API) ScriptParse(fileName string, config *script.Config) error

ScriptParse provides a mock function with given fields: fileName, config

func (*API) ScriptRun

func (_m *API) ScriptRun(fileName string, config *script.Config, stopChan chan struct{}) error

ScriptRun provides a mock function with given fields: fileName, config, stopChan

func (*API) SendDockerAction

func (_m *API) SendDockerAction(serviceID string, instanceID int, action string, args []string) error

SendDockerAction provides a mock function with given fields: serviceID, instanceID, action, args

func (*API) ServicedHealthCheck

func (_m *API) ServicedHealthCheck(IServiceNames []string) ([]isvcs.IServiceHealthResult, error)

ServicedHealthCheck provides a mock function with given fields: IServiceNames

func (*API) SetHostMemory

func (_m *API) SetHostMemory(_a0 api.HostUpdateConfig) error

SetHostMemory provides a mock function with given fields: _a0

func (*API) SetIP

func (_m *API) SetIP(_a0 api.IPConfig) error

SetIP provides a mock function with given fields: _a0

func (*API) StartServer

func (_m *API) StartServer() error

StartServer provides a mock function with given fields:

func (*API) StartService

func (_m *API) StartService(_a0 api.SchedulerConfig) (int, error)

StartService provides a mock function with given fields: _a0

func (*API) StartShell

func (_m *API) StartShell(_a0 api.ShellConfig) error

StartShell provides a mock function with given fields: _a0

func (*API) StopService

func (_m *API) StopService(_a0 api.SchedulerConfig) (int, error)

StopService provides a mock function with given fields: _a0

func (*API) StopServiceInstance

func (_m *API) StopServiceInstance(serviceID string, instanceID int) error

StopServiceInstance provides a mock function with given fields: serviceID, instanceID

func (*API) TagSnapshot

func (_m *API) TagSnapshot(_a0 string, _a1 string) error

TagSnapshot provides a mock function with given fields: _a0, _a1

func (*API) UpdateResourcePool

func (_m *API) UpdateResourcePool(_a0 pool.ResourcePool) error

UpdateResourcePool provides a mock function with given fields: _a0

func (*API) UpdateService

func (_m *API) UpdateService(_a0 io.Reader) (*service.ServiceDetails, error)

UpdateService provides a mock function with given fields: _a0

func (*API) UpdateServiceObj

func (_m *API) UpdateServiceObj(_a0 service.Service) (*service.ServiceDetails, error)

UpdateServiceObj provides a mock function with given fields: _a0

func (*API) UpgradeRegistry

func (_m *API) UpgradeRegistry(endpoint string, override bool) error

UpgradeRegistry provides a mock function with given fields: endpoint, override

func (*API) WriteDelegateKey

func (_m *API) WriteDelegateKey(_a0 string, _a1 []byte) error

WriteDelegateKey provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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