Documentation
¶
Index ¶
- func NewIsolatedTestConfig(t *testing.T) config.Config
- type ConfigMock
- func (mock *ConfigMock) BridgePIDFilePath(containerID string) (string, error)
- func (mock *ConfigMock) BridgePIDFilePathCalls() []struct{ ... }
- func (mock *ConfigMock) BridgesSubdir() (string, error)
- func (mock *ConfigMock) BridgesSubdirCalls() []struct{}
- func (mock *ConfigMock) BuildSubdir() (string, error)
- func (mock *ConfigMock) BuildSubdirCalls() []struct{}
- func (mock *ConfigMock) ClawkerIgnoreName() string
- func (mock *ConfigMock) ClawkerIgnoreNameCalls() []struct{}
- func (mock *ConfigMock) ClawkerNetwork() string
- func (mock *ConfigMock) ClawkerNetworkCalls() []struct{}
- func (mock *ConfigMock) ConfigDirEnvVar() string
- func (mock *ConfigMock) ConfigDirEnvVarCalls() []struct{}
- func (mock *ConfigMock) ContainerGID() int
- func (mock *ConfigMock) ContainerGIDCalls() []struct{}
- func (mock *ConfigMock) ContainerUID() int
- func (mock *ConfigMock) ContainerUIDCalls() []struct{}
- func (mock *ConfigMock) DataDirEnvVar() string
- func (mock *ConfigMock) DataDirEnvVarCalls() []struct{}
- func (mock *ConfigMock) DockerfilesSubdir() (string, error)
- func (mock *ConfigMock) DockerfilesSubdirCalls() []struct{}
- func (mock *ConfigMock) Domain() string
- func (mock *ConfigMock) DomainCalls() []struct{}
- func (mock *ConfigMock) EngineLabelPrefix() string
- func (mock *ConfigMock) EngineLabelPrefixCalls() []struct{}
- func (mock *ConfigMock) EngineManagedLabel() string
- func (mock *ConfigMock) EngineManagedLabelCalls() []struct{}
- func (mock *ConfigMock) GetProjectIgnoreFile() (string, error)
- func (mock *ConfigMock) GetProjectIgnoreFileCalls() []struct{}
- func (mock *ConfigMock) GetProjectRoot() (string, error)
- func (mock *ConfigMock) GetProjectRootCalls() []struct{}
- func (mock *ConfigMock) GrafanaURL(host string, https bool) string
- func (mock *ConfigMock) GrafanaURLCalls() []struct{ ... }
- func (mock *ConfigMock) HostProxyConfig() config.HostProxyConfig
- func (mock *ConfigMock) HostProxyConfigCalls() []struct{}
- func (mock *ConfigMock) HostProxyLogFilePath() (string, error)
- func (mock *ConfigMock) HostProxyLogFilePathCalls() []struct{}
- func (mock *ConfigMock) HostProxyPIDFilePath() (string, error)
- func (mock *ConfigMock) HostProxyPIDFilePathCalls() []struct{}
- func (mock *ConfigMock) JaegerURL(host string, https bool) string
- func (mock *ConfigMock) JaegerURLCalls() []struct{ ... }
- func (mock *ConfigMock) LabelAgent() string
- func (mock *ConfigMock) LabelAgentCalls() []struct{}
- func (mock *ConfigMock) LabelBaseImage() string
- func (mock *ConfigMock) LabelBaseImageCalls() []struct{}
- func (mock *ConfigMock) LabelCreated() string
- func (mock *ConfigMock) LabelCreatedCalls() []struct{}
- func (mock *ConfigMock) LabelDomain() string
- func (mock *ConfigMock) LabelDomainCalls() []struct{}
- func (mock *ConfigMock) LabelE2ETest() string
- func (mock *ConfigMock) LabelE2ETestCalls() []struct{}
- func (mock *ConfigMock) LabelFlavor() string
- func (mock *ConfigMock) LabelFlavorCalls() []struct{}
- func (mock *ConfigMock) LabelImage() string
- func (mock *ConfigMock) LabelImageCalls() []struct{}
- func (mock *ConfigMock) LabelManaged() string
- func (mock *ConfigMock) LabelManagedCalls() []struct{}
- func (mock *ConfigMock) LabelMonitoringStack() string
- func (mock *ConfigMock) LabelMonitoringStackCalls() []struct{}
- func (mock *ConfigMock) LabelPrefix() string
- func (mock *ConfigMock) LabelPrefixCalls() []struct{}
- func (mock *ConfigMock) LabelProject() string
- func (mock *ConfigMock) LabelProjectCalls() []struct{}
- func (mock *ConfigMock) LabelPurpose() string
- func (mock *ConfigMock) LabelPurposeCalls() []struct{}
- func (mock *ConfigMock) LabelTest() string
- func (mock *ConfigMock) LabelTestCalls() []struct{}
- func (mock *ConfigMock) LabelTestName() string
- func (mock *ConfigMock) LabelTestNameCalls() []struct{}
- func (mock *ConfigMock) LabelVersion() string
- func (mock *ConfigMock) LabelVersionCalls() []struct{}
- func (mock *ConfigMock) LabelWorkdir() string
- func (mock *ConfigMock) LabelWorkdirCalls() []struct{}
- func (mock *ConfigMock) LoggingConfig() config.LoggingConfig
- func (mock *ConfigMock) LoggingConfigCalls() []struct{}
- func (mock *ConfigMock) LogsSubdir() (string, error)
- func (mock *ConfigMock) LogsSubdirCalls() []struct{}
- func (mock *ConfigMock) ManagedLabelValue() string
- func (mock *ConfigMock) ManagedLabelValueCalls() []struct{}
- func (mock *ConfigMock) MonitorSubdir() (string, error)
- func (mock *ConfigMock) MonitorSubdirCalls() []struct{}
- func (mock *ConfigMock) MonitoringConfig() config.MonitoringConfig
- func (mock *ConfigMock) MonitoringConfigCalls() []struct{}
- func (mock *ConfigMock) PidsSubdir() (string, error)
- func (mock *ConfigMock) PidsSubdirCalls() []struct{}
- func (mock *ConfigMock) Project() *config.Project
- func (mock *ConfigMock) ProjectCalls() []struct{}
- func (mock *ConfigMock) ProjectConfigFileName() string
- func (mock *ConfigMock) ProjectConfigFileNameCalls() []struct{}
- func (mock *ConfigMock) ProjectRegistryFileName() string
- func (mock *ConfigMock) ProjectRegistryFileNameCalls() []struct{}
- func (mock *ConfigMock) ProjectStore() *storage.Store[config.Project]
- func (mock *ConfigMock) ProjectStoreCalls() []struct{}
- func (mock *ConfigMock) PrometheusURL(host string, https bool) string
- func (mock *ConfigMock) PrometheusURLCalls() []struct{ ... }
- func (mock *ConfigMock) RequiredFirewallDomains() []string
- func (mock *ConfigMock) RequiredFirewallDomainsCalls() []struct{}
- func (mock *ConfigMock) SetProject(fn func(*config.Project))
- func (mock *ConfigMock) SetProjectCalls() []struct{ ... }
- func (mock *ConfigMock) SetSettings(fn func(*config.Settings))
- func (mock *ConfigMock) SetSettingsCalls() []struct{ ... }
- func (mock *ConfigMock) Settings() config.Settings
- func (mock *ConfigMock) SettingsCalls() []struct{}
- func (mock *ConfigMock) SettingsFileName() string
- func (mock *ConfigMock) SettingsFileNameCalls() []struct{}
- func (mock *ConfigMock) SettingsStore() *storage.Store[config.Settings]
- func (mock *ConfigMock) SettingsStoreCalls() []struct{}
- func (mock *ConfigMock) ShareSubdir() (string, error)
- func (mock *ConfigMock) ShareSubdirCalls() []struct{}
- func (mock *ConfigMock) StateDirEnvVar() string
- func (mock *ConfigMock) StateDirEnvVarCalls() []struct{}
- func (mock *ConfigMock) TestRepoDirEnvVar() string
- func (mock *ConfigMock) TestRepoDirEnvVarCalls() []struct{}
- func (mock *ConfigMock) WorktreesSubdir() (string, error)
- func (mock *ConfigMock) WorktreesSubdirCalls() []struct{}
- func (mock *ConfigMock) WriteProject(filename ...string) error
- func (mock *ConfigMock) WriteProjectCalls() []struct{ ... }
- func (mock *ConfigMock) WriteSettings(filename ...string) error
- func (mock *ConfigMock) WriteSettingsCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIsolatedTestConfig ¶
NewIsolatedTestConfig creates a file-backed config isolated to a temp directory. It returns a real Config (backed by storage.Store) that supports Set/Write, and a cleanup function. Use this for tests that need mutation or persistence.
Types ¶
type ConfigMock ¶
type ConfigMock struct {
// BridgePIDFilePathFunc mocks the BridgePIDFilePath method.
BridgePIDFilePathFunc func(containerID string) (string, error)
// BridgesSubdirFunc mocks the BridgesSubdir method.
BridgesSubdirFunc func() (string, error)
// BuildSubdirFunc mocks the BuildSubdir method.
BuildSubdirFunc func() (string, error)
// ClawkerIgnoreNameFunc mocks the ClawkerIgnoreName method.
ClawkerIgnoreNameFunc func() string
// ClawkerNetworkFunc mocks the ClawkerNetwork method.
ClawkerNetworkFunc func() string
// ConfigDirEnvVarFunc mocks the ConfigDirEnvVar method.
ConfigDirEnvVarFunc func() string
// ContainerGIDFunc mocks the ContainerGID method.
ContainerGIDFunc func() int
// ContainerUIDFunc mocks the ContainerUID method.
ContainerUIDFunc func() int
// DataDirEnvVarFunc mocks the DataDirEnvVar method.
DataDirEnvVarFunc func() string
// DockerfilesSubdirFunc mocks the DockerfilesSubdir method.
DockerfilesSubdirFunc func() (string, error)
// DomainFunc mocks the Domain method.
DomainFunc func() string
// EngineLabelPrefixFunc mocks the EngineLabelPrefix method.
EngineLabelPrefixFunc func() string
// EngineManagedLabelFunc mocks the EngineManagedLabel method.
EngineManagedLabelFunc func() string
// GetProjectIgnoreFileFunc mocks the GetProjectIgnoreFile method.
GetProjectIgnoreFileFunc func() (string, error)
// GetProjectRootFunc mocks the GetProjectRoot method.
GetProjectRootFunc func() (string, error)
// GrafanaURLFunc mocks the GrafanaURL method.
GrafanaURLFunc func(host string, https bool) string
// HostProxyConfigFunc mocks the HostProxyConfig method.
HostProxyConfigFunc func() config.HostProxyConfig
// HostProxyLogFilePathFunc mocks the HostProxyLogFilePath method.
HostProxyLogFilePathFunc func() (string, error)
// HostProxyPIDFilePathFunc mocks the HostProxyPIDFilePath method.
HostProxyPIDFilePathFunc func() (string, error)
// JaegerURLFunc mocks the JaegerURL method.
JaegerURLFunc func(host string, https bool) string
// LabelAgentFunc mocks the LabelAgent method.
LabelAgentFunc func() string
// LabelBaseImageFunc mocks the LabelBaseImage method.
LabelBaseImageFunc func() string
// LabelCreatedFunc mocks the LabelCreated method.
LabelCreatedFunc func() string
// LabelDomainFunc mocks the LabelDomain method.
LabelDomainFunc func() string
// LabelE2ETestFunc mocks the LabelE2ETest method.
LabelE2ETestFunc func() string
// LabelFlavorFunc mocks the LabelFlavor method.
LabelFlavorFunc func() string
// LabelImageFunc mocks the LabelImage method.
LabelImageFunc func() string
// LabelManagedFunc mocks the LabelManaged method.
LabelManagedFunc func() string
// LabelMonitoringStackFunc mocks the LabelMonitoringStack method.
LabelMonitoringStackFunc func() string
// LabelPrefixFunc mocks the LabelPrefix method.
LabelPrefixFunc func() string
// LabelProjectFunc mocks the LabelProject method.
LabelProjectFunc func() string
// LabelPurposeFunc mocks the LabelPurpose method.
LabelPurposeFunc func() string
// LabelTestFunc mocks the LabelTest method.
LabelTestFunc func() string
// LabelTestNameFunc mocks the LabelTestName method.
LabelTestNameFunc func() string
// LabelVersionFunc mocks the LabelVersion method.
LabelVersionFunc func() string
// LabelWorkdirFunc mocks the LabelWorkdir method.
LabelWorkdirFunc func() string
// LoggingConfigFunc mocks the LoggingConfig method.
LoggingConfigFunc func() config.LoggingConfig
// LogsSubdirFunc mocks the LogsSubdir method.
LogsSubdirFunc func() (string, error)
// ManagedLabelValueFunc mocks the ManagedLabelValue method.
ManagedLabelValueFunc func() string
// MonitorSubdirFunc mocks the MonitorSubdir method.
MonitorSubdirFunc func() (string, error)
// MonitoringConfigFunc mocks the MonitoringConfig method.
MonitoringConfigFunc func() config.MonitoringConfig
// PidsSubdirFunc mocks the PidsSubdir method.
PidsSubdirFunc func() (string, error)
// ProjectFunc mocks the Project method.
ProjectFunc func() *config.Project
// ProjectConfigFileNameFunc mocks the ProjectConfigFileName method.
ProjectConfigFileNameFunc func() string
// ProjectRegistryFileNameFunc mocks the ProjectRegistryFileName method.
ProjectRegistryFileNameFunc func() string
// ProjectStoreFunc mocks the ProjectStore method.
ProjectStoreFunc func() *storage.Store[config.Project]
// PrometheusURLFunc mocks the PrometheusURL method.
PrometheusURLFunc func(host string, https bool) string
// RequiredFirewallDomainsFunc mocks the RequiredFirewallDomains method.
RequiredFirewallDomainsFunc func() []string
// SetProjectFunc mocks the SetProject method.
SetProjectFunc func(fn func(*config.Project))
// SetSettingsFunc mocks the SetSettings method.
SetSettingsFunc func(fn func(*config.Settings))
// SettingsFunc mocks the Settings method.
SettingsFunc func() config.Settings
// SettingsFileNameFunc mocks the SettingsFileName method.
SettingsFileNameFunc func() string
// SettingsStoreFunc mocks the SettingsStore method.
SettingsStoreFunc func() *storage.Store[config.Settings]
ShareSubdirFunc func() (string, error)
// StateDirEnvVarFunc mocks the StateDirEnvVar method.
StateDirEnvVarFunc func() string
// TestRepoDirEnvVarFunc mocks the TestRepoDirEnvVar method.
TestRepoDirEnvVarFunc func() string
// WorktreesSubdirFunc mocks the WorktreesSubdir method.
WorktreesSubdirFunc func() (string, error)
// WriteProjectFunc mocks the WriteProject method.
WriteProjectFunc func(filename ...string) error
// WriteSettingsFunc mocks the WriteSettings method.
WriteSettingsFunc func(filename ...string) error
// contains filtered or unexported fields
}
ConfigMock is a mock implementation of config.Config.
func TestSomethingThatUsesConfig(t *testing.T) {
// make and configure a mocked config.Config
mockedConfig := &ConfigMock{
BridgePIDFilePathFunc: func(containerID string) (string, error) {
panic("mock out the BridgePIDFilePath method")
},
BridgesSubdirFunc: func() (string, error) {
panic("mock out the BridgesSubdir method")
},
BuildSubdirFunc: func() (string, error) {
panic("mock out the BuildSubdir method")
},
ClawkerIgnoreNameFunc: func() string {
panic("mock out the ClawkerIgnoreName method")
},
ClawkerNetworkFunc: func() string {
panic("mock out the ClawkerNetwork method")
},
ConfigDirEnvVarFunc: func() string {
panic("mock out the ConfigDirEnvVar method")
},
ContainerGIDFunc: func() int {
panic("mock out the ContainerGID method")
},
ContainerUIDFunc: func() int {
panic("mock out the ContainerUID method")
},
DataDirEnvVarFunc: func() string {
panic("mock out the DataDirEnvVar method")
},
DockerfilesSubdirFunc: func() (string, error) {
panic("mock out the DockerfilesSubdir method")
},
DomainFunc: func() string {
panic("mock out the Domain method")
},
EngineLabelPrefixFunc: func() string {
panic("mock out the EngineLabelPrefix method")
},
EngineManagedLabelFunc: func() string {
panic("mock out the EngineManagedLabel method")
},
GetProjectIgnoreFileFunc: func() (string, error) {
panic("mock out the GetProjectIgnoreFile method")
},
GetProjectRootFunc: func() (string, error) {
panic("mock out the GetProjectRoot method")
},
GrafanaURLFunc: func(host string, https bool) string {
panic("mock out the GrafanaURL method")
},
HostProxyConfigFunc: func() config.HostProxyConfig {
panic("mock out the HostProxyConfig method")
},
HostProxyLogFilePathFunc: func() (string, error) {
panic("mock out the HostProxyLogFilePath method")
},
HostProxyPIDFilePathFunc: func() (string, error) {
panic("mock out the HostProxyPIDFilePath method")
},
JaegerURLFunc: func(host string, https bool) string {
panic("mock out the JaegerURL method")
},
LabelAgentFunc: func() string {
panic("mock out the LabelAgent method")
},
LabelBaseImageFunc: func() string {
panic("mock out the LabelBaseImage method")
},
LabelCreatedFunc: func() string {
panic("mock out the LabelCreated method")
},
LabelDomainFunc: func() string {
panic("mock out the LabelDomain method")
},
LabelE2ETestFunc: func() string {
panic("mock out the LabelE2ETest method")
},
LabelFlavorFunc: func() string {
panic("mock out the LabelFlavor method")
},
LabelImageFunc: func() string {
panic("mock out the LabelImage method")
},
LabelManagedFunc: func() string {
panic("mock out the LabelManaged method")
},
LabelMonitoringStackFunc: func() string {
panic("mock out the LabelMonitoringStack method")
},
LabelPrefixFunc: func() string {
panic("mock out the LabelPrefix method")
},
LabelProjectFunc: func() string {
panic("mock out the LabelProject method")
},
LabelPurposeFunc: func() string {
panic("mock out the LabelPurpose method")
},
LabelTestFunc: func() string {
panic("mock out the LabelTest method")
},
LabelTestNameFunc: func() string {
panic("mock out the LabelTestName method")
},
LabelVersionFunc: func() string {
panic("mock out the LabelVersion method")
},
LabelWorkdirFunc: func() string {
panic("mock out the LabelWorkdir method")
},
LoggingConfigFunc: func() config.LoggingConfig {
panic("mock out the LoggingConfig method")
},
LogsSubdirFunc: func() (string, error) {
panic("mock out the LogsSubdir method")
},
ManagedLabelValueFunc: func() string {
panic("mock out the ManagedLabelValue method")
},
MonitorSubdirFunc: func() (string, error) {
panic("mock out the MonitorSubdir method")
},
MonitoringConfigFunc: func() config.MonitoringConfig {
panic("mock out the MonitoringConfig method")
},
PidsSubdirFunc: func() (string, error) {
panic("mock out the PidsSubdir method")
},
ProjectFunc: func() *config.Project {
panic("mock out the Project method")
},
ProjectConfigFileNameFunc: func() string {
panic("mock out the ProjectConfigFileName method")
},
ProjectRegistryFileNameFunc: func() string {
panic("mock out the ProjectRegistryFileName method")
},
ProjectStoreFunc: func() *storage.Store[config.Project] {
panic("mock out the ProjectStore method")
},
PrometheusURLFunc: func(host string, https bool) string {
panic("mock out the PrometheusURL method")
},
RequiredFirewallDomainsFunc: func() []string {
panic("mock out the RequiredFirewallDomains method")
},
SetProjectFunc: func(fn func(*config.Project)) {
panic("mock out the SetProject method")
},
SetSettingsFunc: func(fn func(*config.Settings)) {
panic("mock out the SetSettings method")
},
SettingsFunc: func() config.Settings {
panic("mock out the Settings method")
},
SettingsFileNameFunc: func() string {
panic("mock out the SettingsFileName method")
},
SettingsStoreFunc: func() *storage.Store[config.Settings] {
panic("mock out the SettingsStore method")
},
ShareSubdirFunc: func() (string, error) {
panic("mock out the ShareSubdir method")
},
StateDirEnvVarFunc: func() string {
panic("mock out the StateDirEnvVar method")
},
TestRepoDirEnvVarFunc: func() string {
panic("mock out the TestRepoDirEnvVar method")
},
WorktreesSubdirFunc: func() (string, error) {
panic("mock out the WorktreesSubdir method")
},
WriteProjectFunc: func(filename ...string) error {
panic("mock out the WriteProject method")
},
WriteSettingsFunc: func(filename ...string) error {
panic("mock out the WriteSettings method")
},
}
// use mockedConfig in code that requires config.Config
// and then make assertions.
}
func NewBlankConfig ¶
func NewBlankConfig() *ConfigMock
NewBlankConfig returns an in-memory *ConfigMock seeded with defaults. It is the default test double for consumers that don't care about specific config values.
func NewFromString ¶
func NewFromString(projectYAML, settingsYAML string) *ConfigMock
NewFromString creates an in-memory *ConfigMock from YAML. projectYAML and settingsYAML are raw YAML strings with NO defaults merged. Pass empty strings for schemas you don't care about. Panics on invalid YAML to match test-stub ergonomics. SetProject, SetSettings, WriteProject, WriteSettings are NOT wired — calling them panics via moq's nil-func guard, signaling that NewIsolatedTestConfig should be used for mutation tests.
func (*ConfigMock) BridgePIDFilePath ¶
func (mock *ConfigMock) BridgePIDFilePath(containerID string) (string, error)
BridgePIDFilePath calls BridgePIDFilePathFunc.
func (*ConfigMock) BridgePIDFilePathCalls ¶
func (mock *ConfigMock) BridgePIDFilePathCalls() []struct { ContainerID string }
BridgePIDFilePathCalls gets all the calls that were made to BridgePIDFilePath. Check the length with:
len(mockedConfig.BridgePIDFilePathCalls())
func (*ConfigMock) BridgesSubdir ¶
func (mock *ConfigMock) BridgesSubdir() (string, error)
BridgesSubdir calls BridgesSubdirFunc.
func (*ConfigMock) BridgesSubdirCalls ¶
func (mock *ConfigMock) BridgesSubdirCalls() []struct { }
BridgesSubdirCalls gets all the calls that were made to BridgesSubdir. Check the length with:
len(mockedConfig.BridgesSubdirCalls())
func (*ConfigMock) BuildSubdir ¶
func (mock *ConfigMock) BuildSubdir() (string, error)
BuildSubdir calls BuildSubdirFunc.
func (*ConfigMock) BuildSubdirCalls ¶
func (mock *ConfigMock) BuildSubdirCalls() []struct { }
BuildSubdirCalls gets all the calls that were made to BuildSubdir. Check the length with:
len(mockedConfig.BuildSubdirCalls())
func (*ConfigMock) ClawkerIgnoreName ¶
func (mock *ConfigMock) ClawkerIgnoreName() string
ClawkerIgnoreName calls ClawkerIgnoreNameFunc.
func (*ConfigMock) ClawkerIgnoreNameCalls ¶
func (mock *ConfigMock) ClawkerIgnoreNameCalls() []struct { }
ClawkerIgnoreNameCalls gets all the calls that were made to ClawkerIgnoreName. Check the length with:
len(mockedConfig.ClawkerIgnoreNameCalls())
func (*ConfigMock) ClawkerNetwork ¶
func (mock *ConfigMock) ClawkerNetwork() string
ClawkerNetwork calls ClawkerNetworkFunc.
func (*ConfigMock) ClawkerNetworkCalls ¶
func (mock *ConfigMock) ClawkerNetworkCalls() []struct { }
ClawkerNetworkCalls gets all the calls that were made to ClawkerNetwork. Check the length with:
len(mockedConfig.ClawkerNetworkCalls())
func (*ConfigMock) ConfigDirEnvVar ¶
func (mock *ConfigMock) ConfigDirEnvVar() string
ConfigDirEnvVar calls ConfigDirEnvVarFunc.
func (*ConfigMock) ConfigDirEnvVarCalls ¶
func (mock *ConfigMock) ConfigDirEnvVarCalls() []struct { }
ConfigDirEnvVarCalls gets all the calls that were made to ConfigDirEnvVar. Check the length with:
len(mockedConfig.ConfigDirEnvVarCalls())
func (*ConfigMock) ContainerGID ¶
func (mock *ConfigMock) ContainerGID() int
ContainerGID calls ContainerGIDFunc.
func (*ConfigMock) ContainerGIDCalls ¶
func (mock *ConfigMock) ContainerGIDCalls() []struct { }
ContainerGIDCalls gets all the calls that were made to ContainerGID. Check the length with:
len(mockedConfig.ContainerGIDCalls())
func (*ConfigMock) ContainerUID ¶
func (mock *ConfigMock) ContainerUID() int
ContainerUID calls ContainerUIDFunc.
func (*ConfigMock) ContainerUIDCalls ¶
func (mock *ConfigMock) ContainerUIDCalls() []struct { }
ContainerUIDCalls gets all the calls that were made to ContainerUID. Check the length with:
len(mockedConfig.ContainerUIDCalls())
func (*ConfigMock) DataDirEnvVar ¶
func (mock *ConfigMock) DataDirEnvVar() string
DataDirEnvVar calls DataDirEnvVarFunc.
func (*ConfigMock) DataDirEnvVarCalls ¶
func (mock *ConfigMock) DataDirEnvVarCalls() []struct { }
DataDirEnvVarCalls gets all the calls that were made to DataDirEnvVar. Check the length with:
len(mockedConfig.DataDirEnvVarCalls())
func (*ConfigMock) DockerfilesSubdir ¶
func (mock *ConfigMock) DockerfilesSubdir() (string, error)
DockerfilesSubdir calls DockerfilesSubdirFunc.
func (*ConfigMock) DockerfilesSubdirCalls ¶
func (mock *ConfigMock) DockerfilesSubdirCalls() []struct { }
DockerfilesSubdirCalls gets all the calls that were made to DockerfilesSubdir. Check the length with:
len(mockedConfig.DockerfilesSubdirCalls())
func (*ConfigMock) DomainCalls ¶
func (mock *ConfigMock) DomainCalls() []struct { }
DomainCalls gets all the calls that were made to Domain. Check the length with:
len(mockedConfig.DomainCalls())
func (*ConfigMock) EngineLabelPrefix ¶
func (mock *ConfigMock) EngineLabelPrefix() string
EngineLabelPrefix calls EngineLabelPrefixFunc.
func (*ConfigMock) EngineLabelPrefixCalls ¶
func (mock *ConfigMock) EngineLabelPrefixCalls() []struct { }
EngineLabelPrefixCalls gets all the calls that were made to EngineLabelPrefix. Check the length with:
len(mockedConfig.EngineLabelPrefixCalls())
func (*ConfigMock) EngineManagedLabel ¶
func (mock *ConfigMock) EngineManagedLabel() string
EngineManagedLabel calls EngineManagedLabelFunc.
func (*ConfigMock) EngineManagedLabelCalls ¶
func (mock *ConfigMock) EngineManagedLabelCalls() []struct { }
EngineManagedLabelCalls gets all the calls that were made to EngineManagedLabel. Check the length with:
len(mockedConfig.EngineManagedLabelCalls())
func (*ConfigMock) GetProjectIgnoreFile ¶
func (mock *ConfigMock) GetProjectIgnoreFile() (string, error)
GetProjectIgnoreFile calls GetProjectIgnoreFileFunc.
func (*ConfigMock) GetProjectIgnoreFileCalls ¶
func (mock *ConfigMock) GetProjectIgnoreFileCalls() []struct { }
GetProjectIgnoreFileCalls gets all the calls that were made to GetProjectIgnoreFile. Check the length with:
len(mockedConfig.GetProjectIgnoreFileCalls())
func (*ConfigMock) GetProjectRoot ¶
func (mock *ConfigMock) GetProjectRoot() (string, error)
GetProjectRoot calls GetProjectRootFunc.
func (*ConfigMock) GetProjectRootCalls ¶
func (mock *ConfigMock) GetProjectRootCalls() []struct { }
GetProjectRootCalls gets all the calls that were made to GetProjectRoot. Check the length with:
len(mockedConfig.GetProjectRootCalls())
func (*ConfigMock) GrafanaURL ¶
func (mock *ConfigMock) GrafanaURL(host string, https bool) string
GrafanaURL calls GrafanaURLFunc.
func (*ConfigMock) GrafanaURLCalls ¶
func (mock *ConfigMock) GrafanaURLCalls() []struct { Host string HTTPS bool }
GrafanaURLCalls gets all the calls that were made to GrafanaURL. Check the length with:
len(mockedConfig.GrafanaURLCalls())
func (*ConfigMock) HostProxyConfig ¶
func (mock *ConfigMock) HostProxyConfig() config.HostProxyConfig
HostProxyConfig calls HostProxyConfigFunc.
func (*ConfigMock) HostProxyConfigCalls ¶
func (mock *ConfigMock) HostProxyConfigCalls() []struct { }
HostProxyConfigCalls gets all the calls that were made to HostProxyConfig. Check the length with:
len(mockedConfig.HostProxyConfigCalls())
func (*ConfigMock) HostProxyLogFilePath ¶
func (mock *ConfigMock) HostProxyLogFilePath() (string, error)
HostProxyLogFilePath calls HostProxyLogFilePathFunc.
func (*ConfigMock) HostProxyLogFilePathCalls ¶
func (mock *ConfigMock) HostProxyLogFilePathCalls() []struct { }
HostProxyLogFilePathCalls gets all the calls that were made to HostProxyLogFilePath. Check the length with:
len(mockedConfig.HostProxyLogFilePathCalls())
func (*ConfigMock) HostProxyPIDFilePath ¶
func (mock *ConfigMock) HostProxyPIDFilePath() (string, error)
HostProxyPIDFilePath calls HostProxyPIDFilePathFunc.
func (*ConfigMock) HostProxyPIDFilePathCalls ¶
func (mock *ConfigMock) HostProxyPIDFilePathCalls() []struct { }
HostProxyPIDFilePathCalls gets all the calls that were made to HostProxyPIDFilePath. Check the length with:
len(mockedConfig.HostProxyPIDFilePathCalls())
func (*ConfigMock) JaegerURL ¶
func (mock *ConfigMock) JaegerURL(host string, https bool) string
JaegerURL calls JaegerURLFunc.
func (*ConfigMock) JaegerURLCalls ¶
func (mock *ConfigMock) JaegerURLCalls() []struct { Host string HTTPS bool }
JaegerURLCalls gets all the calls that were made to JaegerURL. Check the length with:
len(mockedConfig.JaegerURLCalls())
func (*ConfigMock) LabelAgent ¶
func (mock *ConfigMock) LabelAgent() string
LabelAgent calls LabelAgentFunc.
func (*ConfigMock) LabelAgentCalls ¶
func (mock *ConfigMock) LabelAgentCalls() []struct { }
LabelAgentCalls gets all the calls that were made to LabelAgent. Check the length with:
len(mockedConfig.LabelAgentCalls())
func (*ConfigMock) LabelBaseImage ¶
func (mock *ConfigMock) LabelBaseImage() string
LabelBaseImage calls LabelBaseImageFunc.
func (*ConfigMock) LabelBaseImageCalls ¶
func (mock *ConfigMock) LabelBaseImageCalls() []struct { }
LabelBaseImageCalls gets all the calls that were made to LabelBaseImage. Check the length with:
len(mockedConfig.LabelBaseImageCalls())
func (*ConfigMock) LabelCreated ¶
func (mock *ConfigMock) LabelCreated() string
LabelCreated calls LabelCreatedFunc.
func (*ConfigMock) LabelCreatedCalls ¶
func (mock *ConfigMock) LabelCreatedCalls() []struct { }
LabelCreatedCalls gets all the calls that were made to LabelCreated. Check the length with:
len(mockedConfig.LabelCreatedCalls())
func (*ConfigMock) LabelDomain ¶
func (mock *ConfigMock) LabelDomain() string
LabelDomain calls LabelDomainFunc.
func (*ConfigMock) LabelDomainCalls ¶
func (mock *ConfigMock) LabelDomainCalls() []struct { }
LabelDomainCalls gets all the calls that were made to LabelDomain. Check the length with:
len(mockedConfig.LabelDomainCalls())
func (*ConfigMock) LabelE2ETest ¶
func (mock *ConfigMock) LabelE2ETest() string
LabelE2ETest calls LabelE2ETestFunc.
func (*ConfigMock) LabelE2ETestCalls ¶
func (mock *ConfigMock) LabelE2ETestCalls() []struct { }
LabelE2ETestCalls gets all the calls that were made to LabelE2ETest. Check the length with:
len(mockedConfig.LabelE2ETestCalls())
func (*ConfigMock) LabelFlavor ¶
func (mock *ConfigMock) LabelFlavor() string
LabelFlavor calls LabelFlavorFunc.
func (*ConfigMock) LabelFlavorCalls ¶
func (mock *ConfigMock) LabelFlavorCalls() []struct { }
LabelFlavorCalls gets all the calls that were made to LabelFlavor. Check the length with:
len(mockedConfig.LabelFlavorCalls())
func (*ConfigMock) LabelImage ¶
func (mock *ConfigMock) LabelImage() string
LabelImage calls LabelImageFunc.
func (*ConfigMock) LabelImageCalls ¶
func (mock *ConfigMock) LabelImageCalls() []struct { }
LabelImageCalls gets all the calls that were made to LabelImage. Check the length with:
len(mockedConfig.LabelImageCalls())
func (*ConfigMock) LabelManaged ¶
func (mock *ConfigMock) LabelManaged() string
LabelManaged calls LabelManagedFunc.
func (*ConfigMock) LabelManagedCalls ¶
func (mock *ConfigMock) LabelManagedCalls() []struct { }
LabelManagedCalls gets all the calls that were made to LabelManaged. Check the length with:
len(mockedConfig.LabelManagedCalls())
func (*ConfigMock) LabelMonitoringStack ¶
func (mock *ConfigMock) LabelMonitoringStack() string
LabelMonitoringStack calls LabelMonitoringStackFunc.
func (*ConfigMock) LabelMonitoringStackCalls ¶
func (mock *ConfigMock) LabelMonitoringStackCalls() []struct { }
LabelMonitoringStackCalls gets all the calls that were made to LabelMonitoringStack. Check the length with:
len(mockedConfig.LabelMonitoringStackCalls())
func (*ConfigMock) LabelPrefix ¶
func (mock *ConfigMock) LabelPrefix() string
LabelPrefix calls LabelPrefixFunc.
func (*ConfigMock) LabelPrefixCalls ¶
func (mock *ConfigMock) LabelPrefixCalls() []struct { }
LabelPrefixCalls gets all the calls that were made to LabelPrefix. Check the length with:
len(mockedConfig.LabelPrefixCalls())
func (*ConfigMock) LabelProject ¶
func (mock *ConfigMock) LabelProject() string
LabelProject calls LabelProjectFunc.
func (*ConfigMock) LabelProjectCalls ¶
func (mock *ConfigMock) LabelProjectCalls() []struct { }
LabelProjectCalls gets all the calls that were made to LabelProject. Check the length with:
len(mockedConfig.LabelProjectCalls())
func (*ConfigMock) LabelPurpose ¶
func (mock *ConfigMock) LabelPurpose() string
LabelPurpose calls LabelPurposeFunc.
func (*ConfigMock) LabelPurposeCalls ¶
func (mock *ConfigMock) LabelPurposeCalls() []struct { }
LabelPurposeCalls gets all the calls that were made to LabelPurpose. Check the length with:
len(mockedConfig.LabelPurposeCalls())
func (*ConfigMock) LabelTest ¶
func (mock *ConfigMock) LabelTest() string
LabelTest calls LabelTestFunc.
func (*ConfigMock) LabelTestCalls ¶
func (mock *ConfigMock) LabelTestCalls() []struct { }
LabelTestCalls gets all the calls that were made to LabelTest. Check the length with:
len(mockedConfig.LabelTestCalls())
func (*ConfigMock) LabelTestName ¶
func (mock *ConfigMock) LabelTestName() string
LabelTestName calls LabelTestNameFunc.
func (*ConfigMock) LabelTestNameCalls ¶
func (mock *ConfigMock) LabelTestNameCalls() []struct { }
LabelTestNameCalls gets all the calls that were made to LabelTestName. Check the length with:
len(mockedConfig.LabelTestNameCalls())
func (*ConfigMock) LabelVersion ¶
func (mock *ConfigMock) LabelVersion() string
LabelVersion calls LabelVersionFunc.
func (*ConfigMock) LabelVersionCalls ¶
func (mock *ConfigMock) LabelVersionCalls() []struct { }
LabelVersionCalls gets all the calls that were made to LabelVersion. Check the length with:
len(mockedConfig.LabelVersionCalls())
func (*ConfigMock) LabelWorkdir ¶
func (mock *ConfigMock) LabelWorkdir() string
LabelWorkdir calls LabelWorkdirFunc.
func (*ConfigMock) LabelWorkdirCalls ¶
func (mock *ConfigMock) LabelWorkdirCalls() []struct { }
LabelWorkdirCalls gets all the calls that were made to LabelWorkdir. Check the length with:
len(mockedConfig.LabelWorkdirCalls())
func (*ConfigMock) LoggingConfig ¶
func (mock *ConfigMock) LoggingConfig() config.LoggingConfig
LoggingConfig calls LoggingConfigFunc.
func (*ConfigMock) LoggingConfigCalls ¶
func (mock *ConfigMock) LoggingConfigCalls() []struct { }
LoggingConfigCalls gets all the calls that were made to LoggingConfig. Check the length with:
len(mockedConfig.LoggingConfigCalls())
func (*ConfigMock) LogsSubdir ¶
func (mock *ConfigMock) LogsSubdir() (string, error)
LogsSubdir calls LogsSubdirFunc.
func (*ConfigMock) LogsSubdirCalls ¶
func (mock *ConfigMock) LogsSubdirCalls() []struct { }
LogsSubdirCalls gets all the calls that were made to LogsSubdir. Check the length with:
len(mockedConfig.LogsSubdirCalls())
func (*ConfigMock) ManagedLabelValue ¶
func (mock *ConfigMock) ManagedLabelValue() string
ManagedLabelValue calls ManagedLabelValueFunc.
func (*ConfigMock) ManagedLabelValueCalls ¶
func (mock *ConfigMock) ManagedLabelValueCalls() []struct { }
ManagedLabelValueCalls gets all the calls that were made to ManagedLabelValue. Check the length with:
len(mockedConfig.ManagedLabelValueCalls())
func (*ConfigMock) MonitorSubdir ¶
func (mock *ConfigMock) MonitorSubdir() (string, error)
MonitorSubdir calls MonitorSubdirFunc.
func (*ConfigMock) MonitorSubdirCalls ¶
func (mock *ConfigMock) MonitorSubdirCalls() []struct { }
MonitorSubdirCalls gets all the calls that were made to MonitorSubdir. Check the length with:
len(mockedConfig.MonitorSubdirCalls())
func (*ConfigMock) MonitoringConfig ¶
func (mock *ConfigMock) MonitoringConfig() config.MonitoringConfig
MonitoringConfig calls MonitoringConfigFunc.
func (*ConfigMock) MonitoringConfigCalls ¶
func (mock *ConfigMock) MonitoringConfigCalls() []struct { }
MonitoringConfigCalls gets all the calls that were made to MonitoringConfig. Check the length with:
len(mockedConfig.MonitoringConfigCalls())
func (*ConfigMock) PidsSubdir ¶
func (mock *ConfigMock) PidsSubdir() (string, error)
PidsSubdir calls PidsSubdirFunc.
func (*ConfigMock) PidsSubdirCalls ¶
func (mock *ConfigMock) PidsSubdirCalls() []struct { }
PidsSubdirCalls gets all the calls that were made to PidsSubdir. Check the length with:
len(mockedConfig.PidsSubdirCalls())
func (*ConfigMock) Project ¶
func (mock *ConfigMock) Project() *config.Project
Project calls ProjectFunc.
func (*ConfigMock) ProjectCalls ¶
func (mock *ConfigMock) ProjectCalls() []struct { }
ProjectCalls gets all the calls that were made to Project. Check the length with:
len(mockedConfig.ProjectCalls())
func (*ConfigMock) ProjectConfigFileName ¶
func (mock *ConfigMock) ProjectConfigFileName() string
ProjectConfigFileName calls ProjectConfigFileNameFunc.
func (*ConfigMock) ProjectConfigFileNameCalls ¶
func (mock *ConfigMock) ProjectConfigFileNameCalls() []struct { }
ProjectConfigFileNameCalls gets all the calls that were made to ProjectConfigFileName. Check the length with:
len(mockedConfig.ProjectConfigFileNameCalls())
func (*ConfigMock) ProjectRegistryFileName ¶
func (mock *ConfigMock) ProjectRegistryFileName() string
ProjectRegistryFileName calls ProjectRegistryFileNameFunc.
func (*ConfigMock) ProjectRegistryFileNameCalls ¶
func (mock *ConfigMock) ProjectRegistryFileNameCalls() []struct { }
ProjectRegistryFileNameCalls gets all the calls that were made to ProjectRegistryFileName. Check the length with:
len(mockedConfig.ProjectRegistryFileNameCalls())
func (*ConfigMock) ProjectStore ¶
func (mock *ConfigMock) ProjectStore() *storage.Store[config.Project]
ProjectStore calls ProjectStoreFunc.
func (*ConfigMock) ProjectStoreCalls ¶
func (mock *ConfigMock) ProjectStoreCalls() []struct { }
ProjectStoreCalls gets all the calls that were made to ProjectStore. Check the length with:
len(mockedConfig.ProjectStoreCalls())
func (*ConfigMock) PrometheusURL ¶
func (mock *ConfigMock) PrometheusURL(host string, https bool) string
PrometheusURL calls PrometheusURLFunc.
func (*ConfigMock) PrometheusURLCalls ¶
func (mock *ConfigMock) PrometheusURLCalls() []struct { Host string HTTPS bool }
PrometheusURLCalls gets all the calls that were made to PrometheusURL. Check the length with:
len(mockedConfig.PrometheusURLCalls())
func (*ConfigMock) RequiredFirewallDomains ¶
func (mock *ConfigMock) RequiredFirewallDomains() []string
RequiredFirewallDomains calls RequiredFirewallDomainsFunc.
func (*ConfigMock) RequiredFirewallDomainsCalls ¶
func (mock *ConfigMock) RequiredFirewallDomainsCalls() []struct { }
RequiredFirewallDomainsCalls gets all the calls that were made to RequiredFirewallDomains. Check the length with:
len(mockedConfig.RequiredFirewallDomainsCalls())
func (*ConfigMock) SetProject ¶
func (mock *ConfigMock) SetProject(fn func(*config.Project))
SetProject calls SetProjectFunc.
func (*ConfigMock) SetProjectCalls ¶
func (mock *ConfigMock) SetProjectCalls() []struct { Fn func(*config.Project) }
SetProjectCalls gets all the calls that were made to SetProject. Check the length with:
len(mockedConfig.SetProjectCalls())
func (*ConfigMock) SetSettings ¶
func (mock *ConfigMock) SetSettings(fn func(*config.Settings))
SetSettings calls SetSettingsFunc.
func (*ConfigMock) SetSettingsCalls ¶
func (mock *ConfigMock) SetSettingsCalls() []struct { Fn func(*config.Settings) }
SetSettingsCalls gets all the calls that were made to SetSettings. Check the length with:
len(mockedConfig.SetSettingsCalls())
func (*ConfigMock) Settings ¶
func (mock *ConfigMock) Settings() config.Settings
Settings calls SettingsFunc.
func (*ConfigMock) SettingsCalls ¶
func (mock *ConfigMock) SettingsCalls() []struct { }
SettingsCalls gets all the calls that were made to Settings. Check the length with:
len(mockedConfig.SettingsCalls())
func (*ConfigMock) SettingsFileName ¶
func (mock *ConfigMock) SettingsFileName() string
SettingsFileName calls SettingsFileNameFunc.
func (*ConfigMock) SettingsFileNameCalls ¶
func (mock *ConfigMock) SettingsFileNameCalls() []struct { }
SettingsFileNameCalls gets all the calls that were made to SettingsFileName. Check the length with:
len(mockedConfig.SettingsFileNameCalls())
func (*ConfigMock) SettingsStore ¶
func (mock *ConfigMock) SettingsStore() *storage.Store[config.Settings]
SettingsStore calls SettingsStoreFunc.
func (*ConfigMock) SettingsStoreCalls ¶
func (mock *ConfigMock) SettingsStoreCalls() []struct { }
SettingsStoreCalls gets all the calls that were made to SettingsStore. Check the length with:
len(mockedConfig.SettingsStoreCalls())
func (*ConfigMock) ShareSubdir ¶
func (mock *ConfigMock) ShareSubdir() (string, error)
ShareSubdir calls ShareSubdirFunc.
func (*ConfigMock) ShareSubdirCalls ¶
func (mock *ConfigMock) ShareSubdirCalls() []struct { }
ShareSubdirCalls gets all the calls that were made to ShareSubdir. Check the length with:
len(mockedConfig.ShareSubdirCalls())
func (*ConfigMock) StateDirEnvVar ¶
func (mock *ConfigMock) StateDirEnvVar() string
StateDirEnvVar calls StateDirEnvVarFunc.
func (*ConfigMock) StateDirEnvVarCalls ¶
func (mock *ConfigMock) StateDirEnvVarCalls() []struct { }
StateDirEnvVarCalls gets all the calls that were made to StateDirEnvVar. Check the length with:
len(mockedConfig.StateDirEnvVarCalls())
func (*ConfigMock) TestRepoDirEnvVar ¶
func (mock *ConfigMock) TestRepoDirEnvVar() string
TestRepoDirEnvVar calls TestRepoDirEnvVarFunc.
func (*ConfigMock) TestRepoDirEnvVarCalls ¶
func (mock *ConfigMock) TestRepoDirEnvVarCalls() []struct { }
TestRepoDirEnvVarCalls gets all the calls that were made to TestRepoDirEnvVar. Check the length with:
len(mockedConfig.TestRepoDirEnvVarCalls())
func (*ConfigMock) WorktreesSubdir ¶
func (mock *ConfigMock) WorktreesSubdir() (string, error)
WorktreesSubdir calls WorktreesSubdirFunc.
func (*ConfigMock) WorktreesSubdirCalls ¶
func (mock *ConfigMock) WorktreesSubdirCalls() []struct { }
WorktreesSubdirCalls gets all the calls that were made to WorktreesSubdir. Check the length with:
len(mockedConfig.WorktreesSubdirCalls())
func (*ConfigMock) WriteProject ¶
func (mock *ConfigMock) WriteProject(filename ...string) error
WriteProject calls WriteProjectFunc.
func (*ConfigMock) WriteProjectCalls ¶
func (mock *ConfigMock) WriteProjectCalls() []struct { Filename []string }
WriteProjectCalls gets all the calls that were made to WriteProject. Check the length with:
len(mockedConfig.WriteProjectCalls())
func (*ConfigMock) WriteSettings ¶
func (mock *ConfigMock) WriteSettings(filename ...string) error
WriteSettings calls WriteSettingsFunc.
func (*ConfigMock) WriteSettingsCalls ¶
func (mock *ConfigMock) WriteSettingsCalls() []struct { Filename []string }
WriteSettingsCalls gets all the calls that were made to WriteSettings. Check the length with:
len(mockedConfig.WriteSettingsCalls())