Documentation
¶
Index ¶
- type Applier
- type CommandExecutor
- type DeleteManager
- type DependencyValidator
- type DoguRegistrator
- type DoguRegistry
- type DoguSecretsHandler
- type EventRecorder
- func (_m *EventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, ...)
- func (_m *EventRecorder) Event(object runtime.Object, eventtype string, reason string, message string)
- func (_m *EventRecorder) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, ...)
- type ExecPodFactory
- type FileExtractor
- type HttpClient
- type Image
- func (_m *Image) ConfigFile() (*v1.ConfigFile, error)
- func (_m *Image) ConfigName() (v1.Hash, error)
- func (_m *Image) Digest() (v1.Hash, error)
- func (_m *Image) LayerByDiffID(_a0 v1.Hash) (v1.Layer, error)
- func (_m *Image) LayerByDigest(_a0 v1.Hash) (v1.Layer, error)
- func (_m *Image) Layers() ([]v1.Layer, error)
- func (_m *Image) Manifest() (*v1.Manifest, error)
- func (_m *Image) MediaType() (types.MediaType, error)
- func (_m *Image) RawConfigFile() ([]byte, error)
- func (_m *Image) RawManifest() ([]byte, error)
- func (_m *Image) Size() (int64, error)
- type ImageRegistry
- type InstallManager
- type LocalDoguFetcher
- type Manager
- type PremisesChecker
- type ResourceDoguFetcher
- type ResourceUpserter
- type ServiceAccountCreator
- type ServiceAccountRemover
- type SupportManager
- type UpgradeExecutor
- type UpgradeManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applier ¶ added in v0.9.0
Applier is an autogenerated mock type for the Applier type
func (*Applier) ApplyWithOwner ¶ added in v0.9.0
func (_m *Applier) ApplyWithOwner(doc apply.YamlDocument, namespace string, resource v1.Object) error
ApplyWithOwner provides a mock function with given fields: doc, namespace, resource
type CommandExecutor ¶ added in v0.14.0
CommandExecutor is an autogenerated mock type for the CommandExecutor type
func NewCommandExecutor ¶ added in v0.14.0
func NewCommandExecutor(t mockConstructorTestingTNewCommandExecutor) *CommandExecutor
NewCommandExecutor creates a new instance of CommandExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CommandExecutor) ExecCommandForDogu ¶ added in v0.14.0
func (_m *CommandExecutor) ExecCommandForDogu(ctx context.Context, resource *v1.Dogu, command *exec.ShellCommand, expectedStatus exec.PodStatus) (*bytes.Buffer, error)
ExecCommandForDogu provides a mock function with given fields: ctx, resource, command, expectedStatus
func (*CommandExecutor) ExecCommandForPod ¶ added in v0.14.0
func (_m *CommandExecutor) ExecCommandForPod(ctx context.Context, pod *corev1.Pod, command *exec.ShellCommand, expectedStatus exec.PodStatus) (*bytes.Buffer, error)
ExecCommandForPod provides a mock function with given fields: ctx, pod, command, expectedStatus
type DeleteManager ¶ added in v0.9.0
DeleteManager is an autogenerated mock type for the DeleteManager type
func NewDeleteManager ¶ added in v0.12.0
func NewDeleteManager(t newDeleteManagerT) *DeleteManager
NewDeleteManager creates a new instance of DeleteManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DependencyValidator ¶ added in v0.3.0
DependencyValidator is an autogenerated mock type for the DependencyValidator type
func (*DependencyValidator) ValidateDependencies ¶ added in v0.3.0
ValidateDependencies provides a mock function with given fields: dogu
type DoguRegistrator ¶
DoguRegistrator is an autogenerated mock type for the DoguRegistrator type
func (*DoguRegistrator) RegisterDoguVersion ¶ added in v0.12.0
func (_m *DoguRegistrator) RegisterDoguVersion(dogu *core.Dogu) error
RegisterDoguVersion provides a mock function with given fields: ctx, doguResource, dogu
func (*DoguRegistrator) RegisterNewDogu ¶ added in v0.12.0
func (_m *DoguRegistrator) RegisterNewDogu(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu) error
RegisterDogu provides a mock function with given fields: ctx, doguResource, dogu
func (*DoguRegistrator) UnregisterDogu ¶ added in v0.2.0
func (_m *DoguRegistrator) UnregisterDogu(dogu string) error
UnRegisterDogu provides a mock function with given fields: dogu
type DoguRegistry ¶
DoguRegistry is an autogenerated mock type for the DoguRegistry type
type DoguSecretsHandler ¶ added in v0.5.0
DoguSecretsHandler is an autogenerated mock type for the DoguSecretsHandler type
func (*DoguSecretsHandler) WriteDoguSecretsToRegistry ¶ added in v0.5.0
func (_m *DoguSecretsHandler) WriteDoguSecretsToRegistry(ctx context.Context, doguResource *v1.Dogu) error
WriteDoguSecretsToRegistry provides a mock function with given fields: ctx, doguResource
type EventRecorder ¶ added in v0.12.0
EventRecorder is an autogenerated mock type for the EventRecorder type
func NewEventRecorder ¶ added in v0.12.0
func NewEventRecorder(t mockConstructorTestingTNewEventRecorder) *EventRecorder
NewEventRecorder creates a new instance of EventRecorder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventRecorder) AnnotatedEventf ¶ added in v0.12.0
func (_m *EventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})
AnnotatedEventf provides a mock function with given fields: object, annotations, eventtype, reason, messageFmt, args
type ExecPodFactory ¶ added in v0.14.0
ExecPodFactory is an autogenerated mock type for the ExecPodFactory type
func NewExecPodFactory ¶ added in v0.14.0
func NewExecPodFactory(t mockConstructorTestingTNewExecPodFactory) *ExecPodFactory
NewExecPodFactory creates a new instance of ExecPodFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecPodFactory) NewExecPod ¶ added in v0.14.0
func (_m *ExecPodFactory) NewExecPod(execPodFactoryMode exec.PodVolumeMode, doguResource *v1.Dogu, dogu *core.Dogu) (exec.ExecPod, error)
NewExecPod provides a mock function with given fields: execPodFactoryMode, doguResource, dogu
type FileExtractor ¶ added in v0.9.0
FileExtractor is an autogenerated mock type for the FileExtractor type
func NewFileExtractor ¶ added in v0.14.0
func NewFileExtractor(t mockConstructorTestingTNewFileExtractor) *FileExtractor
NewFileExtractor creates a new instance of FileExtractor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileExtractor) ExtractK8sResourcesFromContainer ¶ added in v0.9.0
func (_m *FileExtractor) ExtractK8sResourcesFromContainer(ctx context.Context, k8sExecPod exec.ExecPod) (map[string]string, error)
ExtractK8sResourcesFromContainer provides a mock function with given fields: ctx, k8sExecPod
type HttpClient ¶
HttpClient is an autogenerated mock type for the HttpClient type
type Image ¶ added in v0.7.0
Image is an autogenerated mock type for the Image type
func (*Image) ConfigFile ¶ added in v0.7.0
func (_m *Image) ConfigFile() (*v1.ConfigFile, error)
ConfigFile provides a mock function with given fields:
func (*Image) ConfigName ¶ added in v0.7.0
ConfigName provides a mock function with given fields:
func (*Image) LayerByDiffID ¶ added in v0.7.0
LayerByDiffID provides a mock function with given fields: _a0
func (*Image) LayerByDigest ¶ added in v0.7.0
LayerByDigest provides a mock function with given fields: _a0
func (*Image) RawConfigFile ¶ added in v0.7.0
RawConfigFile provides a mock function with given fields:
func (*Image) RawManifest ¶ added in v0.7.0
RawManifest provides a mock function with given fields:
type ImageRegistry ¶
ImageRegistry is an autogenerated mock type for the ImageRegistry type
func (*ImageRegistry) PullImageConfig ¶
func (_m *ImageRegistry) PullImageConfig(ctx context.Context, image string) (*v1.ConfigFile, error)
PullImageConfig provides a mock function with given fields: ctx, image
type InstallManager ¶ added in v0.9.0
InstallManager is an autogenerated mock type for the InstallManager type
func NewInstallManager ¶ added in v0.12.0
func NewInstallManager(t newInstallManagerT) *InstallManager
NewInstallManager creates a new instance of InstallManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type LocalDoguFetcher ¶ added in v0.12.0
LocalDoguFetcher is an autogenerated mock type for the LocalDoguFetcher type
func NewLocalDoguFetcher ¶ added in v0.12.0
func NewLocalDoguFetcher(t mockConstructorTestingTnewLocalDoguFetcher) *LocalDoguFetcher
NewLocalDoguFetcher creates a new instance of LocalDoguFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LocalDoguFetcher) FetchInstalled ¶ added in v0.12.0
func (_m *LocalDoguFetcher) FetchInstalled(doguName string) (*core.Dogu, error)
FetchInstalled provides a mock function with given fields: doguName
type Manager ¶
Manager is an autogenerated mock type for the Manager type
type PremisesChecker ¶ added in v0.12.0
PremisesChecker is an autogenerated mock type for the PremisesChecker type
func NewPremisesChecker ¶ added in v0.12.0
func NewPremisesChecker(t mockConstructorTestingTnewPremisesChecker) *PremisesChecker
NewPremisesChecker creates a new instance of PremisesChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ResourceDoguFetcher ¶ added in v0.12.0
ResourceDoguFetcher is an autogenerated mock type for the ResourceDoguFetcher type
func NewResourceDoguFetcher ¶ added in v0.12.0
func NewResourceDoguFetcher(t mockConstructorTestingTnewResourceDoguFetcher) *ResourceDoguFetcher
NewResourceDoguFetcher creates a new instance of ResourceDoguFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResourceDoguFetcher) FetchWithResource ¶ added in v0.12.0
func (_m *ResourceDoguFetcher) FetchWithResource(ctx context.Context, doguResource *v1.Dogu) (*core.Dogu, *v1.DevelopmentDoguMap, error)
FetchWithResource provides a mock function with given fields: ctx, doguResource
type ResourceUpserter ¶ added in v0.12.0
ResourceUpserter is an autogenerated mock type for the resourceUpserter type
func (*ResourceUpserter) ApplyDoguResource ¶ added in v0.12.0
func (_m *ResourceUpserter) ApplyDoguResource(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu, image *pkgv1.ConfigFile, customDeployment *appsv1.Deployment) error
ApplyDoguResource provides a mock function with given fields: ctx, doguResource, dogu, image, customDeployment
type ServiceAccountCreator ¶ added in v0.3.0
ServiceAccountCreator is an autogenerated mock type for the ServiceAccountCreator type
func NewServiceAccountCreator ¶ added in v0.14.0
func NewServiceAccountCreator(t mockConstructorTestingTNewServiceAccountCreator) *ServiceAccountCreator
NewServiceAccountCreator creates a new instance of ServiceAccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ServiceAccountRemover ¶ added in v0.6.0
ServiceAccountRemover is an autogenerated mock type for the ServiceAccountRemover type
func NewServiceAccountRemover ¶ added in v0.14.0
func NewServiceAccountRemover(t mockConstructorTestingTNewServiceAccountRemover) *ServiceAccountRemover
NewServiceAccountRemover creates a new instance of ServiceAccountRemover. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SupportManager ¶ added in v0.13.0
SupportManager is an autogenerated mock type for the SupportManager type
func (*SupportManager) HandleSupportMode ¶ added in v0.13.0
func (_m *SupportManager) HandleSupportMode(ctx context.Context, doguResource *v1.Dogu) (bool, error)
HandleSupportMode provides a mock function with given fields: ctx, doguResource
type UpgradeExecutor ¶ added in v0.12.0
UpgradeExecutor is an autogenerated mock type for the UpgradeExecutor type
func NewUpgradeExecutor ¶ added in v0.12.0
func NewUpgradeExecutor(t mockConstructorTestingTnewUpgradeExecutor) *UpgradeExecutor
NewUpgradeExecutor creates a new instance of UpgradeExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type UpgradeManager ¶ added in v0.12.0
UpgradeManager is an autogenerated mock type for the UpgradeManager type
func NewUpgradeManager ¶ added in v0.12.0
func NewUpgradeManager(t mockConstructorTestingTnewUpgradeManager) *UpgradeManager
NewUpgradeManager creates a new instance of UpgradeManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
Source Files
¶
- Applier.go
- CommandExecutor.go
- DeleteManager.go
- DependencyValidator.go
- DoguRegistrator.go
- DoguRegistry.go
- DoguSecretsHandler.go
- EventRecorder.go
- ExecPodFactory.go
- FileExtractor.go
- HttpClient.go
- Image.go
- ImageRegistry.go
- InstallManager.go
- LocalDoguFetcher.go
- Manager.go
- PremisesChecker.go
- ResourceDoguFetcher.go
- ResourceUpserter.go
- ServiceAccountCreator.go
- ServiceAccountRemover.go
- SupportManager.go
- UpgradeExecutor.go
- UpgradeManager.go