package
0.40.0
Repository: https://github.com/radius-project/radius.git
Documentation: pkg.go.dev

# Functions

BuildTrackedResource takes in a context and returns a v1.TrackedResource object with the ID, Name, Type and Location fields populated from the context.
GetNextLinkUrl function returns the URL string by building a URL from the request and the pagination token.
GetURLFromReqWithQueryParameters function builds a URL from the request and query parameters.
NewBaseController creates BaseController instance.
NewOperation creates BaseController instance.
ReadJSONBody extracts the content from request - it reads the body of the request if the content type is "application/json".
UpdateSystemData updates the system data fields in the old object with the new object's fields, backfilling the created fields if necessary.
ValidateETag checks the If-Match and If-None-Match headers of the ARMRequestContext against the provided etag, and returns an error if the etag does not match either header.

# Constants

InProgressStateMessageFormat represents the message when resource is in progress state.

# Variables

ContentTypeHeaderKey is the header key of Content-Type.
DefaultScheme is the default scheme used if there is no scheme in the URL.
ErrETagsDoNotMatch represents the error of the eTag of the resource and the requested etag not matching.
ErrRequestedResourceDoesNotExist represents the error of resource that is requested not existing.
ErrResourceAlreadyExists represents the error of the resource being already existent at the moment.
ErrUnsupportedContentType represents the error of unsupported content-type.

# Structs

BaseController is the base operation controller.
Operation is the base operation controller.
Options represents controller options.
ResourceOptions represents the options and filters for resource.

# Interfaces

TODO: Remove Controller when all controller uses Operation Controller is an interface of each operation controller.

# Type aliases

DeleteFilter is a function that is executed as part of the controller lifecycle.
UpdateFilter is a function that is executed as part of the controller lifecycle.