tasks

package
v1.13.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCleanupCertTask

func NewCleanupCertTask(karmada *v1alpha1.Karmada) workflow.Task

NewCleanupCertTask init a task to cleanup certs

func NewCleanupKubeconfigTask

func NewCleanupKubeconfigTask() workflow.Task

NewCleanupKubeconfigTask init a task to cleanup kubeconfig

func NewRemoveComponentTask

func NewRemoveComponentTask(karmada *v1alpha1.Karmada) workflow.Task

NewRemoveComponentTask init a remove karmada components task

Types

type DeInitData

type DeInitData interface {
	GetName() string
	GetNamespace() string
	RemoteClient() clientset.Interface
}

DeInitData is interface to operate the runData of DeInitData workflow

type MyTestData added in v1.12.0

type MyTestData struct {
	Data string
}

MyTestData is a struct that implements the TestInterface.

func (*MyTestData) Get added in v1.12.0

func (m *MyTestData) Get() string

Get returns the data stored in the MyTestData struct.

type TestDeInitData added in v1.12.0

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

TestDeInitData contains the configuration and state required to deinitialize Karmada components.

func (*TestDeInitData) GetName added in v1.12.0

func (t *TestDeInitData) GetName() string

GetName returns the name of the current Karmada installation.

func (*TestDeInitData) GetNamespace added in v1.12.0

func (t *TestDeInitData) GetNamespace() string

GetNamespace returns the namespace of the current Karmada installation.

func (*TestDeInitData) RemoteClient added in v1.12.0

func (t *TestDeInitData) RemoteClient() clientset.Interface

RemoteClient returns the Kubernetes client for remote interactions.

type TestInterface added in v1.12.0

type TestInterface interface {
	// Get returns the data from the test instance.
	Get() string
}

TestInterface defines the interface for retrieving test data.

Jump to

Keyboard shortcuts

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