Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResources ¶
GetResources split the requestURI to the s3 resources (bucket name, key-path).
func ToRbacAction ¶
func ToRbacAction(s3Action ActionType) rbac.Action
Types ¶
type ActionType ¶
type ActionType string
const ( CreateBucket ActionType = "create-bucket" DeleteBucket ActionType = "delete-bucket" ListBucket ActionType = "list-bucket" GetObject ActionType = "get-object" DeleteObject ActionType = "delete-object" CreateObject ActionType = "create-object" )
func ActionFromString ¶
func ActionFromString(str string) (ActionType, error)
func ToS3Action ¶
func ToS3Action(httpMethod, keyPath string) (ActionType, error)
Click to show internal directories.
Click to hide internal directories.