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
Click to show internal directories.
Click to hide internal directories.