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 ¶
- func NewCmdMirror(f *factory.Factory) *cobra.Command
- func NewCmdMirrorList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command
- func NewCmdMirrorRepo(f *factory.Factory) *cobra.Command
- func NewCmdMirrorRepoList(f *factory.Factory, runF func(*RepoListOptions) error) *cobra.Command
- func NewCmdMirrorView(f *factory.Factory, runF func(*ViewOptions) error) *cobra.Command
- type ListOptions
- type RepoListOptions
- type ViewOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdMirror ¶
NewCmdMirror returns the top-level `mirror` command.
func NewCmdMirrorList ¶
NewCmdMirrorList constructs the `mirror list` cobra command.
func NewCmdMirrorRepo ¶
NewCmdMirrorRepo returns the `mirror repo` sub-group command.
func NewCmdMirrorRepoList ¶
NewCmdMirrorRepoList constructs the `mirror repo list` cobra command.
func NewCmdMirrorView ¶
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`.