Documentation ¶
Index ¶
- func Build(httpRequest *http.Request) (*rbac.Request, *authz.Request, error)
- func GetCustomerName(r *http.Request) (string, error)
- func GetResources(r *http.Request) (bucketName string, keyPath string, err error)
- func GetS3Action(r *http.Request) (s3.ActionType, error)
- func GetUserAttributes(r *http.Request) (id string, groups []string)
- func ToAuthzAction(s3Action s3.ActionType) (authz.ActionType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build creates rbac-request and authorization-request from a http request with authorization headers
func GetCustomerName ¶
GetCustomerName returns customer name set in the http request header
func GetResources ¶
GetResources returns the specific resourceIDs (bucket name and key path) in the http request
func GetS3Action ¶
func GetS3Action(r *http.Request) (s3.ActionType, error)
GetS3Action returns the S3 action type specified in the header 'X-Action'
func GetUserAttributes ¶
GetUserAttributes returns userID and userGroups set in the http request headers
func ToAuthzAction ¶
func ToAuthzAction(s3Action s3.ActionType) (authz.ActionType, error)
ToAuthzAction converts from S3Action type to ACL action type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.