cmds

package
v2.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateCmd

func ActivateCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

ActivateCmd returns a cobra.Command to activate Pachyderm's auth system

func CheckProjectCmd

func CheckProjectCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

CheckProjectCmd returns a cobra command that sends a GetPermissions request to pachd to determine what permissions a user has on the project.

func CheckRepoCmd

func CheckRepoCmd(ctx context.Context, pachCtx *config.Context, pachctlCfg *pachctl.Config) *cobra.Command

CheckRepoCmd returns a cobra command that sends a GetPermissions request to pachd to determine what permissions a user has on the repo.

func Cmds

func Cmds(mainCtx context.Context, pachCtx *config.Context, pachctlCfg *pachctl.Config) []*cobra.Command

Cmds returns a list of cobra commands for authenticating and authorizing users in an auth-enabled Pachyderm cluster.

func DeactivateCmd

func DeactivateCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

DeactivateCmd returns a cobra.Command to delete all ACLs, tokens, and admins, deactivating Pachyderm's auth system

func GetClusterRoleBindingCmd

func GetClusterRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetClusterRoleBindingCmd returns a cobra command that gets the role bindings for a resource

func GetConfigCmd

func GetConfigCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetConfigCmd returns a cobra command that lets the caller see the configured auth backends in Pachyderm

func GetEnterpriseRoleBindingCmd

func GetEnterpriseRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetEnterpriseRoleBindingCmd returns a cobra command that gets the role bindings for a resource

func GetGroupsCmd

func GetGroupsCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

func GetProjectRoleBindingCmd

func GetProjectRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetProjectRoleBindingCmd returns a cobra command that gets the role bindings for a resource

func GetRepoRoleBindingCmd

func GetRepoRoleBindingCmd(ctx context.Context, pachCtx *config.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetRepoRoleBindingCmd returns a cobra command that gets the role bindings for a repo

func GetRobotTokenCmd

func GetRobotTokenCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

GetRobotTokenCmd returns a cobra command that lets a user get a pachyderm token on behalf of themselves or another user

func LoginCmd

func LoginCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

LoginCmd returns a cobra.Command to login to a Pachyderm cluster with your GitHub account. Any resources that have been restricted to the email address registered with your GitHub account will subsequently be accessible.

func LogoutCmd

func LogoutCmd() *cobra.Command

LogoutCmd returns a cobra.Command that deletes your local Pachyderm credential, logging you out of your cluster. Note that this is not necessary to do before logging in as another user, but is useful for testing.

func RevokeCmd

func RevokeCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

RevokeCmd returns a cobra.Command that revokes a Pachyderm token.

func RolesForPermissionCmd

func RolesForPermissionCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

RolesForPermissionCmd lists the roles that would give a user a specific permission

func RotateRootToken

func RotateRootToken(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

RotateRootToken returns a cobra command that rotates the auth token for the Root User

func SetClusterRoleBindingCmd

func SetClusterRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

SetClusterRoleBindingCmd returns a cobra command that sets the roles for a user on a resource

func SetConfigCmd

func SetConfigCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

SetConfigCmd returns a cobra command that lets the caller configure auth backends in Pachyderm

func SetEnterpriseRoleBindingCmd

func SetEnterpriseRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

SetEnterpriseRoleBindingCmd returns a cobra command that sets the roles for a user on a resource

func SetProjectRoleBindingCmd

func SetProjectRoleBindingCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

SetProjectRoleBindingCmd returns a cobra command that sets the roles for a user on a project

func SetRepoRoleBindingCmd

func SetRepoRoleBindingCmd(ctx context.Context, pachCtx *config.Context, pachctlCfg *pachctl.Config) *cobra.Command

SetRepoRoleBindingCmd returns a cobra command that sets the roles for a user on a repo

func UseAuthTokenCmd

func UseAuthTokenCmd() *cobra.Command

UseAuthTokenCmd returns a cobra command that lets a user get a pachyderm token on behalf of themselves or another user

func WhoamiCmd

func WhoamiCmd(ctx context.Context, pachctlCfg *pachctl.Config) *cobra.Command

WhoamiCmd returns a cobra.Command that deletes your local Pachyderm credential, logging you out of your cluster. Note that this is not necessary to do before logging in as another user, but is useful for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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