Versions in this module Expand all Collapse all v1 v1.0.0 Mar 11, 2024 Changes in this version + type BatchResoponse struct + Results []map[string]interface{} + type CloudItem struct + Accessed float64 + Created float64 + Id string + Immutable PuterIntBool + IsDir PuterIntBool + IsPending bool + IsSymlink PuterIntBool + LastStat time.Time + LocalUID string + Metadata interface{} + Modified float64 + Name string + Path string + RemoteUID string + Size uint64 + SymlinkPath string + Type string + type Operation map[string]interface + type PuterIntBool bool + func (b *PuterIntBool) UnmarshalJSON(data []byte) error + type PuterSDK struct + Client *http.Client + PuterAuthToken string + Url string + func (sdk *PuterSDK) Batch(operations []Operation, blobs [][]byte) (*BatchResoponse, error) + func (sdk *PuterSDK) Delete(path string) (err error) + func (sdk *PuterSDK) GetEndpointURL(name string) *url.URL + func (sdk *PuterSDK) Init() + func (sdk *PuterSDK) Mkdir(path string) (cloudItem CloudItem, err error) + func (sdk *PuterSDK) Move(sourcePath, dstPath, newName string) (cloudItem CloudItem, err error) + func (sdk *PuterSDK) Read(path string) (data []byte, err error) + func (sdk *PuterSDK) ReadStream(path string) (reader io.ReadCloser, err error) + func (sdk *PuterSDK) Readdir(logger debug.ILogger, path string) (items []CloudItem, err error) + func (sdk *PuterSDK) Stat(path string) (cloudItem CloudItem, err error) + func (sdk *PuterSDK) Symlink(path, target string) (*CloudItem, error) + func (sdk *PuterSDK) Write(path string, data []byte) (*CloudItem, error) + type PuterSDKReaddirRequestPayload struct + Path string