Documentation ¶
Index ¶
- type Option
- type Service
- func (s *Service) Add(content io.Reader) (cid.Cid, error)
- func (s *Service) Cache() components.Cache
- func (s *Service) CheckTns(components.MatchDefinition) ([]components.Serviceable, error)
- func (s *Service) Close() error
- func (s *Service) Get(context storageIface.Context) (storageIface.Storage, error)
- func (s *Service) GetFile(ctx context.Context, cid cid.Cid) (peer.ReadSeekCloser, error)
- func (s *Service) Storage(context storageIface.Context) (storageIface.Storage, error)
- func (s *Service) Storages() map[string]storageIface.Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func StorageMethod ¶
func StorageMethod(method storageMethod) Option
Note: smartops run inside the storage method, so a new method must implement it's own smartOps calls
type Service ¶
func (*Service) Cache ¶
func (s *Service) Cache() components.Cache
func (*Service) CheckTns ¶
func (s *Service) CheckTns(components.MatchDefinition) ([]components.Serviceable, error)
func (*Service) Get ¶
func (s *Service) Get(context storageIface.Context) (storageIface.Storage, error)
func (*Service) Storage ¶
func (s *Service) Storage(context storageIface.Context) (storageIface.Storage, error)
Context Config will be generated by New()
Click to show internal directories.
Click to hide internal directories.