K3sServiceEndpointResource
Handle
Represents a Kubernetes Service exposed from a k3s cluster as an Aspire endpoint resource.
type K3sServiceEndpointResource interface { ExpressionValue Resource ResourceWithConnectionString ResourceWithParent ResourceWithWaitSupport}7 members
Properties
property
ConnectionStringEnvironmentVariable *stringgetThe environment variable name used to inject the service URL into dependents (
services__{name}__url ), following the Aspire service-discovery convention.ConnectionStringEnvironmentVariable() (*string, error)property
ConnectionStringExpression *ReferenceExpression getGets the manifest expression for the service URL. Resolves to
http(s)://localhost:{hostPort} when the endpoint is ready.ConnectionStringExpression() *ReferenceExpressionproperty
HostPort float64get · setGets the host port bound by the port-forward listener.
HostPort() (float64, error)SetHostPort(value float64) K3sServiceEndpointResourceproperty
NamespacestringgetGets the Kubernetes namespace that contains the Service.
Namespace() (string, error)property
ParentK3sClusterResource getGets the Parent property
Parent() K3sClusterResourceproperty
ServiceName stringgetGets the name of the Kubernetes Service being forwarded.
ServiceName() (string, error)property
ServicePort float64getGets the port number declared on the Kubernetes Service.
ServicePort() (float64, error)