ns

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AnyNamespace = ""

Variables

View Source
var (
	ErrNoNamespaceToRename   = errors.New("no namespace to rename")
	ErrNamespaceInvalid      = errors.New("invalid namespace")
	ErrCanHaveOnlyOneDefault = errors.New("can have only one default namespace")
	ErrNotYetSupported       = errors.New("not yet supported")

	ErrNoFileToRename = errors.New("no file to rename")
)

Functions

This section is empty.

Types

type Input

type Input interface {
	Name() string
	Read() ([]io.ReadCloser, error)
}

type NamespaceRename

type NamespaceRename struct {
	From string
	To   string
}

func (NamespaceRename) String

func (r NamespaceRename) String() string

func (NamespaceRename) Validate

func (r NamespaceRename) Validate() error

type Rename

type Rename struct {
	Namespaces []NamespaceRename
	Inputs     []Input
	Output     io.Writer
}

func (Rename) Perform

func (r Rename) Perform(ctx context.Context) error

func (Rename) Validate

func (r Rename) Validate() error

Jump to

Keyboard shortcuts

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