Discover Packages
github.com/podops/podops
client
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Mar 20, 2022
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Del(url, cmd, token, request)
Delete(parent, asset)
Get(url, cmd, token, response)
Init(userid, parent)
List(parent)
Post(url, cmd, token, request, response)
Put(url, cmd, token, request, response)
Sync(parent, root, purge)
Upload(parent, path)
UploadRequest(url, token, form, path)
Types
Source Files
Documentation
Documentation
¶
func Del(url, cmd, token string, request interface{}) (int, error)
func Delete(parent, asset string) error
func Get(url, cmd, token string, response interface{}) (int, error)
func Init(userid, parent string) (*settings.DialSettings, error)
func List(parent string) (*[]metadata.Metadata, error)
func Post(url, cmd, token string, request, response interface{}) (int, error)
func Put(url, cmd, token string, request, response interface{}) (int, error)
func Sync(parent, root string, purge bool) error
func Upload(parent, path string) error
func UploadRequest(url, token, form, path string) (*http.Request, error)
DELETE is used to request the deletion of a resource. Maybe apayload, no response!
Get is used to request data from the API. No payload, only queries!
List returns a list of media resources on the remote content endpoint.
func Post(url, cmd, token string , request, response interface{}) (int , error )
Post is used to invoke an API method using http POST
func Put(url, cmd, token string , request, response interface{}) (int , error )
Put is used to invoke an API method using http PUT
Sync synchronizes a local repository against the remote content endpoint. All local resources that
are missing on the remote site will be uploaded, already existing ones are ignored.
Only media files (e.g. .mp3, .png) are synchronized.
Upload moves a file from the local file system to the CDN. The file is placed in
a location specified by parent. The location has to exist beforehand otherwise the
API endpoint will return an error.
Creates a new file upload http request with optional extra params
Source Files
¶
Click to show internal directories.
Click to hide internal directories.