Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigNotFound = stderrors.New("config not found")
)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Init(ctx context.Context) error SetCurrentStore(ctx context.Context, storeID string) error CurrentStoreID(ctx context.Context) (maybe.Maybe[StoreID], error) CurrentStorePath(ctx context.Context) (maybe.Maybe[string], error) GostoreLocation(ctx context.Context) string ListStores(ctx context.Context) ([]StoreView, error) StoreByID(ctx context.Context, storeID StoreID) (maybe.Maybe[StoreView], error) AddIdentity(ctx context.Context, identities ...encryption.Identity) error AddStore(ctx context.Context, storeID StoreID, path string) error ImportRawIdentity(ctx context.Context, provider encryption.Provider, data []byte) error ExportRawIdentity(ctx context.Context, recipients ...encryption.Recipient) ([][]byte, error) RemoveStore(ctx context.Context, storeID StoreID) error store.IdentityProvider }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.