Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetResourceWithRedaction ¶ added in v0.55.0
func NewGetResourceWithRedaction( opts ctrl.Options, resourceOpts ctrl.ResourceOptions[datamodel.DynamicResource], ucpClient *v20231001preview.ClientFactory, ) (ctrl.Controller, error)
NewGetResourceWithRedaction creates a new GetResourceWithRedaction controller.
func NewListResourcesWithRedaction ¶ added in v0.55.0
func NewListResourcesWithRedaction( opts ctrl.Options, resourceOpts ctrl.ResourceOptions[datamodel.DynamicResource], ucpClient *v20231001preview.ClientFactory, ) (ctrl.Controller, error)
NewListResourcesWithRedaction creates a new ListResourcesWithRedaction controller.
Types ¶
type GetResourceWithRedaction ¶ added in v0.55.0
type GetResourceWithRedaction struct {
ctrl.Operation[*datamodel.DynamicResource, datamodel.DynamicResource]
// contains filtered or unexported fields
}
GetResourceWithRedaction is a custom GET controller that redacts sensitive fields.
func (*GetResourceWithRedaction) Run ¶ added in v0.55.0
func (c *GetResourceWithRedaction) Run(ctx context.Context, w http.ResponseWriter, req *http.Request) (rest.Response, error)
Run returns the requested resource with sensitive fields redacted.
Design consideration (GET Operation Update): When provisioningState is "Succeeded", the backend has already redacted sensitive data from the database, so we skip the schema fetch and redaction (fast path). For all other states (e.g., "Updating", "Accepted", "Failed"), the resource may still contain encrypted data, so we fetch the schema and redact sensitive fields to prevent exposure.
type ListResourcesWithRedaction ¶ added in v0.55.0
type ListResourcesWithRedaction struct {
ctrl.Operation[*datamodel.DynamicResource, datamodel.DynamicResource]
// contains filtered or unexported fields
}
ListResourcesWithRedaction is a custom LIST controller that redacts sensitive fields.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the hosting.Service interface for the UCP frontend API.