Documentation ¶
Index ¶
- type InactiveAPIServer
- func (a *InactiveAPIServer) Activate(context.Context, *auth.ActivateRequest) (*auth.ActivateResponse, error)
- func (a *InactiveAPIServer) AddPipelineReaderToRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, ...) error
- func (a *InactiveAPIServer) AddPipelineWriterToRepoInTransaction(txnCtx *txncontext.TransactionContext, pipeline *pps.Pipeline) error
- func (a *InactiveAPIServer) AddPipelineWriterToSourceRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, ...) error
- func (a *InactiveAPIServer) Authenticate(context.Context, *auth.AuthenticateRequest) (*auth.AuthenticateResponse, error)
- func (a *InactiveAPIServer) Authorize(context.Context, *auth.AuthorizeRequest) (*auth.AuthorizeResponse, error)
- func (a *InactiveAPIServer) AuthorizeInTransaction(*txncontext.TransactionContext, *auth.AuthorizeRequest) (*auth.AuthorizeResponse, error)
- func (a *InactiveAPIServer) CheckClusterIsAuthorized(ctx context.Context, p ...auth.Permission) error
- func (a *InactiveAPIServer) CheckClusterIsAuthorizedInTransaction(*txncontext.TransactionContext, ...auth.Permission) error
- func (a *InactiveAPIServer) CheckProjectIsAuthorizedInTransaction(*txncontext.TransactionContext, *pfs.Project, ...auth.Permission) error
- func (a *InactiveAPIServer) CheckRepoIsAuthorized(context.Context, *pfs.Repo, ...auth.Permission) error
- func (a *InactiveAPIServer) CheckRepoIsAuthorizedInTransaction(*txncontext.TransactionContext, *pfs.Repo, ...auth.Permission) error
- func (a *InactiveAPIServer) CreateRoleBindingInTransaction(*txncontext.TransactionContext, string, []string, *auth.Resource) error
- func (a *InactiveAPIServer) Deactivate(context.Context, *auth.DeactivateRequest) (*auth.DeactivateResponse, error)
- func (a *InactiveAPIServer) DeleteExpiredAuthTokens(context.Context, *auth.DeleteExpiredAuthTokensRequest) (*auth.DeleteExpiredAuthTokensResponse, error)
- func (a *InactiveAPIServer) DeleteRoleBindingInTransaction(*txncontext.TransactionContext, *auth.Resource) error
- func (a *InactiveAPIServer) ExtractAuthTokens(context.Context, *auth.ExtractAuthTokensRequest) (*auth.ExtractAuthTokensResponse, error)
- func (a *InactiveAPIServer) GetConfiguration(context.Context, *auth.GetConfigurationRequest) (*auth.GetConfigurationResponse, error)
- func (a *InactiveAPIServer) GetGroups(context.Context, *auth.GetGroupsRequest) (*auth.GetGroupsResponse, error)
- func (a *InactiveAPIServer) GetGroupsForPrincipal(context.Context, *auth.GetGroupsForPrincipalRequest) (*auth.GetGroupsResponse, error)
- func (a *InactiveAPIServer) GetOIDCLogin(context.Context, *auth.GetOIDCLoginRequest) (*auth.GetOIDCLoginResponse, error)
- func (a *InactiveAPIServer) GetPermissions(context.Context, *auth.GetPermissionsRequest) (*auth.GetPermissionsResponse, error)
- func (a *InactiveAPIServer) GetPermissionsForPrincipal(context.Context, *auth.GetPermissionsForPrincipalRequest) (*auth.GetPermissionsResponse, error)
- func (a *InactiveAPIServer) GetPermissionsInTransaction(*txncontext.TransactionContext, *auth.GetPermissionsRequest) (*auth.GetPermissionsResponse, error)
- func (a *InactiveAPIServer) GetPipelineAuthTokenInTransaction(*txncontext.TransactionContext, *pps.Pipeline) (string, error)
- func (a *InactiveAPIServer) GetRobotToken(context.Context, *auth.GetRobotTokenRequest) (*auth.GetRobotTokenResponse, error)
- func (a *InactiveAPIServer) GetRoleBinding(context.Context, *auth.GetRoleBindingRequest) (*auth.GetRoleBindingResponse, error)
- func (a *InactiveAPIServer) GetRoleBindingInTransaction(*txncontext.TransactionContext, *auth.GetRoleBindingRequest) (*auth.GetRoleBindingResponse, error)
- func (a *InactiveAPIServer) GetRolesForPermission(context.Context, *auth.GetRolesForPermissionRequest) (*auth.GetRolesForPermissionResponse, error)
- func (a *InactiveAPIServer) GetUsers(context.Context, *auth.GetUsersRequest) (*auth.GetUsersResponse, error)
- func (a *InactiveAPIServer) ModifyMembers(context.Context, *auth.ModifyMembersRequest) (*auth.ModifyMembersResponse, error)
- func (a *InactiveAPIServer) ModifyRoleBinding(context.Context, *auth.ModifyRoleBindingRequest) (*auth.ModifyRoleBindingResponse, error)
- func (a *InactiveAPIServer) ModifyRoleBindingInTransaction(*txncontext.TransactionContext, *auth.ModifyRoleBindingRequest) (*auth.ModifyRoleBindingResponse, error)
- func (a *InactiveAPIServer) RemovePipelineReaderFromRepoInTransaction(txnCtx *txncontext.TransactionContext, sourceRepo *pfs.Repo, ...) error
- func (a *InactiveAPIServer) RestoreAuthToken(context.Context, *auth.RestoreAuthTokenRequest) (*auth.RestoreAuthTokenResponse, error)
- func (a *InactiveAPIServer) RevokeAuthToken(context.Context, *auth.RevokeAuthTokenRequest) (*auth.RevokeAuthTokenResponse, error)
- func (a *InactiveAPIServer) RevokeAuthTokenInTransaction(*txncontext.TransactionContext, *auth.RevokeAuthTokenRequest) (*auth.RevokeAuthTokenResponse, error)
- func (a *InactiveAPIServer) RevokeAuthTokensForUser(context.Context, *auth.RevokeAuthTokensForUserRequest) (*auth.RevokeAuthTokensForUserResponse, error)
- func (a *InactiveAPIServer) RotateRootToken(context.Context, *auth.RotateRootTokenRequest) (*auth.RotateRootTokenResponse, error)
- func (a *InactiveAPIServer) SetConfiguration(context.Context, *auth.SetConfigurationRequest) (*auth.SetConfigurationResponse, error)
- func (a *InactiveAPIServer) SetGroupsForUser(context.Context, *auth.SetGroupsForUserRequest) (*auth.SetGroupsForUserResponse, error)
- func (a *InactiveAPIServer) WhoAmI(context.Context, *auth.WhoAmIRequest) (*auth.WhoAmIResponse, error)
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 ¶
func (a *InactiveAPIServer) Activate(context.Context, *auth.ActivateRequest) (*auth.ActivateResponse, error)
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 ¶
func (a *InactiveAPIServer) Authenticate(context.Context, *auth.AuthenticateRequest) (*auth.AuthenticateResponse, error)
Authenticate implements the Authenticate RPC, but just returns NotActivatedError
func (*InactiveAPIServer) Authorize ¶
func (a *InactiveAPIServer) Authorize(context.Context, *auth.AuthorizeRequest) (*auth.AuthorizeResponse, error)
Authorize implements the Authorize RPC, but just returns NotActivatedError
func (*InactiveAPIServer) AuthorizeInTransaction ¶
func (a *InactiveAPIServer) AuthorizeInTransaction(*txncontext.TransactionContext, *auth.AuthorizeRequest) (*auth.AuthorizeResponse, error)
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 ¶
func (a *InactiveAPIServer) Deactivate(context.Context, *auth.DeactivateRequest) (*auth.DeactivateResponse, error)
Deactivate implements the Deactivate RPC, but just returns NotActivatedError
func (*InactiveAPIServer) DeleteExpiredAuthTokens ¶
func (a *InactiveAPIServer) DeleteExpiredAuthTokens(context.Context, *auth.DeleteExpiredAuthTokensRequest) (*auth.DeleteExpiredAuthTokensResponse, error)
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 ¶
func (a *InactiveAPIServer) ExtractAuthTokens(context.Context, *auth.ExtractAuthTokensRequest) (*auth.ExtractAuthTokensResponse, error)
ExtractAuthTokens implements the ExtractAuthTokens RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetConfiguration ¶
func (a *InactiveAPIServer) GetConfiguration(context.Context, *auth.GetConfigurationRequest) (*auth.GetConfigurationResponse, error)
GetConfiguration implements the GetConfiguration RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetGroups ¶
func (a *InactiveAPIServer) GetGroups(context.Context, *auth.GetGroupsRequest) (*auth.GetGroupsResponse, error)
GetGroups implements the GetGroups RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetGroupsForPrincipal ¶
func (a *InactiveAPIServer) GetGroupsForPrincipal(context.Context, *auth.GetGroupsForPrincipalRequest) (*auth.GetGroupsResponse, error)
GetGroupsForPrincipal implements the GetGroups RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetOIDCLogin ¶
func (a *InactiveAPIServer) GetOIDCLogin(context.Context, *auth.GetOIDCLoginRequest) (*auth.GetOIDCLoginResponse, error)
GetOIDCLogin implements the GetOIDCLogin RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetPermissions ¶
func (a *InactiveAPIServer) GetPermissions(context.Context, *auth.GetPermissionsRequest) (*auth.GetPermissionsResponse, error)
GetPermissions implements the GetPermissions RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetPermissionsForPrincipal ¶
func (a *InactiveAPIServer) GetPermissionsForPrincipal(context.Context, *auth.GetPermissionsForPrincipalRequest) (*auth.GetPermissionsResponse, error)
GetPermissionsForPrincipal implements the GetPermissions RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetPermissionsInTransaction ¶
func (a *InactiveAPIServer) GetPermissionsInTransaction(*txncontext.TransactionContext, *auth.GetPermissionsRequest) (*auth.GetPermissionsResponse, error)
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 ¶
func (a *InactiveAPIServer) GetRobotToken(context.Context, *auth.GetRobotTokenRequest) (*auth.GetRobotTokenResponse, error)
GetRobotToken implements the GetRobotToken RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetRoleBinding ¶
func (a *InactiveAPIServer) GetRoleBinding(context.Context, *auth.GetRoleBindingRequest) (*auth.GetRoleBindingResponse, error)
GetRoleBinding implements the GetRoleBinding RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetRoleBindingInTransaction ¶
func (a *InactiveAPIServer) GetRoleBindingInTransaction(*txncontext.TransactionContext, *auth.GetRoleBindingRequest) (*auth.GetRoleBindingResponse, error)
GetRoleBindingInTransaction implements the GetRoleBinding RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetRolesForPermission ¶
func (a *InactiveAPIServer) GetRolesForPermission(context.Context, *auth.GetRolesForPermissionRequest) (*auth.GetRolesForPermissionResponse, error)
GetRolesForPermission implements the GetRolesForPermission RPC, but just returns NotActivatedError
func (*InactiveAPIServer) GetUsers ¶
func (a *InactiveAPIServer) GetUsers(context.Context, *auth.GetUsersRequest) (*auth.GetUsersResponse, error)
GetUsers implements the GetUsers RPC, but just returns NotActivatedError
func (*InactiveAPIServer) ModifyMembers ¶
func (a *InactiveAPIServer) ModifyMembers(context.Context, *auth.ModifyMembersRequest) (*auth.ModifyMembersResponse, error)
ModifyMembers implements the ModifyMembers RPC, but just returns NotActivatedError
func (*InactiveAPIServer) ModifyRoleBinding ¶
func (a *InactiveAPIServer) ModifyRoleBinding(context.Context, *auth.ModifyRoleBindingRequest) (*auth.ModifyRoleBindingResponse, error)
ModifyRoleBinding implements the ModifyRoleBinding RPC, but just returns NotActivatedError
func (*InactiveAPIServer) ModifyRoleBindingInTransaction ¶
func (a *InactiveAPIServer) ModifyRoleBindingInTransaction(*txncontext.TransactionContext, *auth.ModifyRoleBindingRequest) (*auth.ModifyRoleBindingResponse, error)
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 ¶
func (a *InactiveAPIServer) RestoreAuthToken(context.Context, *auth.RestoreAuthTokenRequest) (*auth.RestoreAuthTokenResponse, error)
RestoreAuthToken implements the RestoreAuthToken RPC, but just returns NotActivatedError
func (*InactiveAPIServer) RevokeAuthToken ¶
func (a *InactiveAPIServer) RevokeAuthToken(context.Context, *auth.RevokeAuthTokenRequest) (*auth.RevokeAuthTokenResponse, error)
RevokeAuthToken implements the RevokeAuthToken RPC, but just returns NotActivatedError
func (*InactiveAPIServer) RevokeAuthTokenInTransaction ¶
func (a *InactiveAPIServer) RevokeAuthTokenInTransaction(*txncontext.TransactionContext, *auth.RevokeAuthTokenRequest) (*auth.RevokeAuthTokenResponse, error)
RevokeAuthTokenInTransaction is the same as RevokeAuthToken but for use inside a running transaction
func (*InactiveAPIServer) RevokeAuthTokensForUser ¶
func (a *InactiveAPIServer) RevokeAuthTokensForUser(context.Context, *auth.RevokeAuthTokensForUserRequest) (*auth.RevokeAuthTokensForUserResponse, error)
RevokeAuthTokensForUser implements the RevokeAuthTokensForUser RPC, but just returns NotActivatedError
func (*InactiveAPIServer) RotateRootToken ¶
func (a *InactiveAPIServer) RotateRootToken(context.Context, *auth.RotateRootTokenRequest) (*auth.RotateRootTokenResponse, error)
RotateRootToken implements the RotateRootToken RPC, but just returns NotActivatedError
func (*InactiveAPIServer) SetConfiguration ¶
func (a *InactiveAPIServer) SetConfiguration(context.Context, *auth.SetConfigurationRequest) (*auth.SetConfigurationResponse, error)
SetConfiguration implements the SetConfiguration RPC, but just returns NotActivatedError
func (*InactiveAPIServer) SetGroupsForUser ¶
func (a *InactiveAPIServer) SetGroupsForUser(context.Context, *auth.SetGroupsForUserRequest) (*auth.SetGroupsForUserResponse, error)
SetGroupsForUser implements the SetGroupsForUser RPC, but just returns NotActivatedError
func (*InactiveAPIServer) WhoAmI ¶
func (a *InactiveAPIServer) WhoAmI(context.Context, *auth.WhoAmIRequest) (*auth.WhoAmIResponse, error)
WhoAmI implements the WhoAmI RPC, but just returns NotActivatedError