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) CoreDNSHealthHostPort() int
- func (mock *ConfigMock) CoreDNSHealthHostPortCalls() []struct{}
- func (mock *ConfigMock) CoreDNSHealthPath() string
- func (mock *ConfigMock) CoreDNSHealthPathCalls() []struct{}
- func (mock *ConfigMock) CoreDNSIPLastOctet() byte
- func (mock *ConfigMock) CoreDNSIPLastOctetCalls() []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) EgressRulesFileName() string
- func (mock *ConfigMock) EgressRulesFileNameCalls() []struct{}
- func (mock *ConfigMock) EngineLabelPrefix() string
- func (mock *ConfigMock) EngineLabelPrefixCalls() []struct{}
- func (mock *ConfigMock) EngineManagedLabel() string
- func (mock *ConfigMock) EngineManagedLabelCalls() []struct{}
- func (mock *ConfigMock) EnvoyHTTPPort() int
- func (mock *ConfigMock) EnvoyHTTPPortCalls() []struct{}
- func (mock *ConfigMock) EnvoyHealthHostPort() int
- func (mock *ConfigMock) EnvoyHealthHostPortCalls() []struct{}
- func (mock *ConfigMock) EnvoyHealthPort() int
- func (mock *ConfigMock) EnvoyHealthPortCalls() []struct{}
- func (mock *ConfigMock) EnvoyIPLastOctet() byte
- func (mock *ConfigMock) EnvoyIPLastOctetCalls() []struct{}
- func (mock *ConfigMock) EnvoyTCPPortBase() int
- func (mock *ConfigMock) EnvoyTCPPortBaseCalls() []struct{}
- func (mock *ConfigMock) EnvoyTLSPort() int
- func (mock *ConfigMock) EnvoyTLSPortCalls() []struct{}
- func (mock *ConfigMock) FirewallCertSubdir() (string, error)
- func (mock *ConfigMock) FirewallCertSubdirCalls() []struct{}
- func (mock *ConfigMock) FirewallDataSubdir() (string, error)
- func (mock *ConfigMock) FirewallDataSubdirCalls() []struct{}
- func (mock *ConfigMock) FirewallLogFilePath() (string, error)
- func (mock *ConfigMock) FirewallLogFilePathCalls() []struct{}
- func (mock *ConfigMock) FirewallPIDFilePath() (string, error)
- func (mock *ConfigMock) FirewallPIDFilePathCalls() []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) 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) PurposeAgent() string
- func (mock *ConfigMock) PurposeAgentCalls() []struct{}
- func (mock *ConfigMock) PurposeFirewall() string
- func (mock *ConfigMock) PurposeFirewallCalls() []struct{}
- func (mock *ConfigMock) PurposeMonitoring() string
- func (mock *ConfigMock) PurposeMonitoringCalls() []struct{}
- func (mock *ConfigMock) RequiredFirewallDomains() []string
- func (mock *ConfigMock) RequiredFirewallDomainsCalls() []struct{}
- func (mock *ConfigMock) RequiredFirewallRules() []config.EgressRule
- func (mock *ConfigMock) RequiredFirewallRulesCalls() []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{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
// CoreDNSHealthHostPortFunc mocks the CoreDNSHealthHostPort method.
CoreDNSHealthHostPortFunc func() int
// CoreDNSHealthPathFunc mocks the CoreDNSHealthPath method.
CoreDNSHealthPathFunc func() string
// CoreDNSIPLastOctetFunc mocks the CoreDNSIPLastOctet method.
CoreDNSIPLastOctetFunc func() byte
// 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
// EgressRulesFileNameFunc mocks the EgressRulesFileName method.
EgressRulesFileNameFunc func() string
// EngineLabelPrefixFunc mocks the EngineLabelPrefix method.
EngineLabelPrefixFunc func() string
// EngineManagedLabelFunc mocks the EngineManagedLabel method.
EngineManagedLabelFunc func() string
// EnvoyHTTPPortFunc mocks the EnvoyHTTPPort method.
EnvoyHTTPPortFunc func() int
// EnvoyHealthHostPortFunc mocks the EnvoyHealthHostPort method.
EnvoyHealthHostPortFunc func() int
// EnvoyHealthPortFunc mocks the EnvoyHealthPort method.
EnvoyHealthPortFunc func() int
// EnvoyIPLastOctetFunc mocks the EnvoyIPLastOctet method.
EnvoyIPLastOctetFunc func() byte
// EnvoyTCPPortBaseFunc mocks the EnvoyTCPPortBase method.
EnvoyTCPPortBaseFunc func() int
// EnvoyTLSPortFunc mocks the EnvoyTLSPort method.
EnvoyTLSPortFunc func() int
// FirewallCertSubdirFunc mocks the FirewallCertSubdir method.
FirewallCertSubdirFunc func() (string, error)
// FirewallDataSubdirFunc mocks the FirewallDataSubdir method.
FirewallDataSubdirFunc func() (string, error)
// FirewallLogFilePathFunc mocks the FirewallLogFilePath method.
FirewallLogFilePathFunc func() (string, error)
// FirewallPIDFilePathFunc mocks the FirewallPIDFilePath method.
FirewallPIDFilePathFunc func() (string, error)
// 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
// 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
// PurposeAgentFunc mocks the PurposeAgent method.
PurposeAgentFunc func() string
// PurposeFirewallFunc mocks the PurposeFirewall method.
PurposeFirewallFunc func() string
// PurposeMonitoringFunc mocks the PurposeMonitoring method.
PurposeMonitoringFunc func() string
// RequiredFirewallDomainsFunc mocks the RequiredFirewallDomains method.
RequiredFirewallDomainsFunc func() []string
// RequiredFirewallRulesFunc mocks the RequiredFirewallRules method.
RequiredFirewallRulesFunc func() []config.EgressRule
// 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)
// 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")
},
CoreDNSHealthHostPortFunc: func() int {
panic("mock out the CoreDNSHealthHostPort method")
},
CoreDNSHealthPathFunc: func() string {
panic("mock out the CoreDNSHealthPath method")
},
CoreDNSIPLastOctetFunc: func() byte {
panic("mock out the CoreDNSIPLastOctet 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")
},
EgressRulesFileNameFunc: func() string {
panic("mock out the EgressRulesFileName method")
},
EngineLabelPrefixFunc: func() string {
panic("mock out the EngineLabelPrefix method")
},
EngineManagedLabelFunc: func() string {
panic("mock out the EngineManagedLabel method")
},
EnvoyHTTPPortFunc: func() int {
panic("mock out the EnvoyHTTPPort method")
},
EnvoyHealthHostPortFunc: func() int {
panic("mock out the EnvoyHealthHostPort method")
},
EnvoyHealthPortFunc: func() int {
panic("mock out the EnvoyHealthPort method")
},
EnvoyIPLastOctetFunc: func() byte {
panic("mock out the EnvoyIPLastOctet method")
},
EnvoyTCPPortBaseFunc: func() int {
panic("mock out the EnvoyTCPPortBase method")
},
EnvoyTLSPortFunc: func() int {
panic("mock out the EnvoyTLSPort method")
},
FirewallCertSubdirFunc: func() (string, error) {
panic("mock out the FirewallCertSubdir method")
},
FirewallDataSubdirFunc: func() (string, error) {
panic("mock out the FirewallDataSubdir method")
},
FirewallLogFilePathFunc: func() (string, error) {
panic("mock out the FirewallLogFilePath method")
},
FirewallPIDFilePathFunc: func() (string, error) {
panic("mock out the FirewallPIDFilePath 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")
},
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")
},
PurposeAgentFunc: func() string {
panic("mock out the PurposeAgent method")
},
PurposeFirewallFunc: func() string {
panic("mock out the PurposeFirewall method")
},
PurposeMonitoringFunc: func() string {
panic("mock out the PurposeMonitoring method")
},
RequiredFirewallDomainsFunc: func() []string {
panic("mock out the RequiredFirewallDomains method")
},
RequiredFirewallRulesFunc: func() []config.EgressRule {
panic("mock out the RequiredFirewallRules 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")
},
}
// 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) CoreDNSHealthHostPort ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSHealthHostPort() int
CoreDNSHealthHostPort calls CoreDNSHealthHostPortFunc.
func (*ConfigMock) CoreDNSHealthHostPortCalls ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSHealthHostPortCalls() []struct { }
CoreDNSHealthHostPortCalls gets all the calls that were made to CoreDNSHealthHostPort. Check the length with:
len(mockedConfig.CoreDNSHealthHostPortCalls())
func (*ConfigMock) CoreDNSHealthPath ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSHealthPath() string
CoreDNSHealthPath calls CoreDNSHealthPathFunc.
func (*ConfigMock) CoreDNSHealthPathCalls ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSHealthPathCalls() []struct { }
CoreDNSHealthPathCalls gets all the calls that were made to CoreDNSHealthPath. Check the length with:
len(mockedConfig.CoreDNSHealthPathCalls())
func (*ConfigMock) CoreDNSIPLastOctet ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSIPLastOctet() byte
CoreDNSIPLastOctet calls CoreDNSIPLastOctetFunc.
func (*ConfigMock) CoreDNSIPLastOctetCalls ¶ added in v0.5.0
func (mock *ConfigMock) CoreDNSIPLastOctetCalls() []struct { }
CoreDNSIPLastOctetCalls gets all the calls that were made to CoreDNSIPLastOctet. Check the length with:
len(mockedConfig.CoreDNSIPLastOctetCalls())
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) EgressRulesFileName ¶ added in v0.5.0
func (mock *ConfigMock) EgressRulesFileName() string
EgressRulesFileName calls EgressRulesFileNameFunc.
func (*ConfigMock) EgressRulesFileNameCalls ¶ added in v0.5.0
func (mock *ConfigMock) EgressRulesFileNameCalls() []struct { }
EgressRulesFileNameCalls gets all the calls that were made to EgressRulesFileName. Check the length with:
len(mockedConfig.EgressRulesFileNameCalls())
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) EnvoyHTTPPort ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyHTTPPort() int
EnvoyHTTPPort calls EnvoyHTTPPortFunc.
func (*ConfigMock) EnvoyHTTPPortCalls ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyHTTPPortCalls() []struct { }
EnvoyHTTPPortCalls gets all the calls that were made to EnvoyHTTPPort. Check the length with:
len(mockedConfig.EnvoyHTTPPortCalls())
func (*ConfigMock) EnvoyHealthHostPort ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyHealthHostPort() int
EnvoyHealthHostPort calls EnvoyHealthHostPortFunc.
func (*ConfigMock) EnvoyHealthHostPortCalls ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyHealthHostPortCalls() []struct { }
EnvoyHealthHostPortCalls gets all the calls that were made to EnvoyHealthHostPort. Check the length with:
len(mockedConfig.EnvoyHealthHostPortCalls())
func (*ConfigMock) EnvoyHealthPort ¶ added in v0.6.6
func (mock *ConfigMock) EnvoyHealthPort() int
EnvoyHealthPort calls EnvoyHealthPortFunc.
func (*ConfigMock) EnvoyHealthPortCalls ¶ added in v0.6.6
func (mock *ConfigMock) EnvoyHealthPortCalls() []struct { }
EnvoyHealthPortCalls gets all the calls that were made to EnvoyHealthPort. Check the length with:
len(mockedConfig.EnvoyHealthPortCalls())
func (*ConfigMock) EnvoyIPLastOctet ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyIPLastOctet() byte
EnvoyIPLastOctet calls EnvoyIPLastOctetFunc.
func (*ConfigMock) EnvoyIPLastOctetCalls ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyIPLastOctetCalls() []struct { }
EnvoyIPLastOctetCalls gets all the calls that were made to EnvoyIPLastOctet. Check the length with:
len(mockedConfig.EnvoyIPLastOctetCalls())
func (*ConfigMock) EnvoyTCPPortBase ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyTCPPortBase() int
EnvoyTCPPortBase calls EnvoyTCPPortBaseFunc.
func (*ConfigMock) EnvoyTCPPortBaseCalls ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyTCPPortBaseCalls() []struct { }
EnvoyTCPPortBaseCalls gets all the calls that were made to EnvoyTCPPortBase. Check the length with:
len(mockedConfig.EnvoyTCPPortBaseCalls())
func (*ConfigMock) EnvoyTLSPort ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyTLSPort() int
EnvoyTLSPort calls EnvoyTLSPortFunc.
func (*ConfigMock) EnvoyTLSPortCalls ¶ added in v0.5.0
func (mock *ConfigMock) EnvoyTLSPortCalls() []struct { }
EnvoyTLSPortCalls gets all the calls that were made to EnvoyTLSPort. Check the length with:
len(mockedConfig.EnvoyTLSPortCalls())
func (*ConfigMock) FirewallCertSubdir ¶ added in v0.5.0
func (mock *ConfigMock) FirewallCertSubdir() (string, error)
FirewallCertSubdir calls FirewallCertSubdirFunc.
func (*ConfigMock) FirewallCertSubdirCalls ¶ added in v0.5.0
func (mock *ConfigMock) FirewallCertSubdirCalls() []struct { }
FirewallCertSubdirCalls gets all the calls that were made to FirewallCertSubdir. Check the length with:
len(mockedConfig.FirewallCertSubdirCalls())
func (*ConfigMock) FirewallDataSubdir ¶ added in v0.5.0
func (mock *ConfigMock) FirewallDataSubdir() (string, error)
FirewallDataSubdir calls FirewallDataSubdirFunc.
func (*ConfigMock) FirewallDataSubdirCalls ¶ added in v0.5.0
func (mock *ConfigMock) FirewallDataSubdirCalls() []struct { }
FirewallDataSubdirCalls gets all the calls that were made to FirewallDataSubdir. Check the length with:
len(mockedConfig.FirewallDataSubdirCalls())
func (*ConfigMock) FirewallLogFilePath ¶ added in v0.5.0
func (mock *ConfigMock) FirewallLogFilePath() (string, error)
FirewallLogFilePath calls FirewallLogFilePathFunc.
func (*ConfigMock) FirewallLogFilePathCalls ¶ added in v0.5.0
func (mock *ConfigMock) FirewallLogFilePathCalls() []struct { }
FirewallLogFilePathCalls gets all the calls that were made to FirewallLogFilePath. Check the length with:
len(mockedConfig.FirewallLogFilePathCalls())
func (*ConfigMock) FirewallPIDFilePath ¶ added in v0.5.0
func (mock *ConfigMock) FirewallPIDFilePath() (string, error)
FirewallPIDFilePath calls FirewallPIDFilePathFunc.
func (*ConfigMock) FirewallPIDFilePathCalls ¶ added in v0.5.0
func (mock *ConfigMock) FirewallPIDFilePathCalls() []struct { }
FirewallPIDFilePathCalls gets all the calls that were made to FirewallPIDFilePath. Check the length with:
len(mockedConfig.FirewallPIDFilePathCalls())
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) 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) PurposeAgent ¶ added in v0.5.0
func (mock *ConfigMock) PurposeAgent() string
PurposeAgent calls PurposeAgentFunc.
func (*ConfigMock) PurposeAgentCalls ¶ added in v0.5.0
func (mock *ConfigMock) PurposeAgentCalls() []struct { }
PurposeAgentCalls gets all the calls that were made to PurposeAgent. Check the length with:
len(mockedConfig.PurposeAgentCalls())
func (*ConfigMock) PurposeFirewall ¶ added in v0.5.0
func (mock *ConfigMock) PurposeFirewall() string
PurposeFirewall calls PurposeFirewallFunc.
func (*ConfigMock) PurposeFirewallCalls ¶ added in v0.5.0
func (mock *ConfigMock) PurposeFirewallCalls() []struct { }
PurposeFirewallCalls gets all the calls that were made to PurposeFirewall. Check the length with:
len(mockedConfig.PurposeFirewallCalls())
func (*ConfigMock) PurposeMonitoring ¶ added in v0.5.0
func (mock *ConfigMock) PurposeMonitoring() string
PurposeMonitoring calls PurposeMonitoringFunc.
func (*ConfigMock) PurposeMonitoringCalls ¶ added in v0.5.0
func (mock *ConfigMock) PurposeMonitoringCalls() []struct { }
PurposeMonitoringCalls gets all the calls that were made to PurposeMonitoring. Check the length with:
len(mockedConfig.PurposeMonitoringCalls())
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) RequiredFirewallRules ¶ added in v0.5.0
func (mock *ConfigMock) RequiredFirewallRules() []config.EgressRule
RequiredFirewallRules calls RequiredFirewallRulesFunc.
func (*ConfigMock) RequiredFirewallRulesCalls ¶ added in v0.5.0
func (mock *ConfigMock) RequiredFirewallRulesCalls() []struct { }
RequiredFirewallRulesCalls gets all the calls that were made to RequiredFirewallRules. Check the length with:
len(mockedConfig.RequiredFirewallRulesCalls())
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())