Documentation
¶
Overview ¶
Package perms implements the `bitbottle workspace perms` command group. Workspace permissions are a Bitbucket Cloud concept; the optional WorkspacePermsClient interface gates these commands.
Index ¶
- func NewCmdWorkspacePerms(f *factory.Factory) *cobra.Command
- func NewCmdWorkspacePermsGrant(f *factory.Factory, runF func(*GrantOptions) error) *cobra.Command
- func NewCmdWorkspacePermsList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command
- func NewCmdWorkspacePermsRepo(f *factory.Factory) *cobra.Command
- func NewCmdWorkspacePermsRepoList(f *factory.Factory, runF func(*RepoListOptions) error) *cobra.Command
- func NewCmdWorkspacePermsRevoke(f *factory.Factory, runF func(*RevokeOptions) error) *cobra.Command
- type GrantOptions
- type ListOptions
- type RepoListOptions
- type RevokeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdWorkspacePerms ¶
NewCmdWorkspacePerms returns the `perms` sub-group command.
func NewCmdWorkspacePermsGrant ¶
NewCmdWorkspacePermsGrant constructs the `workspace perms grant` command.
func NewCmdWorkspacePermsList ¶
NewCmdWorkspacePermsList constructs the `workspace perms list` cobra command.
func NewCmdWorkspacePermsRepo ¶
NewCmdWorkspacePermsRepo returns the `workspace perms repo` sub-group.
func NewCmdWorkspacePermsRepoList ¶
func NewCmdWorkspacePermsRepoList(f *factory.Factory, runF func(*RepoListOptions) error) *cobra.Command
NewCmdWorkspacePermsRepoList constructs the `workspace perms repo list` command.
func NewCmdWorkspacePermsRevoke ¶
NewCmdWorkspacePermsRevoke constructs the `workspace perms revoke` command.
Types ¶
type GrantOptions ¶
GrantOptions carries parsed flags for `workspace perms grant`.
type ListOptions ¶
type ListOptions struct {
Output format.OutputConfig
Hostname string
Limit int
Workspace string
}
ListOptions carries parsed flags for `workspace perms list`.
type RepoListOptions ¶
type RepoListOptions struct {
Output format.OutputConfig
Hostname string
Limit int
Workspace string
}
RepoListOptions carries parsed flags for `workspace perms repo list`.