Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGatewayRequest ¶
type CreateGatewayRequest struct {
// Slug is optional; when omitted the server generates a unique random slug. If provided it must be a lowercase DNS label.
Slug string `json:"slug,omitempty" example:"acme-prod"`
Domain string `json:"domain,omitempty"`
// TenantID is optional ownership for platform (empty JWT) create-for-tenant; tenant JWTs must match or omit it.
TenantID string `json:"tenant_id,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Telemetry *telemetry.Telemetry `json:"telemetry,omitempty"`
ClientTLSConfig domain.ClientTLSConfig `json:"client_tls,omitempty"`
SessionConfig *domain.SessionConfig `json:"session_config,omitempty"`
// Entitlements.Tier is optional; only platform admins may set it. Tenant callers sending
// entitlements receive 422. When omitted the gateway defaults to free (or inherits sibling tier).
Entitlements *domain.Entitlements `json:"entitlements,omitempty"`
}
func (CreateGatewayRequest) Validate ¶
func (r CreateGatewayRequest) Validate() error
Validate checks the create request. The slug is optional: when omitted the server generates a unique random slug at creation time. A provided slug must still be a valid lowercase DNS label.
type ListGatewayRequest ¶
type UpdateGatewayRequest ¶
type UpdateGatewayRequest struct {
Slug *string `json:"slug,omitempty"`
Status *string `json:"status,omitempty"`
Domain *string `json:"domain,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Telemetry *telemetry.Telemetry `json:"telemetry,omitempty"`
ClientTLSConfig *domain.ClientTLSConfig `json:"client_tls,omitempty"`
SessionConfig *domain.SessionConfig `json:"session_config,omitempty"`
// Entitlements.Tier is optional; only platform admins may set it (tenant callers get 422).
// When omitted the gateway's tier is left unchanged. Downgrading when the tenant already
// has more gateways than the new tier's MaxInstances returns 409 — delete excess first.
Entitlements *domain.Entitlements `json:"entitlements,omitempty"`
}
func (UpdateGatewayRequest) Validate ¶
func (r UpdateGatewayRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.