testing

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InactiveAPIServer

type InactiveAPIServer struct{}

InactiveAPIServer (in the auth/testing package) is an implementation of the pachyderm auth api that returns NotActivatedError for all requests. This is meant to be used with local PFS and PPS servers for testing, and should never be used in a real Pachyderm cluster

func (*InactiveAPIServer) Activate

Activate implements the Activate RPC, but just returns NotActivatedError

func (*InactiveAPIServer) AddPipelineReaderToRepoInTransaction

func (a *InactiveAPIServer) AddPipelineReaderToRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, pipeline *pps.Pipeline) error

AddPipelineReaderToRepoInTransaction implements the AddPipelineReaderToRepoInTransaction internal API

func (*InactiveAPIServer) AddPipelineWriterToRepoInTransaction

func (a *InactiveAPIServer) AddPipelineWriterToRepoInTransaction(txnCtx *txncontext.TransactionContext, pipeline *pps.Pipeline) error

AddPipelineWriterToRepoInTransaction implements the AddPipelineWriterToRepoInTransaction internal API

func (*InactiveAPIServer) AddPipelineWriterToSourceRepoInTransaction

func (a *InactiveAPIServer) AddPipelineWriterToSourceRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, pipeline *pps.Pipeline) error

AddPipelineWriterToSourceRepoInTransaction implements the AddPipelineWriterToSourceRepoInTransaction internal API

func (*InactiveAPIServer) Authenticate

Authenticate implements the Authenticate RPC, but just returns NotActivatedError

func (*InactiveAPIServer) Authorize

Authorize implements the Authorize RPC, but just returns NotActivatedError

func (*InactiveAPIServer) AuthorizeInTransaction

AuthorizeInTransaction is the same as the Authorize RPC but for use inside a running transaction. It also returns a NotActivatedError.

func (*InactiveAPIServer) CheckClusterIsAuthorized

func (a *InactiveAPIServer) CheckClusterIsAuthorized(ctx context.Context, p ...auth.Permission) error

CheckClusterIsAuthorized returns nil when auth is not activated

func (*InactiveAPIServer) CheckClusterIsAuthorizedInTransaction

func (a *InactiveAPIServer) CheckClusterIsAuthorizedInTransaction(*txncontext.TransactionContext, ...auth.Permission) error

CheckClusterIsAuthorizedInTransaction returns nil when auth is not activated

func (*InactiveAPIServer) CheckProjectIsAuthorizedInTransaction

func (a *InactiveAPIServer) CheckProjectIsAuthorizedInTransaction(*txncontext.TransactionContext, *pfs.Project, ...auth.Permission) error

CheckProjectIsAuthorizedInTransaction returns nil when auth is not activated

func (*InactiveAPIServer) CheckRepoIsAuthorized

func (a *InactiveAPIServer) CheckRepoIsAuthorized(context.Context, *pfs.Repo, ...auth.Permission) error

CheckRepoIsAuthorized returns nil when auth is not activated

func (*InactiveAPIServer) CheckRepoIsAuthorizedInTransaction

func (a *InactiveAPIServer) CheckRepoIsAuthorizedInTransaction(*txncontext.TransactionContext, *pfs.Repo, ...auth.Permission) error

CheckRepoIsAuthorizedInTransaction returns nil when auth is not activated

func (*InactiveAPIServer) CreateRoleBindingInTransaction

func (a *InactiveAPIServer) CreateRoleBindingInTransaction(*txncontext.TransactionContext, string, []string, *auth.Resource) error

CreateRoleBindingInTransaction implements the CreateRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) Deactivate

Deactivate implements the Deactivate RPC, but just returns NotActivatedError

func (*InactiveAPIServer) DeleteExpiredAuthTokens

DeleteExpiredAuthTokens implements the DeleteExpiredAuthTokens RPC, but just returns NotActivatedError

func (*InactiveAPIServer) DeleteRoleBindingInTransaction

func (a *InactiveAPIServer) DeleteRoleBindingInTransaction(*txncontext.TransactionContext, *auth.Resource) error

DeleteRoleBindingInTransaction implements the DeleteRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) ExtractAuthTokens

ExtractAuthTokens implements the ExtractAuthTokens RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetConfiguration

GetConfiguration implements the GetConfiguration RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetGroups

GetGroups implements the GetGroups RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetGroupsForPrincipal

GetGroupsForPrincipal implements the GetGroups RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetOIDCLogin

GetOIDCLogin implements the GetOIDCLogin RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetPermissions

GetPermissions implements the GetPermissions RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetPermissionsForPrincipal

GetPermissionsForPrincipal implements the GetPermissions RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetPermissionsInTransaction

GetPermissions implements the GetPermissions RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetPipelineAuthTokenInTransaction

func (a *InactiveAPIServer) GetPipelineAuthTokenInTransaction(*txncontext.TransactionContext, *pps.Pipeline) (string, error)

GetPipelineAuthTokenInTransaction is the same as GetAuthToken but for use inside a running transaction.

func (*InactiveAPIServer) GetRobotToken

GetRobotToken implements the GetRobotToken RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetRoleBinding

GetRoleBinding implements the GetRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetRoleBindingInTransaction

GetRoleBindingInTransaction implements the GetRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetRolesForPermission

GetRolesForPermission implements the GetRolesForPermission RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetUsers

GetUsers implements the GetUsers RPC, but just returns NotActivatedError

func (*InactiveAPIServer) ModifyMembers

ModifyMembers implements the ModifyMembers RPC, but just returns NotActivatedError

func (*InactiveAPIServer) ModifyRoleBinding

ModifyRoleBinding implements the ModifyRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) ModifyRoleBindingInTransaction

ModifyRoleBindingInTransaction implements the ModifyRoleBinding RPC, but just returns NotActivatedError

func (*InactiveAPIServer) RemovePipelineReaderFromRepoInTransaction

func (a *InactiveAPIServer) RemovePipelineReaderFromRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, pipeline *pps.Pipeline) error

RemovePipelineReaderToRepoInTransaction implements the RemovePipelineReaderToRepoInTransaction internal API

func (*InactiveAPIServer) RestoreAuthToken

RestoreAuthToken implements the RestoreAuthToken RPC, but just returns NotActivatedError

func (*InactiveAPIServer) RevokeAuthToken

RevokeAuthToken implements the RevokeAuthToken RPC, but just returns NotActivatedError

func (*InactiveAPIServer) RevokeAuthTokenInTransaction

RevokeAuthTokenInTransaction is the same as RevokeAuthToken but for use inside a running transaction

func (*InactiveAPIServer) RevokeAuthTokensForUser

RevokeAuthTokensForUser implements the RevokeAuthTokensForUser RPC, but just returns NotActivatedError

func (*InactiveAPIServer) RotateRootToken

RotateRootToken implements the RotateRootToken RPC, but just returns NotActivatedError

func (*InactiveAPIServer) SetConfiguration

SetConfiguration implements the SetConfiguration RPC, but just returns NotActivatedError

func (*InactiveAPIServer) SetGroupsForUser

SetGroupsForUser implements the SetGroupsForUser RPC, but just returns NotActivatedError

func (*InactiveAPIServer) WhoAmI

WhoAmI implements the WhoAmI RPC, but just returns NotActivatedError

Jump to

Keyboard shortcuts

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