Documentation ¶
Overview ¶
Package kubernetes provides the xk6 Modules implementation for working with Kubernetes resources using Javascript
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeConfig ¶
type KubeConfig struct {
ConfigPath string
}
KubeConfig represents the initialization settings for the kubernetes api client.
type Kubernetes ¶
type Kubernetes struct { api.Kubernetes ConfigMaps *configmaps.ConfigMaps Ingresses *ingresses.Ingresses Deployments *deployments.Deployments Pods *pods.Pods Namespaces *namespaces.Namespaces Nodes *nodes.Nodes Jobs *jobs.Jobs Services *services.Services Secrets *secrets.Secrets PersistentVolumes *persistentvolumes.PersistentVolumes PersistentVolumeClaims *persistentvolumeclaims.PersistentVolumeClaims // contains filtered or unexported fields }
Kubernetes is the exported object used within JavaScript.
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the JS module.
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() modules.Exports
Exports implements the modules.Instance interface and returns the exports of the JS module.
type RootModule ¶
type RootModule struct{}
RootModule is the global module object type. It is instantiated once per test run and will be used to create `k6/x/kubernetes` module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance
NewModuleInstance implements the modules.Module interface to return a new instance for each VU.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
testutils
Package testutils contains shared functionality for unit tests which are not included in build artifacts
|
Package testutils contains shared functionality for unit tests which are not included in build artifacts |
pkg
|
|
api
Package api implements helper functions for manipulating resources in a Kubernetes cluster.
|
Package api implements helper functions for manipulating resources in a Kubernetes cluster. |
configmaps
Package configmaps provides implementation of ConfigMap resources for Kubernetes
|
Package configmaps provides implementation of ConfigMap resources for Kubernetes |
deployments
Package deployments provides implementation of Deployment resources for Kubernetes
|
Package deployments provides implementation of Deployment resources for Kubernetes |
helpers
Package helpers offers functions to simplify dealing with kubernetes resources.
|
Package helpers offers functions to simplify dealing with kubernetes resources. |
ingresses
Package ingresses provides implementation of Ingress resources for Kubernetes
|
Package ingresses provides implementation of Ingress resources for Kubernetes |
jobs
Package jobs provides implementation of Job resources for Kubernetes
|
Package jobs provides implementation of Job resources for Kubernetes |
namespaces
Package namespaces provides implementation of Namespace resources for Kubernetes
|
Package namespaces provides implementation of Namespace resources for Kubernetes |
nodes
Package nodes provides implementation of Node resources for Kubernetes
|
Package nodes provides implementation of Node resources for Kubernetes |
persistentvolumeclaims
Package persistentvolumeclaims provides implementation of PersistentVolumeClaim resources for Kubernetes
|
Package persistentvolumeclaims provides implementation of PersistentVolumeClaim resources for Kubernetes |
persistentvolumes
Package persistentvolumes provides implementation of PersistentVolume resources for Kubernetes
|
Package persistentvolumes provides implementation of PersistentVolume resources for Kubernetes |
pods
Package pods provides implementation of Pod resources for Kubernetes
|
Package pods provides implementation of Pod resources for Kubernetes |
resources
Package resources implement the interface for accessing kubernetes resources
|
Package resources implement the interface for accessing kubernetes resources |
secrets
Package secrets provides implementation of Secret resources for Kubernetes
|
Package secrets provides implementation of Secret resources for Kubernetes |
services
Package services provides implementation of Service resources for Kubernetes
|
Package services provides implementation of Service resources for Kubernetes |
utils
Package utils offers functions of general utility in other parts of the system
|
Package utils offers functions of general utility in other parts of the system |