Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2022 v0.1.0 Feb 21, 2022 Changes in this version + var ErrNoResults = errors.New("no results") + var ErrNotFound = errors.New("not found") + var ErrNotImplemented = errors.New("method not implemented") + type FindProfileIDsFunc func(ctx context.Context, params *FindProfilesParams) ([]profile.ID, error) + type FindProfilesFunc func(ctx context.Context, params *FindProfilesParams) ([]profile.Meta, error) + type FindProfilesParams struct + CreatedAtMax time.Time + CreatedAtMin time.Time + Labels profile.Labels + Limit int + Service string + Type profile.ProfileType + func (params *FindProfilesParams) Validate() error + type ListProfilesFunc func(ctx context.Context, pid []profile.ID) (ProfileList, error) + type ListServicesFunc func(ctx context.Context) ([]string, error) + type MultiWriter struct + func NewMultiWriter(writers ...Writer) *MultiWriter + func (mw *MultiWriter) WriteProfile(ctx context.Context, params *WriteProfileParams, r io.Reader) (profile.Meta, error) + type ProfileList interface + Close func() error + Next func() bool + Profile func() (io.Reader, error) + type Reader interface + FindProfileIDs func(ctx context.Context, params *FindProfilesParams) ([]profile.ID, error) + FindProfiles func(ctx context.Context, params *FindProfilesParams) ([]profile.Meta, error) + ListProfiles func(ctx context.Context, pid []profile.ID) (ProfileList, error) + ListServices func(ctx context.Context) ([]string, error) + type Storage interface + type StubReader struct + func (sr *StubReader) FindProfileIDs(ctx context.Context, params *FindProfilesParams) ([]profile.ID, error) + func (sr *StubReader) FindProfiles(ctx context.Context, params *FindProfilesParams) ([]profile.Meta, error) + func (sr *StubReader) ListProfiles(ctx context.Context, pid []profile.ID) (ProfileList, error) + func (sr *StubReader) ListServices(ctx context.Context) ([]string, error) + type StubWriter struct + func (sw *StubWriter) WriteProfile(ctx context.Context, params *WriteProfileParams, r io.Reader) (profile.Meta, error) + type WriteProfileFunc func(ctx context.Context, params *WriteProfileParams, r io.Reader) (profile.Meta, error) + type WriteProfileParams struct + CreatedAt time.Time + ExternalID profile.ID + Labels profile.Labels + Service string + Type profile.ProfileType + func (params *WriteProfileParams) Validate() error + type Writer interface + WriteProfile func(ctx context.Context, params *WriteProfileParams, r io.Reader) (profile.Meta, error)