Versions in this module Expand all Collapse all v0 v0.2.0 May 18, 2026 Changes in this version + type APIError struct + Detail string + Method string + Path string + StatusCode int + Title string + func (e *APIError) Error() string + type Client struct + func New(baseURL string, opts ...Option) (*Client, error) + func (c *Client) CreateFolder(ctx context.Context, providerURL, folderName string) error + func (c *Client) CreateNode(ctx context.Context, title, category, description string) (Node, error) + func (c *Client) CreateRegistration(ctx context.Context, nodeID string, request RegistrationRequest) (Node, error) + func (c *Client) CurrentUser(ctx context.Context) (User, error) + func (c *Client) DeleteFile(ctx context.Context, providerURL, fileName string) error + func (c *Client) DeleteNode(ctx context.Context, id string) error + func (c *Client) GetNode(ctx context.Context, id string) (Node, error) + func (c *Client) GetNodeFilesProvider(ctx context.Context, nodeID string) (string, error) + func (c *Client) GetStorageFile(ctx context.Context, id string) (StorageFile, error) + func (c *Client) GetUser(ctx context.Context, id string) (User, error) + func (c *Client) ListCurrentUserProjects(ctx context.Context) ([]Node, error) + func (c *Client) ListFileVersions(ctx context.Context, fileID string) ([]FileVersion, error) + func (c *Client) ListNodeAddons(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListNodeChildren(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListNodeComments(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListNodeContributors(ctx context.Context, id string) ([]Contributor, error) + func (c *Client) ListNodeIdentifiers(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListNodeLogs(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListNodeRegistrations(ctx context.Context, id string) ([]Node, error) + func (c *Client) ListPreprints(ctx context.Context, provider string, limit ...int) ([]Node, error) + func (c *Client) ListStorageFiles(ctx context.Context, nodeID string, segments ...string) ([]StorageFile, error) + func (c *Client) ListWikiPages(ctx context.Context, id string) ([]Node, error) + func (c *Client) OpenDownload(ctx context.Context, downloadURL string) (io.ReadCloser, error) + func (c *Client) SearchOSF(ctx context.Context, query string, limit ...int) ([]SearchResult, error) + func (c *Client) UpdateNode(ctx context.Context, id, title, description string) (Node, error) + func (c *Client) UploadFile(ctx context.Context, providerURL, fileName string, content io.Reader, ...) error + type Contributor struct + Attributes ContributorAttributes + ID string + Links Links + Type string + type ContributorAttributes struct + Bibliographic bool + FullName string + Permission string + type FileVersion struct + Attributes FileVersionAttributes + ID string + Links Links + Type string + type FileVersionAttributes struct + DateCreated time.Time + DateModified time.Time + Size int64 + type Links struct + Download string + Next string + Prev string + Related string + Self string + type Node struct + Attributes NodeAttributes + ID string + Links Links + Type string + type NodeAttributes struct + Category string + Description string + Title string + type Option func(*Client) + func WithBearerToken(token string) Option + func WithCredentials(credentials auth.Credentials) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithUsernamePassword(username, password string) Option + type RegistrationRequest struct + Description string + SchemaID string + Title string + type SearchResult struct + Category string + Description string + ID string + Title string + Type string + URL string + type StorageFile struct + Attributes StorageFileAttributes + ID string + Links Links + Type string + func (f StorageFile) DownloadURL() string + type StorageFileAttributes struct + Kind string + Name string + Size int64 + type User struct + Attributes UserAttributes + ID string + Links Links + Type string + type UserAttributes struct + FamilyName string + FullName string + GivenName string