Documentation ¶
Overview ¶
Package imguploader is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureBlobUploader ¶
type AzureBlobUploader struct {
// contains filtered or unexported fields
}
func NewAzureBlobUploader ¶
func NewAzureBlobUploader(account_name string, account_key string, container_name string, sas_token_expiration_days int) *AzureBlobUploader
type ImageUploader ¶
func NewImageUploader ¶
func NewImageUploader() (ImageUploader, error)
type LocalUploader ¶
type LocalUploader struct { }
func NewLocalImageUploader ¶
func NewLocalImageUploader() (*LocalUploader, error)
type MockImageUploader ¶
type MockImageUploader struct {
// contains filtered or unexported fields
}
MockImageUploader is a mock of ImageUploader interface.
func NewMockImageUploader ¶
func NewMockImageUploader(ctrl *gomock.Controller) *MockImageUploader
NewMockImageUploader creates a new mock instance.
func (*MockImageUploader) EXPECT ¶
func (m *MockImageUploader) EXPECT() *MockImageUploaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockImageUploaderMockRecorder ¶
type MockImageUploaderMockRecorder struct {
// contains filtered or unexported fields
}
MockImageUploaderMockRecorder is the mock recorder for MockImageUploader.
func (*MockImageUploaderMockRecorder) Upload ¶
func (mr *MockImageUploaderMockRecorder) Upload(arg0, arg1 interface{}) *gomock.Call
Upload indicates an expected call of Upload.
type NopImageUploader ¶
type NopImageUploader struct { }
type S3Uploader ¶
type S3Uploader struct {
// contains filtered or unexported fields
}
func NewS3Uploader ¶
func NewS3Uploader(endpoint, region, bucket, path, acl, accessKey, secretKey string, pathStyleAccess bool) *S3Uploader
type StorageClient ¶
type StorageClient struct { Auth *Auth Transport http.RoundTripper }
func NewStorageClient ¶
func NewStorageClient(account, accessKey string) *StorageClient
func (*StorageClient) FileUpload ¶
func (*StorageClient) GetBlobSasUrl ¶
func (c *StorageClient) GetBlobSasUrl(ctx context.Context, containerName, blobName string, sasTokenExpiration int) (string, error)
SignWithSharedKey uses an account's SharedKeyCredential to sign this signature values to produce the proper SAS query parameters.
type WebdavUploader ¶
type WebdavUploader struct {
// contains filtered or unexported fields
}
func NewWebdavImageUploader ¶
func NewWebdavImageUploader(url, username, password, public_url string) (*WebdavUploader, error)
func (*WebdavUploader) PublicURL ¶
func (u *WebdavUploader) PublicURL(filename string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.