request

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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 ListGatewayRequest struct {
	Slug string
	Page int
	Size int
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL