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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdWorkspacePerms

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

NewCmdWorkspacePerms returns the `perms` sub-group command.

func NewCmdWorkspacePermsGrant

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

NewCmdWorkspacePermsGrant constructs the `workspace perms grant` command.

func NewCmdWorkspacePermsList

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

NewCmdWorkspacePermsList constructs the `workspace perms list` cobra command.

func NewCmdWorkspacePermsRepo

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

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

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

NewCmdWorkspacePermsRevoke constructs the `workspace perms revoke` command.

Types

type GrantOptions

type GrantOptions struct {
	Hostname   string
	Workspace  string
	User       string
	Permission string
}

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

type RevokeOptions

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

RevokeOptions carries parsed flags for `workspace perms revoke`.

Jump to

Keyboard shortcuts

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