Documentation ¶
Index ¶
- type API
- func (_m *API) AddHost(_a0 api.HostConfig) (*host.Host, []byte, error)
- func (_m *API) AddHostPrivate(_a0 api.HostConfig) (*host.Host, []byte, error)
- func (_m *API) AddPublicEndpointPort(serviceid string, endpointName string, portAddr string, usetls bool, ...) (*servicedefinition.Port, error)
- func (_m *API) AddPublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool, ...) (*servicedefinition.VHost, error)
- func (_m *API) AddResourcePool(_a0 api.PoolConfig) (*pool.ResourcePool, error)
- func (_m *API) AddService(_a0 api.ServiceConfig) (*service.ServiceDetails, error)
- func (_m *API) AddServiceTemplate(_a0 io.Reader) (*servicetemplate.ServiceTemplate, error)
- func (_m *API) AddSnapshot(_a0 api.SnapshotConfig) (string, error)
- func (_m *API) AddVirtualIP(_a0 pool.VirtualIP) error
- func (_m *API) AssignIP(_a0 api.IPConfig) error
- func (_m *API) AttachServiceInstance(serviceID string, instanceID int, command string, args []string) error
- func (_m *API) AuthenticateHost(_a0 string) (string, int64, error)
- func (_m *API) Backup(_a0 string, _a1 []string, _a2 bool) (string, error)
- func (_m *API) ClearEmergency(_a0 string) (int, error)
- func (_m *API) CloneService(_a0 string, _a1 string) (*service.ServiceDetails, error)
- func (_m *API) CompileServiceTemplate(_a0 api.CompileTemplateConfig) (*servicetemplate.ServiceTemplate, error)
- func (_m *API) DebugDisableMetrics() (string, error)
- func (_m *API) DebugEnableMetrics() (string, error)
- func (_m *API) DeployServiceTemplate(_a0 api.DeployTemplateConfig) ([]service.ServiceDetails, error)
- func (_m *API) DockerOverride(newImage string, oldImage string) error
- func (_m *API) EnablePublicEndpointPort(serviceid string, endpointName string, portAddr string, isEnabled bool) error
- func (_m *API) EnablePublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool) error
- func (_m *API) ExportLogs(config api.ExportLogsConfig) error
- func (_m *API) GetAllPublicEndpoints() ([]service.PublicEndpoint, error)
- func (_m *API) GetAllServiceDetails() ([]service.ServiceDetails, error)
- func (_m *API) GetBackupEstimate(_a0 string, _a1 []string) (*dao.BackupEstimate, error)
- func (_m *API) GetEndpoints(serviceID string, reportImports bool, reportExports bool, validate bool) ([]applicationendpoint.EndpointReport, error)
- func (_m *API) GetHost(_a0 string) (*host.Host, error)
- func (_m *API) GetHostMap() (map[string]host.Host, error)
- func (_m *API) GetHostMemory(_a0 string) (*metrics.MemoryUsageStats, error)
- func (_m *API) GetHostPublicKey(_a0 string) ([]byte, error)
- func (_m *API) GetHostWithAuthInfo(_a0 string) (*api.AuthHost, error)
- func (_m *API) GetHosts() ([]host.Host, error)
- func (_m *API) GetHostsWithAuthInfo() ([]api.AuthHost, error)
- func (_m *API) GetPoolIPs(_a0 string) (*pool.PoolIPs, error)
- func (_m *API) GetResourcePool(_a0 string) (*pool.ResourcePool, error)
- func (_m *API) GetResourcePools() ([]pool.ResourcePool, error)
- func (_m *API) GetService(_a0 string) (*service.Service, error)
- func (_m *API) GetServiceDetails(serviceID string) (*service.ServiceDetails, error)
- func (_m *API) GetServiceInstances(serviceID string) ([]service.Instance, error)
- func (_m *API) GetServiceStatus(_a0 string) (map[string]map[string]interface{}, error)
- func (_m *API) GetServiceTemplate(_a0 string) (*servicetemplate.ServiceTemplate, error)
- func (_m *API) GetServiceTemplates() ([]servicetemplate.ServiceTemplate, error)
- func (_m *API) GetSnapshotByServiceIDAndTag(_a0 string, _a1 string) (string, error)
- func (_m *API) GetSnapshots() ([]dao.SnapshotInfo, error)
- func (_m *API) GetSnapshotsByServiceID(_a0 string) ([]dao.SnapshotInfo, error)
- func (_m *API) GetVolumeStatus() (*volume.Statuses, error)
- func (_m *API) LogsForServiceInstance(serviceID string, instanceID int, command string, args []string) error
- func (_m *API) PauseService(_a0 api.SchedulerConfig) (int, error)
- func (_m *API) PostMetric(metricName string, metricValue string) (string, error)
- func (_m *API) RebalanceService(_a0 api.SchedulerConfig) (int, error)
- func (_m *API) RegisterHost(_a0 []byte) error
- func (_m *API) RegisterRemoteHost(_a0 *host.Host, _a1 utils.URL, _a2 []byte, _a3 bool) error
- func (_m *API) RegistrySync() error
- func (_m *API) RemoveHost(_a0 string) error
- func (_m *API) RemoveIP(args []string) error
- func (_m *API) RemovePublicEndpointPort(serviceid string, endpointName string, portAddr string) error
- func (_m *API) RemovePublicEndpointVHost(serviceid string, endpointName string, vhost string) error
- func (_m *API) RemoveResourcePool(_a0 string) error
- func (_m *API) RemoveService(_a0 string) error
- func (_m *API) RemoveServiceTemplate(_a0 string) error
- func (_m *API) RemoveSnapshot(_a0 string) error
- func (_m *API) RemoveSnapshotTag(_a0 string, _a1 string) (string, error)
- func (_m *API) RemoveVirtualIP(_a0 pool.VirtualIP) error
- func (_m *API) ResetHostKey(_a0 string) ([]byte, error)
- func (_m *API) ResetRegistry() error
- func (_m *API) ResolveServicePath(path string, noprefix bool) ([]service.ServiceDetails, error)
- func (_m *API) RestartService(_a0 api.SchedulerConfig) (int, error)
- func (_m *API) Restore(_a0 string) error
- func (_m *API) Rollback(_a0 string, _a1 bool) error
- func (_m *API) RunShell(_a0 api.ShellConfig, _a1 chan struct{}) (int, error)
- func (_m *API) ScriptParse(fileName string, config *script.Config) error
- func (_m *API) ScriptRun(fileName string, config *script.Config, stopChan chan struct{}) error
- func (_m *API) SendDockerAction(serviceID string, instanceID int, action string, args []string) error
- func (_m *API) ServicedHealthCheck(IServiceNames []string) ([]isvcs.IServiceHealthResult, error)
- func (_m *API) SetHostMemory(_a0 api.HostUpdateConfig) error
- func (_m *API) SetIP(_a0 api.IPConfig) error
- func (_m *API) StartServer() error
- func (_m *API) StartService(_a0 api.SchedulerConfig) (int, error)
- func (_m *API) StartShell(_a0 api.ShellConfig) error
- func (_m *API) StopService(_a0 api.SchedulerConfig) (int, error)
- func (_m *API) StopServiceInstance(serviceID string, instanceID int) error
- func (_m *API) TagSnapshot(_a0 string, _a1 string) error
- func (_m *API) UpdateResourcePool(_a0 pool.ResourcePool) error
- func (_m *API) UpdateService(_a0 io.Reader) (*service.ServiceDetails, error)
- func (_m *API) UpdateServiceObj(_a0 service.Service) (*service.ServiceDetails, error)
- func (_m *API) UpgradeRegistry(endpoint string, override bool) error
- func (_m *API) WriteDelegateKey(_a0 string, _a1 []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func (*API) AddHostPrivate ¶
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 ¶
AddVirtualIP 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 ¶
AuthenticateHost provides a mock function with given fields: _a0
func (*API) ClearEmergency ¶
ClearEmergency provides a mock function with given fields: _a0
func (*API) CloneService ¶
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 ¶
DebugDisableMetrics provides a mock function with given fields:
func (*API) DebugEnableMetrics ¶
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 ¶
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 (*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) GetHostMap ¶
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 ¶
GetHostPublicKey provides a mock function with given fields: _a0
func (*API) GetHostWithAuthInfo ¶
GetHostWithAuthInfo provides a mock function with given fields: _a0
func (*API) GetHostsWithAuthInfo ¶
GetHostsWithAuthInfo provides a mock function with given fields:
func (*API) GetPoolIPs ¶
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 ¶
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 ¶
GetServiceInstances provides a mock function with given fields: serviceID
func (*API) GetServiceStatus ¶
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 ¶
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 ¶
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 ¶
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 ¶
RegisterHost provides a mock function with given fields: _a0
func (*API) RegisterRemoteHost ¶
RegisterRemoteHost provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*API) RegistrySync ¶
RegistrySync provides a mock function with given fields:
func (*API) RemoveHost ¶
RemoveHost provides a mock function with given fields: _a0
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 ¶
RemovePublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost
func (*API) RemoveResourcePool ¶
RemoveResourcePool provides a mock function with given fields: _a0
func (*API) RemoveService ¶
RemoveService provides a mock function with given fields: _a0
func (*API) RemoveServiceTemplate ¶
RemoveServiceTemplate provides a mock function with given fields: _a0
func (*API) RemoveSnapshot ¶
RemoveSnapshot provides a mock function with given fields: _a0
func (*API) RemoveSnapshotTag ¶
RemoveSnapshotTag provides a mock function with given fields: _a0, _a1
func (*API) RemoveVirtualIP ¶
RemoveVirtualIP provides a mock function with given fields: _a0
func (*API) ResetHostKey ¶
ResetHostKey provides a mock function with given fields: _a0
func (*API) ResetRegistry ¶
ResetRegistry provides a mock function with given fields:
func (*API) ResolveServicePath ¶
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) 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 ¶
ScriptParse provides a mock function with given fields: fileName, config
func (*API) ScriptRun ¶
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) StartServer ¶
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 ¶
StopServiceInstance provides a mock function with given fields: serviceID, instanceID
func (*API) TagSnapshot ¶
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 ¶
UpdateService provides a mock function with given fields: _a0
func (*API) UpdateServiceObj ¶
UpdateServiceObj provides a mock function with given fields: _a0
func (*API) UpgradeRegistry ¶
UpgradeRegistry provides a mock function with given fields: endpoint, override