objects

package
v1.45.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUsed

func IsUsed(md *meta.Data) bool

IsUsed reports whether the application uses object storage at all.

Types

type ClusterManager

type ClusterManager struct {
	// contains filtered or unexported fields
}

func NewClusterManager

func NewClusterManager(ns *namespace.Manager) *ClusterManager

NewClusterManager creates a new ClusterManager.

func (*ClusterManager) BaseDir

func (cm *ClusterManager) BaseDir(ns namespace.ID) (string, error)

func (*ClusterManager) CanDeleteNamespace

func (cm *ClusterManager) CanDeleteNamespace(ctx context.Context, app *apps.Instance, ns *namespace.Namespace) error

CanDeleteNamespace implements namespace.DeletionHandler.

func (*ClusterManager) DeleteNamespace

func (cm *ClusterManager) DeleteNamespace(ctx context.Context, app *apps.Instance, ns *namespace.Namespace) error

DeleteNamespace implements namespace.DeletionHandler.

func (*ClusterManager) PersistentStoreFallback added in v1.44.6

func (cm *ClusterManager) PersistentStoreFallback(id string) (gcsemu.Store, bool)

PersistentStoreFallback is a public server fallback handler for resolving stores based on the cluster manager's base directory.

type Fallback added in v1.44.6

type Fallback func(namespace string) (gcsemu.Store, bool)

Fallback is a function that returns a store for a given namespace. It is used for resolving namespace ids to stores, where the store is not pre-registered by Register.

type PublicBucketServer added in v1.44.6

type PublicBucketServer struct {
	// contains filtered or unexported fields
}

func NewPublicBucketServer added in v1.44.6

func NewPublicBucketServer(baseAddr string, fallback Fallback) *PublicBucketServer

NewPublicBucketServer creates a new PublicBucketServer. If fallback is nil, no fallback will be used.

func (*PublicBucketServer) BaseAddr added in v1.44.6

func (s *PublicBucketServer) BaseAddr() string

func (*PublicBucketServer) Deregister added in v1.44.6

func (s *PublicBucketServer) Deregister(namespace string)

func (*PublicBucketServer) Register added in v1.44.6

func (s *PublicBucketServer) Register(namespace string, store gcsemu.Store)

func (*PublicBucketServer) Serve added in v1.44.6

func (s *PublicBucketServer) Serve(ln net.Listener) error

func (*PublicBucketServer) ServeHTTP added in v1.44.6

func (s *PublicBucketServer) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewDirServer

func NewDirServer(public *PublicBucketServer, nsID namespace.ID, baseDir string) *Server

func NewInMemoryServer

func NewInMemoryServer(public *PublicBucketServer) *Server

func (*Server) Endpoint

func (s *Server) Endpoint() string

func (*Server) Initialize

func (s *Server) Initialize(md *meta.Data) error

func (*Server) PublicBaseURL added in v1.44.6

func (s *Server) PublicBaseURL() string

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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