WithHttpEndpoint
Method
func (ResourceWithEndpoints) WithHttpEndpoint(options ...*WithHttpEndpointOptions) ResourceWithEndpointsSignature
method
WithHttpEndpoint builderAdds an HTTP endpoint
WithHttpEndpoint(options ...*WithHttpEndpointOptions) ResourceWithEndpointsParameters
options...*WithHttpEndpointOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithHttpEndpointOptions argument.
Port*float64An optional port. This is the port that will be given to other resource to communicate with this resource.TargetPort *float64This is the port the resource is listening on. If the endpoint is used for the container, it is the container port.Name*stringAn optional name of the endpoint. Defaults to "http" if not specified.Env*stringAn optional name of the environment variable to inject.IsProxied *boolSpecifies if the endpoint will be proxied by DCP. Defaults to null.Returns
ResourceWithEndpoints The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: