Help us shape the future of Go! Take the 2026 Go Developer Survey

platform

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	Conf        *PixelbinConfig
	Method      string
	Url         string
	Query       map[string]string
	Body        interface{}
	ContentType string
}

APIClient holds raw data for api execution

func (*APIClient) Execute

func (c *APIClient) Execute() ([]byte, error)

Execute performs API call

type AccessEnum

type AccessEnum string

AccessEnum used by Assets

const (

	//PUBLIC_READ defines constant for the `public-read`
	PUBLIC_READ AccessEnum = "public-read"

	//PRIVATE defines constant for the `private`
	PRIVATE AccessEnum = "private"
)

func (AccessEnum) IsValid

func (ac AccessEnum) IsValid() error

IsValid return error if enum is invalid

type AddCredentialsRequest

type AddCredentialsRequest struct {
	Credentials map[string]interface{} `json:"credentials"`
	PluginId    string                 `json:"pluginId"`
}

AddCredentialsRequest used by Assets

type AddCredentialsResponse

type AddCredentialsResponse struct {
	Credentials map[string]interface{} `json:"credentials"`
}

AddCredentialsResponse used by Assets

type AddCredentialsXQuery

type AddCredentialsXQuery struct {
	Credentials map[string]interface{} `json:"credentials,omitempty"`
	PluginId    string                 `json:"pluginId,omitempty"`
}

type AddPresetRequest

type AddPresetRequest struct {
	PresetName     string                 `json:"presetName"`
	Transformation string                 `json:"transformation"`
	Params         map[string]interface{} `json:"params"`
}

AddPresetRequest used by Assets

type AddPresetResponse

type AddPresetResponse struct {
	PresetName     string                 `json:"presetName"`
	Transformation string                 `json:"transformation"`
	Params         map[string]interface{} `json:"params"`
	Archived       bool                   `json:"archived"`
}

AddPresetResponse used by Assets

type AddPresetXQuery

type AddPresetXQuery struct {
	PresetName     string                 `json:"presetName,omitempty"`
	Transformation string                 `json:"transformation,omitempty"`
	Params         map[string]interface{} `json:"params,omitempty"`
}

type AppOrgDetails

type AppOrgDetails struct {
	App AppSchema                `json:"app"`
	Org OrganizationDetailSchema `json:"org"`
}

AppOrgDetails used by Organization

type AppSchema

type AppSchema struct {
	ID          float64  `json:"_id"`
	OrgId       float64  `json:"orgId"`
	Name        string   `json:"name"`
	Token       string   `json:"token"`
	Permissions []string `json:"permissions"`
	Active      bool     `json:"active"`
	CreatedAt   string   `json:"createdAt"`
	UpdatedAt   string   `json:"updatedAt"`
}

AppSchema used by Organization

type Assets

type Assets struct {
	// contains filtered or unexported fields
}

Assets holds Assets object properties

func NewAssets

func NewAssets(config *PixelbinConfig) *Assets

NewAssets returns new Assets instance

func (*Assets) AddCredentials

func (c *Assets) AddCredentials(
	p AddCredentialsXQuery,
) (map[string]interface{}, error)

summary: Add credentials for a transformation module.

description: Add a transformation modules's credentials for an organization.

params: AddCredentialsXQuery

func (*Assets) AddPreset

func (c *Assets) AddPreset(
	p AddPresetXQuery,
) (map[string]interface{}, error)

summary: Add a preset.

description: Add a preset for an organization.

params: AddPresetXQuery

func (*Assets) CreateFolder

func (c *Assets) CreateFolder(
	p CreateFolderXQuery,
) (map[string]interface{}, error)

summary: Create folder

description: Create a new folder at the specified path. Also creates the ancestors if they do not exist.

params: CreateFolderXQuery

func (*Assets) CreateSignedUrl

func (c *Assets) CreateSignedUrl(
	p CreateSignedUrlXQuery,
) (map[string]interface{}, error)

summary: S3 Signed URL upload

description: For the given asset details, a S3 signed URL will be generated, which can be then used to upload your asset.

params: CreateSignedUrlXQuery

func (*Assets) CreateSignedUrlV2 added in v2.4.0

func (c *Assets) CreateSignedUrlV2(
	p CreateSignedUrlV2XQuery,
) (map[string]interface{}, error)

summary: Signed multipart upload

description: For the given asset details, a presigned URL will be generated, which can be then used to upload your asset in chunks via multipart upload.

params: CreateSignedUrlV2XQuery

func (*Assets) DeleteCredentials

func (c *Assets) DeleteCredentials(
	p DeleteCredentialsXQuery,
) (map[string]interface{}, error)

summary: Delete credentials of a transformation module.

description: Delete credentials of a transformation module, for an organization.

params: DeleteCredentialsXQuery

func (*Assets) DeleteFile

func (c *Assets) DeleteFile(
	p DeleteFileXQuery,
) (map[string]interface{}, error)

summary: Delete file

description:

params: DeleteFileXQuery

func (*Assets) DeleteFiles

func (c *Assets) DeleteFiles(
	p DeleteFilesXQuery,
) (map[string]interface{}, error)

summary: Delete multiple files

description:

params: DeleteFilesXQuery

func (*Assets) DeleteFolder

func (c *Assets) DeleteFolder(
	p DeleteFolderXQuery,
) (map[string]interface{}, error)

summary: Delete folder

description: Delete folder and all its children permanently.

params: DeleteFolderXQuery

func (*Assets) DeletePreset

func (c *Assets) DeletePreset(
	p DeletePresetXQuery,
) (map[string]interface{}, error)

summary: Delete a preset.

description: Delete a preset of an organization.

params: DeletePresetXQuery

func (*Assets) FileUpload

func (c *Assets) FileUpload(
	p FileUploadXQuery,
) (map[string]interface{}, error)

summary: Upload File

description: Upload File to Pixelbin

params: FileUploadXQuery

func (*Assets) GetDefaultAssetForPlayground

func (c *Assets) GetDefaultAssetForPlayground(
	p GetDefaultAssetForPlaygroundXQuery,
) (map[string]interface{}, error)

summary: Get default asset for playground

description: Get default asset for playground

params: GetDefaultAssetForPlaygroundXQuery

func (*Assets) GetFileByFileId

func (c *Assets) GetFileByFileId(
	p GetFileByFileIdXQuery,
) (map[string]interface{}, error)

summary: Get file details with fileId

description:

params: GetFileByFileIdXQuery

func (*Assets) GetFileById

func (c *Assets) GetFileById(
	p GetFileByIdXQuery,
) (map[string]interface{}, error)

summary: Get file details with _id

description:

params: GetFileByIdXQuery

func (*Assets) GetFolderAncestors

func (c *Assets) GetFolderAncestors(
	p GetFolderAncestorsXQuery,
) (map[string]interface{}, error)

summary: Get all ancestors of a folder

description: Get all ancestors of a folder, using the folder ID.

params: GetFolderAncestorsXQuery

func (*Assets) GetFolderDetails

func (c *Assets) GetFolderDetails(
	p GetFolderDetailsXQuery,
) (map[string]interface{}, error)

summary: Get folder details

description: Get folder details

params: GetFolderDetailsXQuery

func (*Assets) GetModule

func (c *Assets) GetModule(
	p GetModuleXQuery,
) (map[string]interface{}, error)

summary: Get Transformation Module by module identifier

description: Get Transformation Module by module identifier

params: GetModuleXQuery

func (*Assets) GetModules

func (c *Assets) GetModules(
	p GetModulesXQuery,
) (map[string]interface{}, error)

summary: Get all transformation modules

description: Get all transformation modules.

params: GetModulesXQuery

func (*Assets) GetPreset

