mocks

package
v0.0.0-...-04db488 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helm

type Helm struct {
	mock.Mock
}

Helm is an autogenerated mock type for the Helm type

func (*Helm) Exec

func (_m *Helm) Exec(subCommand string) (string, error)

Exec provides a mock function with given fields: subCommand

func (*Helm) GetAvailableChartVersions

func (_m *Helm) GetAvailableChartVersions(chartName string) ([]*interfaces.HelmAvailableChartVersion, error)

GetAvailableChartVersions provides a mock function with given fields: chartName

func (*Helm) GetExecConfig

func (_m *Helm) GetExecConfig() *interfaces.HelmExecConfig

GetExecConfig provides a mock function with given fields:

func (*Helm) GetReleaseStatus

func (_m *Helm) GetReleaseStatus(chartName string, chartNamespace string) (*interfaces.HelmReleaseStatus, error)

GetReleaseStatus provides a mock function with given fields: chartName, chartNamespace

func (*Helm) Initialize

func (_m *Helm) Initialize(execConfig *interfaces.HelmExecConfig, chartsSource *interfaces.HelmChartsSource) error

Initialize provides a mock function with given fields: execConfig, chartsSource

type Kubernetes

type Kubernetes struct {
	mock.Mock
}

Kubernetes is an autogenerated mock type for the Kubernetes type

func (*Kubernetes) EnsureNamespace

func (_m *Kubernetes) EnsureNamespace(name string) error

EnsureNamespace provides a mock function with given fields: name

func (*Kubernetes) FindConfigMap

func (_m *Kubernetes) FindConfigMap(name string, namespace string, withKey string, withValue string) (*v1.ConfigMap, error)

FindConfigMap provides a mock function with given fields: name, namespace, withKey, withValue

func (*Kubernetes) GetSecretKeyValue

func (_m *Kubernetes) GetSecretKeyValue(secretName string, namespace string, dataKey string) (string, error)

GetSecretKeyValue provides a mock function with given fields: secretName, namespace, dataKey

func (*Kubernetes) Initialize

func (_m *Kubernetes) Initialize(kubeconfigPath string, kubeContext string) error

Initialize provides a mock function with given fields: kubeconfigPath, kubeContext

func (*Kubernetes) InitializeLogConfigMap

func (_m *Kubernetes) InitializeLogConfigMap(name string, namespace string, data map[string]string) (*v1.ConfigMap, error)

InitializeLogConfigMap provides a mock function with given fields: name, namespace, data

func (*Kubernetes) InitializeShipConfigMap

func (_m *Kubernetes) InitializeShipConfigMap(name string, namespace string, data map[string]string) (*v1.ConfigMap, error)

InitializeShipConfigMap provides a mock function with given fields: name, namespace, data

func (*Kubernetes) IsRetryError

func (_m *Kubernetes) IsRetryError(err error) bool

IsRetryError provides a mock function with given fields: err

func (*Kubernetes) PatchConfigMap

func (_m *Kubernetes) PatchConfigMap(name string, namespace string, data map[string]string) (*v1.ConfigMap, error)

PatchConfigMap provides a mock function with given fields: name, namespace, data

type Manifest

type Manifest struct {
	mock.Mock
}

Manifest is an autogenerated mock type for the Manifest type

func (*Manifest) Create

func (_m *Manifest) Create(initializeCharts []string) (string, error)

Create provides a mock function with given fields: initializeCharts

func (*Manifest) GetName

func (_m *Manifest) GetName() string

GetName provides a mock function with given fields:

func (*Manifest) Load

func (_m *Manifest) Load(manifestContent string) error

Load provides a mock function with given fields: manifestContent

func (*Manifest) Release

func (_m *Manifest) Release(kubernetes interfaces.Kubernetes, helm interfaces.Helm) []*interfaces.ManifestReleaseError

Release provides a mock function with given fields: kubernetes, helm

func (*Manifest) SetLogger

func (_m *Manifest) SetLogger(log *logger.Logger)

SetLogger provides a mock function with given fields: log

func (*Manifest) SetTempDirectory

func (_m *Manifest) SetTempDirectory(tempDirectory string)

SetTempDirectory provides a mock function with given fields: tempDirectory

Jump to

Keyboard shortcuts

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