api

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBucket

func AddBucket(c echo.Context) error

AddBucket handles requests creating new bucket from UI. If error, it returns the error response with either error codes BucketAlreadyExists or InternalError

func CreateAccessKey

func CreateAccessKey(c echo.Context) error

func CreateRoleBinding

func CreateRoleBinding(c echo.Context) error

CreateRoleBinding handles API requests to create role-binding objects

func DeleteAccessKey

func DeleteAccessKey(c echo.Context) error

func DeleteRoleBinding

func DeleteRoleBinding(c echo.Context) error

DeleteRoleBinding handles API requests to delete role-binding objects

func GetRole

func GetRole(c echo.Context) error

func ListAccessKeys

func ListAccessKeys(c echo.Context) error

func ListBuckets

func ListBuckets(c echo.Context) error

ListBuckets handles requests listing all buckets in the UI

func ListRoleBindings

func ListRoleBindings(c echo.Context) error

ListRoleBindings handles API requests to list role-binding objects

func ListRoles

func ListRoles(c echo.Context) error

func LogOut

func LogOut(c echo.Context) error

func Login

func Login(c echo.Context) error

Login handles form-based POST requests to login

func UpdateBucketACLs

func UpdateBucketACLs(c echo.Context) error

UpdateBucketACLs handles requests updating bucket's ACLs from UI

Types

type AccessKey

type AccessKey struct {
	Id        string    `json:"accessKeyId,omitempty"`
	SecretKey string    `json:"secretKeyId,omitempty"`
	CreatedAt time.Time `json:"createdAt,omitempty"`
	LastUsed  time.Time `json:"lastUsed,omitempty"`
	Status    string    `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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