Documentation
¶
Index ¶
- func New() remote.Actions
- type WebClient
- func (c *WebClient) AddPGP(publickey string) error
- func (c *WebClient) Close() error
- func (c *WebClient) ConfirmPGP(publickey string) error
- func (c *WebClient) Delete() error
- func (c *WebClient) GetLogs() ([]models.Action, error)
- func (c *WebClient) ListPGP() ([]models.PGP, error)
- func (c *WebClient) Login(username, password, public string) error
- func (c *WebClient) NewStream() error
- func (c *WebClient) Pull(checksum string) ([]byte, error)
- func (c *WebClient) Push(payload, hashsum string) error
- func (c *WebClient) Register(username, password, public string) error
- func (c *WebClient) RevokePGP(publickey string) error
- func (c *WebClient) Versions() ([]models.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
WebClient - go-resty and websocket client struct
func (*WebClient) AddPGP ¶
AddPGP - add public key to vault pgp public keys
Statuses: 202 - success 500 - internal server error
func (*WebClient) ConfirmPGP ¶
ConfirmPGP - configrm vault pgp public key
Statuses: 200 - success 500 - internal server error
func (*WebClient) Delete ¶
Delete - delete action
Statuses: 202 - deleted 500 - internal server error
func (*WebClient) GetLogs ¶
GetLogs - get action logs
Statuses: 200 - success 202 - no logs 500 - internal server error
func (*WebClient) ListPGP ¶
ListPGP - get list of vault pgp public keys
Statuses: 200 - success 202 - not found 500 - internal server error
func (*WebClient) Login ¶
Login - login action
Statuses: 200 - login successfull 208 - PGP key not confirmed yet, but other users notified 400 - wrong request 401 - username or password not found 403 - PGP key not confirmed 500 - internal server error
func (*WebClient) Pull ¶
Pull - get specific vrecion of vault
Statuses: 200 - success 202 - not found 500 - internal server error
func (*WebClient) Register ¶
Register - signup action
Statuses: 201 - success 500 - internal server error
Click to show internal directories.
Click to hide internal directories.