s3

package
v0.0.0-...-614d85d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResources

func GetResources(requestURI string) (bucketName string, keyPath string, err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL