response

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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 ListRoleResponse

type ListRoleResponse struct {
	Items []RoleResponse `json:"items"`
	Page  int            `json:"page"`
	Size  int            `json:"size"`
	Total int            `json:"total"`
}

type ModelPolicyResponse

type ModelPolicyResponse struct {
	RegistryID ids.RegistryID `json:"registry_id"`
	Allowed    []string       `json:"allowed,omitempty"`
	Default    string         `json:"default,omitempty"`
}

type RoleResponse

type RoleResponse struct {
	ID            ids.RoleID            `json:"id"`
	GatewayID     ids.GatewayID         `json:"gateway_id"`
	Name          string                `json:"name"`
	ModelPolicies []ModelPolicyResponse `json:"model_policies,omitempty"`
	McpPolicies   *domain.MCPPolicies   `json:"mcp_policies,omitempty"`
	OIDCMapping   json.RawMessage       `json:"oidc_mapping,omitempty"`
	RegistryIDs   []ids.RegistryID      `json:"registry_ids"`
	CreatedAt     time.Time             `json:"created_at"`
	UpdatedAt     time.Time             `json:"updated_at"`
}

func FromRole

func FromRole(role *domain.Role) RoleResponse

Jump to

Keyboard shortcuts

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