ExposureService
本页列出 kibotos.ctrl.v1 中 ExposureService 的方法及每个方法用到的消息与枚举,由 ctrl.proto 及其注释生成,注释保持英文。多个服务共用的消息与枚举见 kibotos.ctrl.v1 类型。
ExposureService turns one HTTP port inside a guest into a stable public hostname. The caller never names a provider, tunnel, account, or token: the deployment owns the zone and everything behind it.
CreateExposure
CreateExposure mints a random hostname under the deployment zone and binds it to one exact guest loopback port for the life of the TTL. The hostname is stable across Workspace restarts and is never derived from an identifier, port, or sequence number.
/kibotos.ctrl.v1.ExposureService/CreateExposure一元调用CreateExposureRequestCreateExposureResponseGetExposure
/kibotos.ctrl.v1.ExposureService/GetExposure一元调用GetExposureRequestGetExposureResponseListExposures
/kibotos.ctrl.v1.ExposureService/ListExposures一元调用ListExposuresRequestZero selects the server default. Values above the server maximum are rejected rather than silently changed.
Opaque cursor returned by the preceding page.
Empty lists every Exposure the caller may see; otherwise only this Workspace's, including its revoked ones.
ListExposuresResponseRevokeExposure
RevokeExposure stops serving the hostname and ends the connections running on it. It is idempotent: an already revoked Exposure is returned unchanged.
/kibotos.ctrl.v1.ExposureService/RevokeExposure一元调用RevokeExposureRequestRevokeExposureResponse消息与枚举
ExposureService 的多个方法用到以下消息与枚举。
ExposureSpec
Only tcp_loopback is accepted. A unix_stream target is unimplemented: a public HTTP origin addresses a port.
Required and positive, bounded by the server maximum. There is no unbounded Exposure: the address is public and unauthenticated.
Exposure
hostname is <label>.<zone>. It is fixed at creation and survives Workspace restarts. It is not reused after revocation.
url is derived from hostname. It is returned so a caller never has to assemble a scheme or port of its own. It carries no trailing slash: a caller appends a path to it.
revoked_at is set exactly when state is REVOKED.
ExposureState
EXPOSURE_STATE_UNSPECIFIED= 0EXPOSURE_STATE_ACTIVE= 1EXPOSURE_STATE_REVOKED= 2