server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateBucket

type AggregateBucket struct {
	BucketClaim  *objectbucketv1alpha1.ObjectBucketClaim
	AccessSecret *corev1.Secret
}

type BucketClassRegistry

type BucketClassRegistry interface {
	Get(volumeClassName string) (*ori.BucketClass, bool)
	List() []*ori.BucketClass
}

type BucketConfig

type BucketConfig struct {
	BucketClaim *objectbucketv1alpha1.ObjectBucketClaim
}

type Options

type Options struct {
	IDGen idgen.IDGen

	Namespace                  string
	BucketEndpoint             string
	BucketPoolStorageClassName string
	BucketClassSelector        map[string]string
}

type Server

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

func New

func New(cfg *rest.Config, opts Options) (*Server, error)

func (*Server) CreateBucket

func (s *Server) CreateBucket(ctx context.Context, req *ori.CreateBucketRequest) (res *ori.CreateBucketResponse, retErr error)

func (*Server) DeleteBucket

func (s *Server) DeleteBucket(ctx context.Context, req *ori.DeleteBucketRequest) (*ori.DeleteBucketResponse, error)

func (*Server) ListBucketClasses

func (*Server) ListBuckets

func (s *Server) ListBuckets(ctx context.Context, req *ori.ListBucketsRequest) (*ori.ListBucketsResponse, error)

Jump to

Keyboard shortcuts

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