ResourceWithArgs
Represents a resource that is associated with commandline arguments.
type ResourceWithArgs interface{}Methods
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
WithArgs(args []string) ResourceWithArgsParameters
args[]string The arguments to be passed to the resource when it is started.Returns
ResourceWithArgs The resource builder.
Returns a handle; failures surface later via Err().
WithArgsCallback(callback func(obj CommandLineArgsCallbackContext)) ResourceWithArgsParameters
callbackfunc(obj CommandLineArgsCallbackContext) callbackA callback that allows for deferred execution for computing arguments. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.Returns
ResourceWithArgs The resource builder.
Returns a handle; failures surface later via Err().
WithArgsReplace(args []string) ResourceWithArgsParameters
args[]string The arguments to be passed to the resource when it is started.Returns
ResourceWithArgs The resource builder.
Returns a handle; failures surface later via Err().
WithCertificateTrustEnvironment( certificateBundleEnvironmentVariable string, options ...*WithCertificateTrustEnvironmentOptions,) ResourceWithArgsParameters
certificateBundleEnvironmentVariable stringThe environment variable that receives the certificate bundle path.options...*WithCertificateTrustEnvironmentOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithCertificateTrustEnvironmentOptions argument.
CertificateDirectoriesEnvironmentVariable *stringThe optional environment variable that receives the certificate directories path.Returns
ResourceWithArgs The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This interface applies to the following types: