Skip to content

Latest commit

 

History

History
575 lines (382 loc) · 23.3 KB

File metadata and controls

575 lines (382 loc) · 23.3 KB

cinterface

import "github.com/image357/password/cinterface"

Index

func CPWD__Check(id *C.cchar_t, password *C.cchar_t, key *C.cchar_t, result *C.bool) int

CPWD__Check calls password.Check and returns 0 on success, -1 on error. The result will be stored via the result pointer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__Clean() int

CPWD__Clean calls password.Clean and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__Delete(id *C.cchar_t) int

CPWD__Delete calls password.Delete and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__DisableHashing()

CPWD__DisableHashing calls password.DisableHashing.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__DisableRecovery()

CPWD__DisableRecovery calls password.DisableRecovery.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__DumpJSON(buffer *C.char, length int) int

CPWD__DumpJSON calls password.DumpJSON and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__EnableHashing()

CPWD__EnableHashing calls password.EnableHashing.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__EnableRecovery(key *C.cchar_t)

CPWD__EnableRecovery calls password.EnableRecovery.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__EnableTLS(certFile *C.cchar_t, keyFile *C.cchar_t)

CPWD__EnableTLS calls rest.EnableTLS.

For full documentation visit https://github.com/image357/password/blob/main/docs/rest.md

func CPWD__Exists(id *C.cchar_t, result *C.bool) int

CPWD__Exists calls password.Exists and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__FilePath(id *C.cchar_t, buffer *C.char, length int) int

CPWD__FilePath calls password.FilePath and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__Get(id *C.cchar_t, key *C.cchar_t, buffer *C.char, length int) int

CPWD__Get calls password.Get and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/docs/password.md

func CPWD__GetStorePath(buffer *C.char, length int) int

CPWD__GetStorePath calls password.GetStorePath and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__List(buffer *C.char, length int, delim *C.cchar_t) int

CPWD__List calls password.List and returns 0 on success, -1 on error. The resulting list will be stored in buffer with delim as separator. Error is returned if delim collides with any of the returned ids.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__LoadJSON(input *C.cchar_t) int

CPWD__LoadJSON calls password.LoadJSON and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__LogLevel(level int) int

CPWD__LogLevel calls log.Level and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetDefault()

CPWD__LogSetDefault calls log.SetDefault.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetFileJSON(filePath *C.cchar_t) int

CPWD__LogSetFileJSON calls log.SetFileJSON and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetFileText(filePath *C.cchar_t) int

CPWD__LogSetFileText calls log.SetFileText and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetMultiJSON(filePath *C.cchar_t) int

CPWD__LogSetMultiJSON calls log.SetMultiJSON and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetMultiText(filePath *C.cchar_t) int

CPWD__LogSetMultiText calls log.SetMultiText and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetStderrJSON()

CPWD__LogSetStderrJSON calls log.SetStderrJSON.

For full documentation visit https://github.com/image357/password/blob/main/docs/log.md

func CPWD__LogSetStderrText()

CPWD__LogSetStderrText calls log.SetStderrText.

func CPWD__NormalizeId(id *C.cchar_t, buffer *C.char, length int) int

CPWD__NormalizeId calls password.NormalizeId and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__Overwrite(id *C.cchar_t, password *C.cchar_t, key *C.cchar_t) int

CPWD__Overwrite calls password.Overwrite and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__ReadFromDisk(path *C.cchar_t) int

CPWD__ReadFromDisk calls password.ReadFromDisk and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__RegisterDefaultManager(identifier *C.cchar_t)

CPWD__RegisterDefaultManager calls password.RegisterDefaultManager.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__RewriteKey(id *C.cchar_t, oldKey *C.cchar_t, newKey *C.cchar_t) int

CPWD__RewriteKey calls password.RewriteKey and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__Set(id *C.cchar_t, oldPassword *C.cchar_t, newPassword *C.cchar_t, key *C.cchar_t) int

CPWD__Set calls password.Set and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__SetDefaultManager(identifier *C.cchar_t) int

CPWD__SetDefaultManager calls password.SetDefaultManager. Returns 0 if the identifier has already been registered, -1 if not.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__SetStorePath(path *C.cchar_t) int

CPWD__SetStorePath calls password.SetStorePath and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__SetTemporaryStorage()

CPWD__SetTemporaryStorage calls password.SetTemporaryStorage.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__StartMultiService(bindAddress *C.cchar_t, prefix *C.cchar_t, key *C.cchar_t, callback C.CPWD__TestAccessFunc) int

CPWD__StartMultiService calls rest.StartMultiService and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/rest.md

func CPWD__StartSimpleService(bindAddress *C.cchar_t, prefix *C.cchar_t, key *C.cchar_t, callback C.CPWD__TestAccessFunc) int

CPWD__StartSimpleService calls rest.StartSimpleService and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/rest.md

func CPWD__StopService(timeout int, bindAddress *C.cchar_t, prefix *C.cchar_t) int

CPWD__StopService calls rest.StopService and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/rest.md

func CPWD__Unset(id *C.cchar_t, password *C.cchar_t, key *C.cchar_t) int

CPWD__Unset calls password.Unset and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__WriteToDisk(path *C.cchar_t) int

CPWD__WriteToDisk calls password.WriteToDisk and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mCheck(manager *C.cchar_t, id *C.cchar_t, password *C.cchar_t, key *C.cchar_t, result *C.bool) int

CPWD__mCheck calls password.Check with the specified manager and returns 0 on success, -1 on error. The result will be stored via the result pointer.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mClean(manager *C.cchar_t) int

CPWD__mClean calls password.Clean with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mDelete(manager *C.cchar_t, id *C.cchar_t) int

CPWD__mDelete calls password.Delete with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mExists(manager *C.cchar_t, id *C.cchar_t, result *C.bool) int

CPWD__mExists calls password.Exists with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mGet(manager *C.cchar_t, id *C.cchar_t, key *C.cchar_t, buffer *C.char, length int) int

CPWD__mGet calls password.Get with the specified manager and returns 0 on success, -1 on error. The result will be stored in buffer.

For full documentation visit https://github.com/image357/password/docs/password.md

func CPWD__mList(manager *C.cchar_t, buffer *C.char, length int, delim *C.cchar_t) int

CPWD__mList calls password.List with the specified manager and returns 0 on success, -1 on error. The resulting list will be stored in buffer with delim as separator. Error is returned if delim collides with any of the returned ids.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mOverwrite(manager *C.cchar_t, id *C.cchar_t, password *C.cchar_t, key *C.cchar_t) int

CPWD__mOverwrite calls password.Overwrite with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mRewriteKey(manager *C.cchar_t, id *C.cchar_t, oldKey *C.cchar_t, newKey *C.cchar_t) int

CPWD__mRewriteKey calls password.RewriteKey with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mSet(manager *C.cchar_t, id *C.cchar_t, oldPassword *C.cchar_t, newPassword *C.cchar_t, key *C.cchar_t) int

CPWD__mSet calls password.Set with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

func CPWD__mUnset(manager *C.cchar_t, id *C.cchar_t, password *C.cchar_t, key *C.cchar_t) int

CPWD__mUnset calls password.Unset with the specified manager and returns 0 on success, -1 on error.

For full documentation visit https://github.com/image357/password/blob/main/docs/password.md

Generated by gomarkdoc