hades_core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestHadesBaseTestSuite

func TestHadesBaseTestSuite(t *testing.T)

Types

type FilterOpts

type FilterOpts struct {
	DoesNotInclude []string
}

type Hades

type Hades struct {
	CfgPath string
	// contains filtered or unexported fields
}

func (*Hades) ConnectToK8s

func (h *Hades) ConnectToK8s()

func (*Hades) ConnectToK8sFromConfig

func (h *Hades) ConnectToK8sFromConfig(dir string)

func (*Hades) ConnectToK8sFromInMemFsCfgPath added in v0.3.0

func (h *Hades) ConnectToK8sFromInMemFsCfgPath(fs memfs.MemFS)

func (*Hades) CreateConfigMapWithKns

func (h *Hades) CreateConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, cm *v1.ConfigMap, filter *strings_filter.FilterOpts) (*v1.ConfigMap, error)

func (*Hades) CreateDeployment

func (h *Hades) CreateDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, d *v1.Deployment, filter *strings_filter.FilterOpts) (*v1.Deployment, error)

func (*Hades) CreateIngressWithKns

func (h *Hades) CreateIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, ing *v1.Ingress, filter *strings_filter.FilterOpts) (*v1.Ingress, error)

func (*Hades) CreateNamespace added in v0.3.0

func (h *Hades) CreateNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs, namespace *v1.Namespace) (*v1.Namespace, error)

func (*Hades) CreateNamespaceIfDoesNotExist added in v0.3.0

func (h *Hades) CreateNamespaceIfDoesNotExist(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.Namespace, error)

func (*Hades) CreateServiceMonitor added in v0.3.0

func (h *Hades) CreateServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, sm *v1.ServiceMonitor, filter *strings_filter.FilterOpts) (*v1.ServiceMonitor, error)

func (*Hades) CreateServiceWithKns

func (h *Hades) CreateServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, s *v1.Service, filter *strings_filter.FilterOpts) (*v1.Service, error)

func (*Hades) CreateStatefulSet

func (h *Hades) CreateStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, ss *v1.StatefulSet, filter *strings_filter.FilterOpts) (*v1.StatefulSet, error)

func (*Hades) DefaultK8sCfgPath

func (h *Hades) DefaultK8sCfgPath() string

func (*Hades) DeleteConfigMapWithKns

func (h *Hades) DeleteConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) DeleteDeployment

func (h *Hades) DeleteDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) DeleteIngressWithKns

func (h *Hades) DeleteIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) DeleteNamespace added in v0.3.0

func (h *Hades) DeleteNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs) error

func (*Hades) DeleteServiceMonitor added in v0.3.0

func (h *Hades) DeleteServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) DeleteServiceWithKns

func (h *Hades) DeleteServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) DeleteStatefulSet

func (h *Hades) DeleteStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) error

func (*Hades) GetConfigMapListWithKns

func (h *Hades) GetConfigMapListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, filter *strings_filter.FilterOpts) (*v1.ConfigMapList, error)

func (*Hades) GetConfigMapWithKns

func (h *Hades) GetConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.ConfigMap, error)

func (*Hades) GetContexts

func (h *Hades) GetContexts() (map[string]*clientcmdapi.Context, error)

func (*Hades) GetDeployment

func (h *Hades) GetDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.Deployment, error)

func (*Hades) GetDeploymentList

func (h *Hades) GetDeploymentList(ctx context.Context, kns zeus_common_types.CloudCtxNs, filter *strings_filter.FilterOpts) (*v1.DeploymentList, error)

func (*Hades) GetIngressListWithKns

func (h *Hades) GetIngressListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, filter *strings_filter.FilterOpts) (*v1.IngressList, error)

func (*Hades) GetIngressWithKns

func (h *Hades) GetIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.Ingress, error)

func (*Hades) GetNamespace added in v0.3.0

func (h *Hades) GetNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.Namespace, error)

func (*Hades) GetNamespaces added in v0.3.0

func (h *Hades) GetNamespaces(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.NamespaceList, error)

func (*Hades) GetPod added in v0.3.0

func (h *Hades) GetPod(ctx context.Context, name string, kns zeus_common_types.CloudCtxNs) (*v1.Pod, error)

func (*Hades) GetPods

func (*Hades) GetPodsUsingCtxNs

func (h *Hades) GetPodsUsingCtxNs(ctx context.Context, kubeCtxNs zeus_common_types.CloudCtxNs, logOpts *v1.PodLogOptions, filter *strings_filter.FilterOpts) (*v1.PodList, error)

func (*Hades) GetServiceListWithKns

func (h *Hades) GetServiceListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, filter *strings_filter.FilterOpts) (*v1.ServiceList, error)

func (*Hades) GetServiceMonitor added in v0.3.0

func (h *Hades) GetServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.ServiceMonitor, error)

func (*Hades) GetServiceWithKns

func (h *Hades) GetServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.Service, error)

func (*Hades) GetStatefulSet

func (h *Hades) GetStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, filter *strings_filter.FilterOpts) (*v1.StatefulSet, error)

func (*Hades) GetStatefulSetList

func (h *Hades) GetStatefulSetList(ctx context.Context, kns zeus_common_types.CloudCtxNs, filter *strings_filter.FilterOpts) (*v1.StatefulSetList, error)

func (*Hades) SetClient

func (h *Hades) SetClient(config *rest.Config)

func (*Hades) SetContext

func (h *Hades) SetContext(context string)

type HadesBaseTestSuite

type HadesBaseTestSuite struct {
	suite.Suite
	H Hades
}

func (*HadesBaseTestSuite) SetupTest

func (h *HadesBaseTestSuite) SetupTest()

Jump to

Keyboard shortcuts

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