Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShoppingCartExtension ¶
type ShoppingCartExtension struct { Creator string `json:"creator,omitempty"` Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` ExtensionID string `json:"extensionId,omitempty"` }
ShoppingCartExtension represents the shopping extension present in the MetadataProvider
func NewShoppingCartExtension ¶
func NewShoppingCartExtension(creator string, name string, version string) (*ShoppingCartExtension, error)
NewShoppingCartExtension creates a ShoppingCartExtension with the given creator, name and version
func NewShoppingCartExtensionWithExtensionID ¶
func NewShoppingCartExtensionWithExtensionID(creator string, name string, version string, extensionID string) (*ShoppingCartExtension, error)
NewShoppingCartExtensionWithExtensionID creates a ShoppingCartExtension with the given creator, name, version and extension id
type UploadableFile ¶
type UploadableFile struct {
// contains filtered or unexported fields
}
UploadableFile represents a file that can be uploaded.
func NewUploadableFile ¶
func NewUploadableFile(fileName string, content io.Reader, contentType string) (*UploadableFile, error)
NewUploadableFile creates an uploadable file with the given file name, content and content type, and an unspecified content length.
func NewUploadableFileWithLength ¶
func NewUploadableFileWithLength(fileName string, content io.Reader, contentType string, contentLength int64) (*UploadableFile, error)
NewUploadableFileWithLength creates an uploadable file with the given file name, content, content type and content length.
func (UploadableFile) GetContent ¶
func (f UploadableFile) GetContent() io.Reader
GetContent returns a reader with the file's content.
func (UploadableFile) GetContentLength ¶
func (f UploadableFile) GetContentLength() int64
GetContentLength returns the file's content length, or -1 if not known.
func (UploadableFile) GetContentType ¶
func (f UploadableFile) GetContentType() string
GetContentType returns the file's content type.
func (UploadableFile) GetFileName ¶
func (f UploadableFile) GetFileName() string
GetFileName returns the name of the file.