Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService is the interface that deals with the calls to an authentication authentication.
type DataService ¶
type DataService interface {
Upload(pathSpec string, r io.Reader, checksum string) (*codes.Response, error)
Download(pathSpec string) (io.Reader, *codes.Response, error)
}
DataService is the interface that specifies the methods to call a data service.
type MetaDataService ¶
type MetaDataService interface {
Init() (*codes.Response, error)
CreateTree(pathSpec string) (*codes.Response, error)
ExamineObject(pathSpec string) (*entities.ObjectInfo, *codes.Response, error)
ListTree(pathSpec string) ([]*entities.ObjectInfo, *codes.Response, error)
DeleteObject(pathSpec string) (*codes.Response, error)
MoveObject(sourcePathSpec, targetPathSpec string) (*codes.Response, error)
}
MetaDataService is the interface that specifies the methods to call a metaData service.
type SDK ¶
type SDK struct {
Auth AuthService
Data DataService
Meta MetaDataService
}
SDK contains services used for talking to different parts of the ClawIO API.
type ServiceEndpoints ¶
type ServiceEndpoints struct {
AuthServiceBaseURL string
DataServiceBaseURL string
MetaDataServiceBaseURL string
}
ServiceEndpoints contains the url of the different services of ClawIO.
Click to show internal directories.
Click to hide internal directories.