Documentation
¶
Index ¶
- Constants
- type ArgoCDResources
- type Installer
- type InstallerConfig
- type MockArgoCDResources
- type MockArgoCDResources_ApplyAll_Call
- func (_c *MockArgoCDResources_ApplyAll_Call) Return(err error) *MockArgoCDResources_ApplyAll_Call
- func (_c *MockArgoCDResources_ApplyAll_Call) Run(run func(ctx context.Context)) *MockArgoCDResources_ApplyAll_Call
- func (_c *MockArgoCDResources_ApplyAll_Call) RunAndReturn(run func(ctx context.Context) error) *MockArgoCDResources_ApplyAll_Call
- type MockArgoCDResources_Expecter
Constants ¶
const ( DefaultRepoURL = "https://argoproj.github.io/argo-helm" DefaultNamespace = "argocd" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCDResources ¶
func NewArgoCDResourcesWithRESTConfig ¶ added in v1.204.0
type Installer ¶
type Installer struct {
InstallerConfig
Helm installer.HelmClient
Resources ArgoCDResources
}
Installer holds the resolved configuration and initialized clients.
func NewInstaller ¶
func NewInstaller(cfg InstallerConfig) (*Installer, error)
type InstallerConfig ¶
type InstallerConfig struct {
Version string
DatacenterId string
OciPassword string
OciRegistryURL string
GitPassword string
FullInstall bool
ForceConflicts bool
RepoURL string
ValueFiles []string
RESTConfig *rest.Config
}
InstallerConfig holds all user-facing parameters for an ArgoCD install/upgrade.
type MockArgoCDResources ¶
MockArgoCDResources is an autogenerated mock type for the ArgoCDResources type
func NewMockArgoCDResources ¶
func NewMockArgoCDResources(t interface {
mock.TestingT
Cleanup(func())
}) *MockArgoCDResources
NewMockArgoCDResources creates a new instance of MockArgoCDResources. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockArgoCDResources) ApplyAll ¶
func (_mock *MockArgoCDResources) ApplyAll(ctx context.Context) error
ApplyAll provides a mock function for the type MockArgoCDResources
func (*MockArgoCDResources) EXPECT ¶
func (_m *MockArgoCDResources) EXPECT() *MockArgoCDResources_Expecter
type MockArgoCDResources_ApplyAll_Call ¶
MockArgoCDResources_ApplyAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAll'
func (*MockArgoCDResources_ApplyAll_Call) Return ¶
func (_c *MockArgoCDResources_ApplyAll_Call) Return(err error) *MockArgoCDResources_ApplyAll_Call
func (*MockArgoCDResources_ApplyAll_Call) Run ¶
func (_c *MockArgoCDResources_ApplyAll_Call) Run(run func(ctx context.Context)) *MockArgoCDResources_ApplyAll_Call
func (*MockArgoCDResources_ApplyAll_Call) RunAndReturn ¶
func (_c *MockArgoCDResources_ApplyAll_Call) RunAndReturn(run func(ctx context.Context) error) *MockArgoCDResources_ApplyAll_Call
type MockArgoCDResources_Expecter ¶
type MockArgoCDResources_Expecter struct {
// contains filtered or unexported fields
}
func (*MockArgoCDResources_Expecter) ApplyAll ¶
func (_e *MockArgoCDResources_Expecter) ApplyAll(ctx any) *MockArgoCDResources_ApplyAll_Call
ApplyAll is a helper method to define mock.On call
- ctx context.Context