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 ¶
KubeConfig represents the initialization settings for the kubernetes api client.
type Kubernetes ¶
type Kubernetes struct { api.Kubernetes // 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 provides specialized resources for use with unit testing
|
Package testutils provides specialized resources for use with unit testing |
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. |
helpers
Package helpers offers functions to simplify dealing with kubernetes resources.
|
Package helpers offers functions to simplify dealing with kubernetes resources. |
resources
Package resources implement the interface for accessing kubernetes resources
|
Package resources implement the interface for accessing kubernetes resources |
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 |