Versions in this module Expand all Collapse all v1 v1.1.0 Aug 13, 2020 Changes in this version + const DefaultPortalURL + const URISkynetPrefix + var DefaultAddSkykeyOptions = AddSkykeyOptions + var DefaultConvertOptions = ConvertOptions + var DefaultCreateSkykeyOptions = CreateSkykeyOptions + var DefaultDownloadOptions = DownloadOptions + var DefaultGetBlocklistOptions = GetBlocklistOptions + var DefaultGetPortalsOptions = GetPortalsOptions + var DefaultGetSkykeyOptions = GetSkykeyOptions + var DefaultGetSkykeysOptions = GetSkykeysOptions + var DefaultGetStatsOptions = GetStatsOptions + var DefaultLsOptions = LsOptions + var DefaultMetadataOptions = MetadataOptions + var DefaultPinOptions = PinOptions + var DefaultUnpinOptions = UnpinOptions + var DefaultUpdateBlocklistOptions = GetBlocklistOptions + var DefaultUpdatePortalsOptions = GetPortalsOptions + var DefaultUploadOptions = UploadOptions + var ErrResponseError = errors.New("error response") + func AddSkykey(skykey string, opts AddSkykeyOptions) error + func Convert(srcSiaPath, destSiaPath string, opts ConvertOptions) (string, error) + func Download(skylink string, opts DownloadOptions) (io.ReadCloser, error) + func DownloadFile(path, skylink string, opts DownloadOptions) (err error) + func GetBlocklist(opts GetBlocklistOptions) ([]string, error) + func GetStats(opts GetStatsOptions) error + func Ls(siaPath string, opts LsOptions) error + func Metadata(skylink string, opts MetadataOptions) error + func Pin(skylink, destSiaPath string, opts PinOptions) error + func Unpin(siaPath string, opts UnpinOptions) error + func UpdateBlocklist(additions, removals []string, opts UpdateBlocklistOptions) error + func UpdatePortals(additions []Portal, removals []string, opts UpdatePortalsOptions) error + func Upload(uploadData UploadData, opts UploadOptions) (skylink string, err error) + func UploadDirectory(path string, opts UploadOptions) (skylink string, err error) + func UploadFile(path string, opts UploadOptions) (skylink string, err error) + type AddSkykeyOptions struct + type ConvertOptions struct + type CreateSkykeyOptions struct + type CreateSkykeyResponse Skykey + type DownloadOptions struct + SkykeyID string + SkykeyName string + type ErrorResponse struct + Message string + type GetBlocklistOptions struct + type GetPortalsOptions struct + type GetSkykeyOptions struct + type GetSkykeyResponse Skykey + type GetSkykeysOptions struct + type GetSkykeysResponse struct + Skykeys []Skykey + type GetStatsOptions struct + type LsOptions struct + EndpointPathLsDir string + EndpointPathLsFile string + type MetadataOptions struct + type Options struct + APIKey string + CustomUserAgent string + EndpointPath string + PortalURL string + func DefaultOptions(endpointPath string) Options + type PinOptions struct + type Portal struct + Address string + Public bool + func GetPortals(opts GetPortalsOptions) ([]Portal, error) + type Skykey struct + ID string + Name string + Skykey string + Type string + func CreateSkykey(name, skykeyType string, opts CreateSkykeyOptions) (Skykey, error) + func GetSkykeyByID(id string, opts GetSkykeyOptions) (Skykey, error) + func GetSkykeyByName(name string, opts GetSkykeyOptions) (Skykey, error) + func GetSkykeys(opts GetSkykeysOptions) ([]Skykey, error) + type UnpinOptions struct + EndpointPathUnpinDir string + EndpointPathUnpinFile string + type UpdateBlocklistOptions struct + type UpdatePortalsOptions struct + type UploadData map[string]io.Reader + type UploadOptions struct + CustomDirname string + CustomFilename string + PortalDirectoryFileFieldName string + PortalFileFieldName string + SkykeyID string + SkykeyName string + type UploadResponse struct + Skylink string Other modules containing this package github.com/NebulousLabs/go-skynet/v2