clientapi

package
v0.0.0-...-d67b91f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GophKeeperClientAPI

type GophKeeperClientAPI struct {
	// contains filtered or unexported fields
}

func New

func New(url string) *GophKeeperClientAPI

func (*GophKeeperClientAPI) AddBinary

func (api *GophKeeperClientAPI) AddBinary(accessToken string, binary *entity.Binary, tmpFilePath string) error

func (*GophKeeperClientAPI) AddCard

func (api *GophKeeperClientAPI) AddCard(accessToken string, card *entity.Card) error

func (*GophKeeperClientAPI) AddLogin

func (api *GophKeeperClientAPI) AddLogin(accessToken string, login *entity.Login) error

func (*GophKeeperClientAPI) AddNote

func (api *GophKeeperClientAPI) AddNote(accessToken string, note *entity.SecretNote) error

func (*GophKeeperClientAPI) DelBinary

func (api *GophKeeperClientAPI) DelBinary(accessToken, binaryID string) error

func (*GophKeeperClientAPI) DelCard

func (api *GophKeeperClientAPI) DelCard(accessToken, cardID string) error

func (*GophKeeperClientAPI) DelLogin

func (api *GophKeeperClientAPI) DelLogin(accessToken, loginID string) error

func (*GophKeeperClientAPI) DelNote

func (api *GophKeeperClientAPI) DelNote(accessToken, noteID string) error

func (*GophKeeperClientAPI) DownloadBinary

func (api *GophKeeperClientAPI) DownloadBinary(accessToken, outpuFilePath string, binary *entity.Binary) error

func (*GophKeeperClientAPI) GetBinaries

func (api *GophKeeperClientAPI) GetBinaries(accessToken string) (binaries []entity.Binary, err error)

func (*GophKeeperClientAPI) GetCards

func (api *GophKeeperClientAPI) GetCards(accessToken string) (cards []entity.Card, err error)

func (*GophKeeperClientAPI) GetLogins

func (api *GophKeeperClientAPI) GetLogins(accessToken string) (logins []entity.Login, err error)

func (*GophKeeperClientAPI) GetNotes

func (api *GophKeeperClientAPI) GetNotes(accessToken string) (notes []entity.SecretNote, err error)

func (*GophKeeperClientAPI) Login

func (api *GophKeeperClientAPI) Login(user *entity.User) (token entity.JWT, err error)

func (*GophKeeperClientAPI) Register

func (api *GophKeeperClientAPI) Register(user *entity.User) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL