iswiftpkg

package
v0.0.0-...-dd0c44f Latest Latest
Warning

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

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

Documentation

Overview

Package iswiftpkg implements an emulation of OpenStack Swift by presenting a Swift Proxy responding to a minimal set of base OpenStack Swift HTTP methods. While there is no support for TLS, a simple Auth functionality is provided and its usage is enforced.

To configure an iswiftpkg instance, Start() is called passing, as the sole argument, a package conf ConfMap. Here is a sample .conf file:

[ISWIFT]
SwiftProxyIPAddr:       127.0.0.1
SwiftProxyTCPPort:      8080

MaxAccountNameLength:   256
MaxContainerNameLength: 256
MaxObjectNameLength:    1024
AccountListingLimit:    10000
ContainerListingLimit:  10000

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceReAuth

func ForceReAuth()

ForceReAuth is called to force a "401 Unauthorized" response to a client's subsequent request forcing the client to reauthenticate.

func Start

func Start(confMap conf.ConfMap) (err error)

Start is called to start serving the NoAuth Swift Proxy Port and, optionally, the Auth Swift Proxy Port.

func Stop

func Stop() (err error)

Stop is called to stop serving.

Types

This section is empty.

Jump to

Keyboard shortcuts

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