Documentation ¶
Index ¶
- func TestHadesBaseTestSuite(t *testing.T)
- type FilterOpts
- type Hades
- func (h *Hades) ConnectToK8s()
- func (h *Hades) ConnectToK8sFromConfig(dir string)
- func (h *Hades) ConnectToK8sFromInMemFsCfgPath(fs memfs.MemFS)
- func (h *Hades) CreateConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, cm *v1.ConfigMap, ...) (*v1.ConfigMap, error)
- func (h *Hades) CreateDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, d *v1.Deployment, ...) (*v1.Deployment, error)
- func (h *Hades) CreateIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, ing *v1.Ingress, ...) (*v1.Ingress, error)
- func (h *Hades) CreateNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs, namespace *v1.Namespace) (*v1.Namespace, error)
- func (h *Hades) CreateNamespaceIfDoesNotExist(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.Namespace, error)
- func (h *Hades) CreateServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, sm *v1.ServiceMonitor, ...) (*v1.ServiceMonitor, error)
- func (h *Hades) CreateServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, s *v1.Service, ...) (*v1.Service, error)
- func (h *Hades) CreateStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, ss *v1.StatefulSet, ...) (*v1.StatefulSet, error)
- func (h *Hades) DefaultK8sCfgPath() string
- func (h *Hades) DeleteConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) DeleteDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) DeleteIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) DeleteNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs) error
- func (h *Hades) DeleteServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) DeleteServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) DeleteStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) error
- func (h *Hades) GetConfigMapListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, ...) (*v1.ConfigMapList, error)
- func (h *Hades) GetConfigMapWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.ConfigMap, error)
- func (h *Hades) GetContexts() (map[string]*clientcmdapi.Context, error)
- func (h *Hades) GetDeployment(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.Deployment, error)
- func (h *Hades) GetDeploymentList(ctx context.Context, kns zeus_common_types.CloudCtxNs, ...) (*v1.DeploymentList, error)
- func (h *Hades) GetIngressListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, ...) (*v1.IngressList, error)
- func (h *Hades) GetIngressWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.Ingress, error)
- func (h *Hades) GetNamespace(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.Namespace, error)
- func (h *Hades) GetNamespaces(ctx context.Context, kns zeus_common_types.CloudCtxNs) (*v1.NamespaceList, error)
- func (h *Hades) GetPod(ctx context.Context, name string, kns zeus_common_types.CloudCtxNs) (*v1.Pod, error)
- func (h *Hades) GetPods(ctx context.Context, kns zeus_common_types.CloudCtxNs, opts metav1.ListOptions) (*v1.PodList, error)
- func (h *Hades) GetPodsUsingCtxNs(ctx context.Context, kubeCtxNs zeus_common_types.CloudCtxNs, ...) (*v1.PodList, error)
- func (h *Hades) GetServiceListWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, ...) (*v1.ServiceList, error)
- func (h *Hades) GetServiceMonitor(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.ServiceMonitor, error)
- func (h *Hades) GetServiceWithKns(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.Service, error)
- func (h *Hades) GetStatefulSet(ctx context.Context, kns zeus_common_types.CloudCtxNs, name string, ...) (*v1.StatefulSet, error)
- func (h *Hades) GetStatefulSetList(ctx context.Context, kns zeus_common_types.CloudCtxNs, ...) (*v1.StatefulSetList, error)
- func (h *Hades) SetClient(config *rest.Config)
- func (h *Hades) SetContext(context string)
- type HadesBaseTestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestHadesBaseTestSuite ¶
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 (*Hades) ConnectToK8sFromInMemFsCfgPath ¶ added in v0.3.0
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 (*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 (h *Hades) GetPods(ctx context.Context, kns zeus_common_types.CloudCtxNs, opts metav1.ListOptions) (*v1.PodList, error)
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) SetContext ¶
type HadesBaseTestSuite ¶
func (*HadesBaseTestSuite) SetupTest ¶
func (h *HadesBaseTestSuite) SetupTest()
Click to show internal directories.
Click to hide internal directories.