perms

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: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdGrant

func NewCmdGrant(f *factory.Factory, runF func(*GrantOptions) error) *cobra.Command

NewCmdGrant constructs the `workspace project perms grant` cobra command.

func NewCmdList

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

NewCmdList constructs the `workspace project perms list` cobra command.

func NewCmdRevoke

func NewCmdRevoke(f *factory.Factory, runF func(*RevokeOptions) error) *cobra.Command

NewCmdRevoke constructs the `workspace project perms revoke` cobra command.

func NewCmdWorkspaceProjectPerms

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

NewCmdWorkspaceProjectPerms returns the `perms` sub-group under `workspace project`.

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`.

type RevokeOptions

type RevokeOptions struct {
	Hostname   string
	Workspace  string
	ProjectKey string
	User       string
	Group      string
	Confirm    bool
}

RevokeOptions carries parsed flags for `workspace project perms revoke`.

Jump to

Keyboard shortcuts

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