testing

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 2 Imported by: 2

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

func (a *InactiveAPIServer) Activate(ctx context.Context, req *auth.ActivateRequest) (resp *auth.ActivateResponse, retErr error)

Activate implements the Pachdyerm Auth Activate RPC, but just returns NotActivatedError

func (*InactiveAPIServer) Authenticate

func (a *InactiveAPIServer) Authenticate(ctx context.Context, req *auth.AuthenticateRequest) (resp *auth.AuthenticateResponse, retErr error)

Authenticate implements the Pachdyerm Auth Authenticate RPC, but just returns NotActivatedError

func (*InactiveAPIServer) Authorize

func (a *InactiveAPIServer) Authorize(ctx context.Context, req *auth.AuthorizeRequest) (resp *auth.AuthorizeResponse, retErr error)

Authorize implements the Pachdyerm Auth Authorize RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetACL

func (a *InactiveAPIServer) GetACL(ctx context.Context, req *auth.GetACLRequest) (resp *auth.GetACLResponse, retErr error)

GetACL implements the Pachdyerm Auth GetACL RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetCapability

func (a *InactiveAPIServer) GetCapability(ctx context.Context, req *auth.GetCapabilityRequest) (resp *auth.GetCapabilityResponse, retErr error)

GetCapability implements the Pachdyerm Auth GetCapability RPC, but just returns NotActivatedError

func (*InactiveAPIServer) GetScope

func (a *InactiveAPIServer) GetScope(ctx context.Context, req *auth.GetScopeRequest) (resp *auth.GetScopeResponse, retErr error)

GetScope implements the Pachdyerm Auth GetScope RPC, but just returns NotActivatedError

func (*InactiveAPIServer) RevokeAuthToken

func (a *InactiveAPIServer) RevokeAuthToken(ctx context.Context, req *auth.RevokeAuthTokenRequest) (resp *auth.RevokeAuthTokenResponse, retErr error)

RevokeAuthToken implements the Pachdyerm Auth RevokeAuthToken RPC, but just returns NotActivatedError

func (*InactiveAPIServer) SetACL added in v1.5.3

func (a *InactiveAPIServer) SetACL(ctx context.Context, req *auth.SetACLRequest) (resp *auth.SetACLResponse, retErr error)

SetACL implements the Pachdyerm Auth SetACL RPC, but just returns NotActivatedError

func (*InactiveAPIServer) SetScope

func (a *InactiveAPIServer) SetScope(ctx context.Context, req *auth.SetScopeRequest) (resp *auth.SetScopeResponse, retErr error)

SetScope implements the Pachdyerm Auth SetScope RPC, but just returns NotActivatedError

func (*InactiveAPIServer) WhoAmI

func (a *InactiveAPIServer) WhoAmI(ctx context.Context, req *auth.WhoAmIRequest) (resp *auth.WhoAmIResponse, retErr error)

WhoAmI implements the Pachdyerm Auth WhoAmI RPC, but just returns NotActivatedError

Jump to

Keyboard shortcuts

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