mirror

package
v1.135.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mirror implements the `bitbottle mirror` command group. Smart Mirror is a Bitbucket Server/DC feature; the optional MirrorClient interface gates these commands so an invocation against a Cloud host surfaces a typed ErrUnsupportedOnHost rather than a runtime panic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdMirror

func NewCmdMirror(f *factory.Factory) *cobra.Command

NewCmdMirror returns the top-level `mirror` command.

func NewCmdMirrorList

func NewCmdMirrorList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command

NewCmdMirrorList constructs the `mirror list` cobra command.

func NewCmdMirrorRepo

func NewCmdMirrorRepo(f *factory.Factory) *cobra.Command

NewCmdMirrorRepo returns the `mirror repo` sub-group command.

func NewCmdMirrorRepoList

func NewCmdMirrorRepoList(f *factory.Factory, runF func(*RepoListOptions) error) *cobra.Command

NewCmdMirrorRepoList constructs the `mirror repo list` cobra command.

func NewCmdMirrorView

func NewCmdMirrorView(f *factory.Factory, runF func(*ViewOptions) error) *cobra.Command

NewCmdMirrorView constructs the `mirror view` cobra command.

Types

type ListOptions

type ListOptions struct {
	Output   format.OutputConfig
	Hostname string
	Limit    int
}

ListOptions carries parsed flags for `mirror list`.

type RepoListOptions

type RepoListOptions struct {
	Output   format.OutputConfig
	Hostname string
	Limit    int
	MirrorID string
}

RepoListOptions carries parsed flags for `mirror repo list`.

type ViewOptions

type ViewOptions struct {
	Output   format.OutputConfig
	Hostname string
	ID       string
}

ViewOptions carries parsed flags for `mirror view`.

Jump to

Keyboard shortcuts

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