Help us shape the future of Go! Take the 2026 Go Developer Survey

transfer

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package transfer provides import/export helpers for workspace resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Kinds   []string // kinds to transfer (nil = all known kinds)
	Replace bool     // overwrite existing in dest (default true)
}

Options controls which resource kinds are transferred and how.

type Result

type Result struct {
	Copied  int
	Skipped int
	Errors  []error
}

Result summarises a transfer operation.

func Transfer

func Transfer(ctx context.Context, src, dst workspace.Store, opts *Options) (*Result, error)

Transfer copies resources from src to dst for the specified kinds. When opts is nil the defaults are: all kinds, replace=true.

Jump to

Keyboard shortcuts

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