cosi

package
v10.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *Config) (grpcserver.Server, error)

NewServer creates a new COSI gRPC server

Types

type Config

type Config struct {
	Driver  bucket.BucketDriver
	Net     string
	Address string
}

Config for setting up a COSI server

type Server

type Server struct {
	cosi.IdentityServer
	cosi.ProvisionerServer
	*grpcserver.GrpcServer
	// contains filtered or unexported fields
}

Server represents a COSI server

func (*Server) ProvisionerCreateBucket

ProvisionerCreateBucket is made to create the bucket in the backend. This call is idempotent

  1. If a bucket that matches both name and parameters already exists, then OK (success) must be returned.
  2. If a bucket by same name, but different parameters is provided, then the appropriate error code ALREADY_EXISTS must be returned.

func (*Server) ProvisionerDeleteBucket

ProvisionerDeleteBucket is made to delete the bucket in the backend. If the bucket has already been deleted, then no error should be returned.

func (*Server) ProvisionerGetInfo

ProvisionerGetInfo returns any required provisioner info

func (*Server) ProvisionerGrantBucketAccess

ProvisionerGrantBucketAccess grants access to an account. The account_name in the request shall be used as a unique identifier to create credentials. The account_id returned in the response will be used as the unique identifier for deleting this access when calling ProvisionerRevokeBucketAccess.

func (*Server) ProvisionerRevokeBucketAccess

ProvisionerRevokeBucketAccess revokes all access to a particular bucket from a principal.

func (*Server) Start

func (s *Server) Start() error

Start registers COSI services and starts the gRPC server

Jump to

Keyboard shortcuts

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