copy

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package copy provides the copy command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(builder Builder) *cobra.Command

Command returns the BindPlane copy cobra command.

func ConfigurationCommand

func ConfigurationCommand(builder Builder) *cobra.Command

ConfigurationCommand returns the BindPlane Copy Configuration cobra command.

Types

type Builder

type Builder interface {
	// Build returns a new Copier.
	BuildCopier(ctx context.Context) (Copier, error)
}

Builder is an interface for building a Copier.

type Copier

type Copier interface {
	// CopyConfig copies a configuration.
	CopyConfig(ctx context.Context, name, newName string) error
}

Copier is an interface for copying resources.

func NewCopier

func NewCopier(client client.BindPlane) Copier

NewCopier returns a new Copier.

Jump to

Keyboard shortcuts

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