teststep

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(log *logrus.Entry, cm *configmap.ConfigMap, stepName string, data map[string]string) step.Step

func CreateEmptyFunction

func CreateEmptyFunction(fn *function.Function) step.Step

func CreateFunction

func CreateFunction(log *logrus.Entry, fn *function.Function, name string, data *function.FunctionData) step.Step

func CreateSecret

func CreateSecret(log *logrus.Entry, sec *secret.Secret, stepName string, data map[string]string) step.Step

func NewAddonConfiguration

func NewAddonConfiguration(name string, addonConfig *addons.AddonConfiguration, url *url.URL, container shared.Container) step.Step

func NewCommitChanges

func NewCommitChanges(log *logrus.Entry, stepName, repoURL string) step.Step

func NewConfigureFunction

func NewConfigureFunction(log *logrus.Entry, name string, fnName string, apiRule *apirule.APIRule, apiruleURL *url.URL, sinkURL *url.URL, subscription *subscription.Subscription,
	serviceInstance *serviceinstance.ServiceInstance, binding *servicebinding.ServiceBinding, usage *servicebindingusage.ServiceBindingUsage,
	domainPort uint32) step.Step

func NewCreateGitRepository

func NewCreateGitRepository(log *logrus.Entry, repo *gitrepository.GitRepository, stepName string, spec serverlessv1alhpa1.GitRepositorySpec) step.Step

func NewDefaultedFunctionCheck

func NewDefaultedFunctionCheck(name string, fn *function.Function) step.Step

func NewGitServer

func NewGitServer(cfg gitops.GitopsConfig, stepName string, deployments appsCli.DeploymentInterface, services coreclient.ServiceInterface, istioEnabled bool) step.Step

func UpdateFunction

func UpdateFunction(log *logrus.Entry, fn *function.Function, name string, data *function.FunctionData) step.Step

Types

type Addons

type Addons struct {
	// contains filtered or unexported fields
}

func (Addons) Cleanup

func (a Addons) Cleanup() error

func (Addons) Name

func (a Addons) Name() string

func (Addons) OnError

func (a Addons) OnError() error

func (Addons) Run

func (a Addons) Run() error

type ConfigMaps

type ConfigMaps struct {
	// contains filtered or unexported fields
}

func (ConfigMaps) Cleanup

func (c ConfigMaps) Cleanup() error

func (ConfigMaps) Name

func (c ConfigMaps) Name() string

func (ConfigMaps) OnError

func (c ConfigMaps) OnError() error

func (ConfigMaps) Run

func (c ConfigMaps) Run() error

type ConfigureFunction

type ConfigureFunction struct {
	// contains filtered or unexported fields
}

func (ConfigureFunction) Cleanup

func (f ConfigureFunction) Cleanup() error

func (ConfigureFunction) Name

func (f ConfigureFunction) Name() string

func (ConfigureFunction) OnError

func (f ConfigureFunction) OnError() error

func (ConfigureFunction) Run

func (f ConfigureFunction) Run() error

type DefaultedFunctionCheck

type DefaultedFunctionCheck struct {
	// contains filtered or unexported fields
}

func (DefaultedFunctionCheck) Cleanup

func (d DefaultedFunctionCheck) Cleanup() error

func (DefaultedFunctionCheck) Name

func (d DefaultedFunctionCheck) Name() string

func (DefaultedFunctionCheck) OnError

func (d DefaultedFunctionCheck) OnError() error

func (DefaultedFunctionCheck) Run

func (d DefaultedFunctionCheck) Run() error

type E2EFunctionCheck

type E2EFunctionCheck struct {
	// contains filtered or unexported fields
}

func NewE2EFunctionCheck

func NewE2EFunctionCheck(log *logrus.Entry, name, publishURL string, inClusterURL, fnGatewayURL *url.URL, poller poller.Poller) E2EFunctionCheck

func (E2EFunctionCheck) Cleanup

func (c E2EFunctionCheck) Cleanup() error

func (E2EFunctionCheck) Name

func (c E2EFunctionCheck) Name() string

func (E2EFunctionCheck) OnError

func (e E2EFunctionCheck) OnError() error

func (E2EFunctionCheck) Run

func (c E2EFunctionCheck) Run() error

type HTTPCheck

type HTTPCheck struct {
	// contains filtered or unexported fields
}

func NewHTTPCheck

func NewHTTPCheck(log *logrus.Entry, name string, url *url.URL, poller poller.Poller, expectedMsg string) *HTTPCheck

func (HTTPCheck) Cleanup

func (h HTTPCheck) Cleanup() error

func (HTTPCheck) Name

func (h HTTPCheck) Name() string

func (HTTPCheck) OnError

func (h HTTPCheck) OnError() error

func (HTTPCheck) Run

func (h HTTPCheck) Run() error

type NamespaceStep

type NamespaceStep struct {
	// contains filtered or unexported fields
}

func NewNamespaceStep

func NewNamespaceStep(stepName string, coreCli typedcorev1.CoreV1Interface, container shared.Container) NamespaceStep

func (NamespaceStep) Cleanup

func (n NamespaceStep) Cleanup() error

func (NamespaceStep) Name

func (n NamespaceStep) Name() string

func (NamespaceStep) OnError

func (n NamespaceStep) OnError() error

func (NamespaceStep) Run

func (n NamespaceStep) Run() error

type Object

type Object interface {
	Delete() error
	GetName() string
	LogResource() error
}

type Secrets

type Secrets struct {
	// contains filtered or unexported fields
}

func (Secrets) Cleanup

func (s Secrets) Cleanup() error

func (Secrets) Name

func (s Secrets) Name() string

func (Secrets) OnError

func (s Secrets) OnError() error

func (Secrets) Run

func (s Secrets) Run() error

Jump to

Keyboard shortcuts

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