AddK6
Method
func (DistributedApplicationBuilder) AddK6( name string, options ...*AddK6Options,) K6ResourceSignature
method
AddK6 builderAdds a Grafana k6 container resource to the application model. The default image is and the tag is .
AddK6( name string, options ...*AddK6Options,) K6ResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.options...*AddK6Options Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddK6Options argument.
EnableBrowserExtensions *boolEnables browser automation and end-to-end web testing to k6.Port*float64The host port to bind the underlying container to.Returns
K6Resource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder