Versions in this module Expand all Collapse all v1 v1.0.0 Mar 24, 2020 Changes in this version + func EnsureTrailingSlash(dirname string) string + type Derived struct + Size int + Transformation string + URL string + type Resource struct + PublicID string + ResourceType string + SecureURL string + Size int + URL string + Version int + type ResourceDetails struct + Derived []*Derived + Format string + Height int + PublicID string + ResourceType string + SecureURL string + Size int + URL string + Version int + Width int + type ResourceType int + const ImageType + const PdfType + const RawType + const VideoType + type Service struct + func Dial(uri string) (*Service, error) + func (s *Service) ApiKey() string + func (s *Service) CloudName() string + func (s *Service) DefaultUploadURI() *url.URL + func (s *Service) Delete(publicID, prepend string, rtype ResourceType) error + func (s *Service) DropAll(w io.Writer) error + func (s *Service) DropAllImages(w io.Writer) error + func (s *Service) DropAllRaws(w io.Writer) error + func (s *Service) KeepFiles(pattern string) error + func (s *Service) Rename(publicID, toPublicID, prepend string, rtype ResourceType) error + func (s *Service) ResourceDetails(publicID string) (*ResourceDetails, error) + func (s *Service) Resources(rtype ResourceType) ([]*Resource, error) + func (s *Service) Simulate(v bool) + func (s *Service) Upload(path string, data io.Reader, prepend string, randomPublicID bool, ...) (string, error) + func (s *Service) UploadImage(path string, data io.Reader, prepend string) (string, error) + func (s *Service) UploadPdf(path string, data io.Reader, prepend string) (string, error) + func (s *Service) UploadRaw(path string, data io.Reader, prepend string) (string, error) + func (s *Service) UploadStaticImage(path string, data io.Reader, prepend string) (string, error) + func (s *Service) UploadStaticRaw(path string, data io.Reader, prepend string) (string, error) + func (s *Service) UploadVideo(path string, data io.Reader, prepend string) (string, error) + func (s *Service) Url(publicID string, rtype ResourceType) string + func (s *Service) UseDatabase(mongoDbURI string) error + func (s *Service) Verbose(v bool)