file_migration

package
v3.3.381 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 4 Imported by: 13 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package file_migration is the Files.com API client package for the files_sdk.FileMigration model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

Find calls Client.Find using the default configuration.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the FileMigration API using its embedded Config.

func (*Client) Find

Find calls GET /file_migrations/{id}.

func (*Client) LogIterator

func (c *Client) LogIterator(ctx context.Context, f files_sdk.FileMigration) files_sdk.IterI

LogIterator returns an iterator over the migration log using ctx for cancellation.

func (*Client) Wait

Wait polls the migration once per second until it completes, fails, or a request returns an error. status is called after each successful poll and must be non-nil. WithContext controls cancellation. A failed migration is returned with nil error when the status request itself succeeds; inspect the returned Status.

Jump to

Keyboard shortcuts

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