Versions in this module Expand all Collapse all v1 v1.2.0 Oct 22, 2020 Changes in this version type Template + RequireSignatureAuth bool + func (template *Template) UnmarshalJSON(b []byte) error + func (template Template) MarshalJSON() ([]byte, error) v1.1.1 Nov 19, 2018 v1.1.0 Oct 25, 2018 v1.0.0 Apr 21, 2017 Changes in this version + var DefaultConfig = Config + var Version = "v0.1.9" + type Assembly struct + NotifyURL string + TemplateID string + func NewAssembly() Assembly + func (assembly *Assembly) AddFile(fieldname, filepath string) error + func (assembly *Assembly) AddReader(fieldname, filename string, reader io.ReadCloser) + func (assembly *Assembly) AddStep(name string, details map[string]interface{}) + type AssemblyInfo struct + AssemblyID string + AssemblySSLURL string + AssemblyURL string + BytesExpected int + BytesReceived int + BytesUsage int + ClientAgent string + ClientIp string + ClientReferer string + Created string + Error string + ExecutingJobs []string + ExecutionDuration float32 + ExecutionStart string + Fields map[string]interface{} + Files string + FilesToStoreOnS3 int + HasDupeJobs bool + IsInfinite bool + LastJobCompleted string + Message string + NotifyDuation float32 + NotifyStart string + NotifyStatus string + NotifyURL string + Ok string + Params string + ParentAssemblyStatus *AssemblyInfo + ParentID string + QueuedFilesToStoreOnS3 int + Results map[string][]*FileInfo + StartDate string + StartedJobs []string + UploadDuration float32 + Uploads []*FileInfo + type AssemblyList struct + Assemblies []*AssemblyListItem + Count int + type AssemblyListItem struct + AccountID string + AssemblyID string + Created time.Time + Error string + ExecutionDuration float32 + ExecutionStart *time.Time + Files string + Instance string + NotifyURL string + Ok string + RedirectURL string + TemplateID string + type AssemblyReplay struct + NotifyURL string + ReparseTemplate bool + func NewAssemblyReplay(assemblyURL string) AssemblyReplay + func (assembly *AssemblyReplay) AddStep(name string, details map[string]interface{}) + type Client struct + func NewClient(config Config) Client + func (client *Client) CancelAssembly(ctx context.Context, assemblyURL string) (*AssemblyInfo, error) + func (client *Client) CreateTemplate(ctx context.Context, template Template) (string, error) + func (client *Client) DeleteTemplate(ctx context.Context, templateID string) error + func (client *Client) GetAssembly(ctx context.Context, assemblyURL string) (*AssemblyInfo, error) + func (client *Client) GetTemplate(ctx context.Context, templateID string) (template Template, err error) + func (client *Client) ListAssemblies(ctx context.Context, options *ListOptions) (AssemblyList, error) + func (client *Client) ListNotifications(ctx context.Context, options *ListOptions) (list NotificationList, err error) + func (client *Client) ListTemplates(ctx context.Context, options *ListOptions) (list TemplateList, err error) + func (client *Client) ReplayNotification(ctx context.Context, assemblyID string, notifyURL string) error + func (client *Client) StartAssembly(ctx context.Context, assembly Assembly) (*AssemblyInfo, error) + func (client *Client) StartAssemblyReplay(ctx context.Context, assembly AssemblyReplay) (*AssemblyInfo, error) + func (client *Client) UpdateTemplate(ctx context.Context, templateID string, newTemplate Template) error + func (client *Client) WaitForAssembly(ctx context.Context, assembly *AssemblyInfo) (*AssemblyInfo, error) + type Config struct + AuthKey string + AuthSecret string + Endpoint string + type FileInfo struct + Basename string + Ext string + Field string + ID string + Md5Hash string + Meta map[string]interface{} + Mime string + Name string + OriginalBasename string + OriginalID string + OriginalMd5Hash string + SSLURL string + Size int + Type string + URL string + type ListOptions struct + AssemblyID string + Fields []string + FromDate *time.Time + Keywords []string + Order string + Page int + PageSize int + Sort string + ToDate *time.Time + Type string + type Notification struct + AccountID string + AssemblyID string + Created time.Time + Duration float32 + Error string + ID string + ResponseCode int + ResponseData string + URL string + type NotificationList struct + Count int + Notifications []Notification + type RequestError struct + Code string + Message string + func (err RequestError) Error() string + type Template struct + Content TemplateContent + ID string + Name string + func NewTemplate() Template + func (template *Template) AddStep(name string, step map[string]interface{}) + type TemplateContent struct + Steps map[string]interface{} + type TemplateList struct + Count int + Templates []Template Other modules containing this package gopkg.in/transloadit/go-sdk.v0