Documentation
¶
Overview ¶
Package perms implements the `bitbottle workspace project perms` command group. Workspace project permissions are a Bitbucket Cloud concept; the optional WorkspaceProjectPermsClient interface gates these commands.
Index ¶
- func NewCmdGrant(f *factory.Factory, runF func(*GrantOptions) error) *cobra.Command
- func NewCmdList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command
- func NewCmdRevoke(f *factory.Factory, runF func(*RevokeOptions) error) *cobra.Command
- func NewCmdWorkspaceProjectPerms(f *factory.Factory) *cobra.Command
- type GrantOptions
- type ListOptions
- type RevokeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdGrant ¶
NewCmdGrant constructs the `workspace project perms grant` cobra command.
func NewCmdList ¶
NewCmdList constructs the `workspace project perms list` cobra command.
func NewCmdRevoke ¶
NewCmdRevoke constructs the `workspace project perms revoke` cobra command.
Types ¶
type GrantOptions ¶
type GrantOptions struct {
Hostname string
Workspace string
ProjectKey string
User string
Group string
Permission string
}
GrantOptions carries parsed flags for `workspace project perms grant`.
type ListOptions ¶
type ListOptions struct {
Output format.OutputConfig
Hostname string
Workspace string
ProjectKey string
Limit int
}
ListOptions carries parsed flags for `workspace project perms list`.
Click to show internal directories.
Click to hide internal directories.