Documentation ¶
Overview ¶
Package client implements a client for the opspec node api
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // AddAuth adds auth AddAuth( ctx context.Context, req model.AddAuthReq, ) error GetEventStream( ctx context.Context, req *model.GetEventStreamReq, ) ( stream chan model.Event, err error, ) // GetData gets data // // expected errs: // - ErrDataProviderAuthentication on authentication failure // - ErrDataProviderAuthorization on authorization failure // - ErrDataRefResolution on resolution failure GetData( ctx context.Context, req model.GetDataReq, ) ( model.ReadSeekCloser, error, ) KillOp( ctx context.Context, req model.KillOpReq, ) ( err error, ) // ListDescendants lists file system entries // // expected errs: // - ErrDataProviderAuthentication on authentication failure // - ErrDataProviderAuthorization on authorization failure // - ErrDataRefResolution on resolution failure ListDescendants( ctx context.Context, req model.ListDescendantsReq, ) ( []*model.DirEntry, error, ) // Liveness ensures liveness of the node Liveness( ctx context.Context, ) error StartOp( ctx context.Context, req model.StartOpReq, ) ( opID string, err error, ) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.