cmd/uplinkng/ultest: make possible to test access commands

Test external implementation doesn't support OpenAccess
method. This makes imposible to test output of commands like
inspect or share. This implements only basic functionality.

Change-Id: I127ef0bb45a01634bd5265ed80840f8095c72794
This commit is contained in:
Michał Niewrzał 2021-11-22 11:08:41 +01:00 committed by Michal Niewrzal
parent 24cf7e8ea6
commit 8f07abafe0

View File

@ -32,3 +32,7 @@ func (ex *external) OpenFilesystem(ctx context.Context, access string, options .
func (ex *external) OpenProject(ctx context.Context, access string, options ...ulext.Option) (*uplink.Project, error) {
return ex.project, nil
}
func (ex *external) OpenAccess(accessName string) (access *uplink.Access, err error) {
return uplink.ParseAccess(accessName)
}