func (c *Assets) GetPreset(
	p GetPresetXQuery,
) (map[string]interface{}, error)

summary: Get a preset.

description: Get a preset of an organization.

params: GetPresetXQuery

func (*Assets) GetPresets

func (c *Assets) GetPresets(
	p GetPresetsXQuery,
) (map[string]interface{}, error)

summary: Get all presets.

description: Get all presets of an organization.

params: GetPresetsXQuery

func (*Assets) ListFiles

func (c *Assets) ListFiles(
	p ListFilesXQuery,
) (map[string]interface{}, error)

summary: List and search files and folders.

description: List all files and folders in root folder. Search for files if name is provided. If path is provided, search in the specified path.

params: ListFilesXQuery

func (*Assets) UpdateCredentials

func (c *Assets) UpdateCredentials(
	p UpdateCredentialsXQuery,
) (map[string]interface{}, error)

summary: Update credentials of a transformation module.

description: Update credentials of a transformation module, for an organization.

params: UpdateCredentialsXQuery

func (*Assets) UpdateFile

func (c *Assets) UpdateFile(
	p UpdateFileXQuery,
) (map[string]interface{}, error)

summary: Update file details

description:

params: UpdateFileXQuery

func (*Assets) UpdateFolder

func (c *Assets) UpdateFolder(
	p UpdateFolderXQuery,
) (map[string]interface{}, error)

summary: Update folder details

description: Update folder details. Eg: Soft delete it by making `isActive` as `false`. We currently do not support updating folder name or path.

params: UpdateFolderXQuery

func (*Assets) UpdatePreset

func (c *Assets) UpdatePreset(
	p UpdatePresetXQuery,
) (map[string]interface{}, error)

summary: Update a preset.

description: Update a preset of an organization.

params: UpdatePresetXQuery

func (*Assets) UrlUpload

func (c *Assets) UrlUpload(
	p UrlUploadXQuery,
) (map[string]interface{}, error)

summary: Upload Asset with url

description: Upload Asset with url

params: UrlUploadXQuery

type CreateFolderRequest

type CreateFolderRequest struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

CreateFolderRequest used by Assets

type CreateFolderXQuery

type CreateFolderXQuery struct {
	Name string `json:"name,omitempty"`
	Path string `json:"path,omitempty"`
}

type CreateSignedUrlV2XQuery added in v2.4.0

type CreateSignedUrlV2XQuery struct {
	Name             string                 `json:"name,omitempty"`
	Path             string                 `json:"path,omitempty"`
	Format           string                 `json:"format,omitempty"`
	Access           AccessEnum             `json:"access,omitempty"`
	Tags             []string               `json:"tags,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
	Overwrite        bool                   `json:"overwrite,omitempty"`
	FilenameOverride bool                   `json:"filenameOverride,omitempty"`
	Expiry           float64                `json:"expiry,omitempty"`
}

type CreateSignedUrlXQuery

type CreateSignedUrlXQuery struct {
	Name             string                 `json:"name,omitempty"`
	Path             string                 `json:"path,omitempty"`
	Format           string                 `json:"format,omitempty"`
	Access           AccessEnum             `json:"access,omitempty"`
	Tags             []string               `json:"tags,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
	Overwrite        bool                   `json:"overwrite,omitempty"`
	FilenameOverride bool                   `json:"filenameOverride,omitempty"`
}

type Credentials

type Credentials struct {
	ID          string                 `json:"_id"`
	CreatedAt   string                 `json:"createdAt"`
	UpdatedAt   string                 `json:"updatedAt"`
	IsActive    bool                   `json:"isActive"`
	OrgId       string                 `json:"orgId"`
	PluginId    string                 `json:"pluginId"`
	Credentials map[string]interface{} `json:"credentials"`
	Description interface{}            `json:"description"`
}

Credentials used by Assets

type CredentialsItem

type CredentialsItem struct {
	PluginId interface{} `json:"pluginId"`
}

CredentialsItem used by Assets

type DeleteCredentialsResponse

type DeleteCredentialsResponse struct {
	ID          string                 `json:"_id"`
	CreatedAt   string                 `json:"createdAt"`
	UpdatedAt   string                 `json:"updatedAt"`
	IsActive    bool                   `json:"isActive"`
	OrgId       string                 `json:"orgId"`
	PluginId    string                 `json:"pluginId"`
	Credentials map[string]interface{} `json:"credentials"`
}

DeleteCredentialsResponse used by Assets

type DeleteCredentialsXQuery

type DeleteCredentialsXQuery struct {
	PluginId string `json:"pluginId,omitempty"`
}

type DeleteFileXQuery

type DeleteFileXQuery struct {
	FileId string `json:"fileId,omitempty"`
}

type DeleteFilesXQuery

type DeleteFilesXQuery struct {
	Ids []string `json:"ids,omitempty"`
}

type DeleteFolderXQuery

type DeleteFolderXQuery struct {
	ID string `json:"_id,omitempty"`
}

type DeleteMultipleFilesRequest

type DeleteMultipleFilesRequest struct {
	Ids []string `json:"ids"`
}

DeleteMultipleFilesRequest used by Assets

type DeletePresetXQuery

type DeletePresetXQuery struct {
	PresetName string `json:"presetName,omitempty"`
}

type Delimiter

type Delimiter struct {
	OperationSeparator string `json:"operationSeparator"`
	ParameterSeparator string `json:"parameterSeparator"`
}

Delimiter used by Assets

type ErrorSchema

type ErrorSchema struct {
	Message string `json:"message"`
}

ErrorSchema used by Organization

type FileUploadRequest

type FileUploadRequest struct {
	File             *os.File               `json:"file"`
	Path             string                 `json:"path"`
	Name             string                 `json:"name"`
	Access           AccessEnum             `json:"access"`
	Tags             []string               `json:"tags"`
	Metadata         map[string]interface{} `json:"metadata"`
	Overwrite        bool                   `json:"overwrite"`
	FilenameOverride bool                   `json:"filenameOverride"`
}

FileUploadRequest used by Assets

type FileUploadXQuery

type FileUploadXQuery struct {
	File             *os.File               `json:"file,omitempty"`
	Path             string                 `json:"path,omitempty"`
	Name             string                 `json:"name,omitempty"`
	Access           AccessEnum             `json:"access,omitempty"`
	Tags             []string               `json:"tags,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
	Overwrite        bool                   `json:"overwrite,omitempty"`
	FilenameOverride bool                   `json:"filenameOverride,omitempty"`
}

type FilesResponse

type FilesResponse struct {
	ID        string                 `json:"_id"`
	Name      string                 `json:"name"`
	Path      string                 `json:"path"`
	FileId    string                 `json:"fileId"`
	Format    string                 `json:"format"`
	Size      float64                `json:"size"`
	Access    AccessEnum             `json:"access"`
	IsActive  bool                   `json:"isActive"`
	Tags      []string               `json:"tags"`
	Metadata  map[string]interface{} `json:"metadata"`
	URL       string                 `json:"url"`
	Thumbnail string                 `json:"thumbnail"`
}

FilesResponse used by Assets

type FoldersResponse

type FoldersResponse struct {
	ID       string `json:"_id"`
	Name     string `json:"name"`
	Path     string `json:"path"`
	IsActive bool   `json:"isActive"`
}

FoldersResponse used by Assets

type GetAncestorsResponse

type GetAncestorsResponse struct {
	Folder    folderItem        `json:"folder"`
	Ancestors []FoldersResponse `json:"ancestors"`
}

GetAncestorsResponse used by Assets

type GetAppOrgDetailsXQuery

type GetAppOrgDetailsXQuery struct {
}

type GetDefaultAssetForPlaygroundXQuery

type GetDefaultAssetForPlaygroundXQuery struct {
}

type GetFileByFileIdXQuery

type GetFileByFileIdXQuery struct {
	FileId string `json:"fileId,omitempty"`
}

type GetFileByIdXQuery

type GetFileByIdXQuery struct {
	ID string `json:"_id,omitempty"`
}

type GetFilesWithConstraintsItem

type GetFilesWithConstraintsItem struct {
	Path string `json:"path"`
	Name string `json:"name"`
	Type string `json:"type"`
}

GetFilesWithConstraintsItem used by Assets

type GetFilesWithConstraintsRequest

type GetFilesWithConstraintsRequest struct {
	Items    []GetFilesWithConstraintsItem `json:"items"`
	MaxCount float64                       `json:"maxCount"`
	MaxSize  float64                       `json:"maxSize"`
}

GetFilesWithConstraintsRequest used by Assets

type GetFolderAncestorsXQuery

type GetFolderAncestorsXQuery struct {
	ID string `json:"_id,omitempty"`
}

type GetFolderDetailsXQuery

type GetFolderDetailsXQuery struct {
	Path string `json:"path,omitempty"`
	Name string `json:"name,omitempty"`
}

type GetModuleXQuery

type GetModuleXQuery struct {
	Identifier string `json:"identifier,omitempty"`
}

type GetModulesXQuery

type GetModulesXQuery struct {
}

type GetPresetXQuery

type GetPresetXQuery struct {
	PresetName string `json:"presetName,omitempty"`
}

type GetPresetsResponse

type GetPresetsResponse struct {
	Items []AddPresetResponse `json:"items"`
	Page  page                `json:"page"`
}

GetPresetsResponse used by Assets

type GetPresetsXQuery

type GetPresetsXQuery struct {
}

type GetTransformationContextSuccessResponse added in v2.1.0

type GetTransformationContextSuccessResponse struct {
	Context map[string]interface{} `json:"context"`
}

GetTransformationContextSuccessResponse used by Transformation

type GetTransformationContextXQuery added in v2.1.0

type GetTransformationContextXQuery struct {
	URL string `json:"url,omitempty"`
}

type ListFilesResponse

type ListFilesResponse struct {
	Items []exploreItem `json:"items"`
	Page  page          `json:"page"`
}

ListFilesResponse used by Assets

type ListFilesXQuery

type ListFilesXQuery struct {
	Name        string        `json:"name,omitempty"`
	Path        string        `json:"path,omitempty"`
	Format      string        `json:"format,omitempty"`
	Tags        []interface{} `json:"tags,omitempty"`
	OnlyFiles   bool          `json:"onlyFiles,omitempty"`
	OnlyFolders bool          `json:"onlyFolders,omitempty"`
	PageNo      float64       `json:"pageNo,omitempty"`
	PageSize    float64       `json:"pageSize,omitempty"`
	Sort        string        `json:"sort,omitempty"`
}

type OAuthClient

type OAuthClient struct {
	Config *PixelbinConfig
	Token  string
}

OAuthClient holds OAuth Client details

func NewOAuthClient

func NewOAuthClient(config *PixelbinConfig) *OAuthClient

NewOAuthClient return OAuthClient instance

func (*OAuthClient) GetAccessToken

func (o *OAuthClient) GetAccessToken() string

GetAccessToken returns the access token

type Organization

type Organization struct {
	// contains filtered or unexported fields
}

Organization holds Organization object properties

func NewOrganization

func NewOrganization(config *PixelbinConfig) *Organization

NewOrganization returns new Organization instance

func (*Organization) GetAppOrgDetails

func (c *Organization) GetAppOrgDetails(
	p GetAppOrgDetailsXQuery,
) (map[string]interface{}, error)

summary: Get App Details

description: Get App and org details

params: GetAppOrgDetailsXQuery

type OrganizationDetailSchema

type OrganizationDetailSchema struct {
	ID        float64 `json:"_id"`
	Name      string  `json:"name"`
	CloudName string  `json:"cloudName"`
	OwnerId   string  `json:"ownerId"`
	Active    bool    `json:"active"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt string  `json:"updatedAt"`
}

OrganizationDetailSchema used by Organization

type PixelbinClient

type PixelbinClient struct {
	Config         *PixelbinConfig
	Assets         *Assets
	Organization   *Organization
	Transformation *Transformation
}

PixelbinClient holds all the PixelbinConfig object properties

func NewPixelbinClient

func NewPixelbinClient(config *PixelbinConfig) *PixelbinClient

NewPixelbinClient returns pixelbin service instances

type PixelbinConfig

type PixelbinConfig struct {
	ApiSecret   string
	Domain      string
	OAuthClient *OAuthClient
}

PixelbinConfig provides configuration to a service client instance.

func NewPixelbinConfig

func NewPixelbinConfig(apiSecret, domain string) *PixelbinConfig

NewPixelbinConfig provides pixelbin configuration

func (*PixelbinConfig) GetAccessToken

func (p *PixelbinConfig) GetAccessToken() string

GetAccessToken returns the access token

func (*PixelbinConfig) SetOAuthClient

func (p *PixelbinConfig) SetOAuthClient()

SetOAuthClient sets OAuthClient into pixelbin configuration

type PresignedUrl

type PresignedUrl struct {
	URL    string                 `json:"url"`
	Fields map[string]interface{} `json:"fields"`
}

PresignedUrl used by Assets

type PresignedUrlV2 added in v2.4.0

type PresignedUrlV2 struct {
	URL    string            `json:"url"`
	Fields map[string]string `json:"fields"`
}

PresignedUrlV2 used by Assets

type SignedUploadRequest

type SignedUploadRequest struct {
	Name             string                 `json:"name"`
	Path             string                 `json:"path"`
	Format           string                 `json:"format"`
	Access           AccessEnum             `json:"access"`
	Tags             []string               `json:"tags"`
	Metadata         map[string]interface{} `json:"metadata"`
	Overwrite        bool                   `json:"overwrite"`
	FilenameOverride bool                   `json:"filenameOverride"`
}

SignedUploadRequest used by Assets

type SignedUploadRequestV2 added in v2.4.0

type SignedUploadRequestV2 struct {
	Name             string                 `json:"name"`
	Path             string                 `json:"path"`
	Format           string                 `json:"format"`
	Access           AccessEnum             `json:"access"`
	Tags             []string               `json:"tags"`
	Metadata         map[string]interface{} `json:"metadata"`
	Overwrite        bool                   `json:"overwrite"`
	FilenameOverride bool                   `json:"filenameOverride"`
	Expiry           float64                `json:"expiry"`
}

SignedUploadRequestV2 used by Assets

type SignedUploadResponse

type SignedUploadResponse struct {
	S3PresignedUrl PresignedUrl `json:"s3PresignedUrl"`
}

SignedUploadResponse used by Assets

type SignedUploadV2Response added in v2.4.0

type SignedUploadV2Response struct {
	PresignedUrl PresignedUrlV2 `json:"presignedUrl"`
}

SignedUploadV2Response used by Assets

type Transformation added in v2.1.0

type Transformation struct {
	// contains filtered or unexported fields
}

Transformation holds Transformation object properties

func NewTransformation added in v2.1.0

func NewTransformation(config *PixelbinConfig) *Transformation

NewTransformation returns new Transformation instance

func (*Transformation) GetTransformationContext added in v2.1.0

func (c *Transformation) GetTransformationContext(
	p GetTransformationContextXQuery,
) (map[string]interface{}, error)

summary: Get transformation context

description: Get transformation context

params: GetTransformationContextXQuery

type TransformationModuleResponse

type TransformationModuleResponse struct {
	Identifier  string                 `json:"identifier"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Credentials map[string]interface{} `json:"credentials"`
	Operations  []interface{}          `json:"operations"`
	Enabled     bool                   `json:"enabled"`
}

TransformationModuleResponse used by Assets

type TransformationModulesResponse

type TransformationModulesResponse struct {
	Delimiters Delimiter                               `json:"delimiters"`
	Plugins    map[string]TransformationModuleResponse `json:"plugins"`
	Presets    []interface{}                           `json:"presets"`
}

TransformationModulesResponse used by Assets

type UpdateCredentialsRequest

type UpdateCredentialsRequest struct {
	Credentials map[string]interface{} `json:"credentials"`
}

UpdateCredentialsRequest used by Assets

type UpdateCredentialsXQuery

type UpdateCredentialsXQuery struct {
	PluginId    string                 `json:"pluginId,omitempty"`
	Credentials map[string]interface{} `json:"credentials,omitempty"`
}

type UpdateFileRequest

type UpdateFileRequest struct {
	Name     string                 `json:"name"`
	Path     string                 `json:"path"`
	Access   AccessEnum             `json:"access"`
	IsActive bool                   `json:"isActive"`
	Tags     []string               `json:"tags"`
	Metadata map[string]interface{} `json:"metadata"`
}

UpdateFileRequest used by Assets

type UpdateFileXQuery

type UpdateFileXQuery struct {
	FileId   string                 `json:"fileId,omitempty"`
	Name     string                 `json:"name,omitempty"`
	Path     string                 `json:"path,omitempty"`
	Access   AccessEnum             `json:"access,omitempty"`
	IsActive bool                   `json:"isActive,omitempty"`
	Tags     []string               `json:"tags,omitempty"`
	Metadata map[string]interface{} `json:"metadata,omitempty"`
}

type UpdateFolderRequest

type UpdateFolderRequest struct {
	IsActive bool `json:"isActive"`
}

UpdateFolderRequest used by Assets

type UpdateFolderXQuery

type UpdateFolderXQuery struct {
	FolderId string `json:"folderId,omitempty"`
	IsActive bool   `json:"isActive,omitempty"`
}

type UpdatePresetRequest

type UpdatePresetRequest struct {
	Archived bool `json:"archived"`
}

UpdatePresetRequest used by Assets

type UpdatePresetXQuery

type UpdatePresetXQuery struct {
	PresetName string `json:"presetName,omitempty"`
	Archived   bool   `json:"archived,omitempty"`
}

type UploadResponse

type UploadResponse struct {
	ID        string                 `json:"_id"`
	FileId    string                 `json:"fileId"`
	Name      string                 `json:"name"`
	Path      string                 `json:"path"`
	Format    string                 `json:"format"`
	Size      float64                `json:"size"`
	Access    AccessEnum             `json:"access"`
	Tags      []string               `json:"tags"`
	Metadata  map[string]interface{} `json:"metadata"`
	URL       string                 `json:"url"`
	Thumbnail string                 `json:"thumbnail"`
}

UploadResponse used by Assets

type UrlUploadRequest

type UrlUploadRequest struct {
	URL              string                 `json:"url"`
	Path             string                 `json:"path"`
	Name             string                 `json:"name"`
	Access           AccessEnum             `json:"access"`
	Tags             []string               `json:"tags"`
	Metadata         map[string]interface{} `json:"metadata"`
	Overwrite        bool                   `json:"overwrite"`
	FilenameOverride bool                   `json:"filenameOverride"`
}

UrlUploadRequest used by Assets

type UrlUploadXQuery

type UrlUploadXQuery struct {
	URL              string                 `json:"url,omitempty"`
	Path             string                 `json:"path,omitempty"`
	Name             string                 `json:"name,omitempty"`
	Access           AccessEnum             `json:"access,omitempty"`
	Tags             []string               `json:"tags,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
	Overwrite        bool                   `json:"overwrite,omitempty"`
	FilenameOverride bool                   `json:"filenameOverride,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL