service

package
v0.0.0-...-3cae622 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInput

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInput struct {
	Login        *string                                                               `json:"login"`
	Device       *APIAuthenticationCompleteDeviceRegistrationWithTOTPInputDevice       `json:"device"`
	Verification *APIAuthenticationCompleteDeviceRegistrationWithTOTPInputVerification `json:"verification"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInputDevice

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInputDevice struct {
	DeviceName *string `json:"deviceName"`
	AppVersion *string `json:"appVersion"`
	Platform   *string `json:"platform"`
	OSCountry  *string `json:"osCountry"`
	OSLanguage *string `json:"osLanguage"`
	Temporary  *bool   `json:"temporary"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInputVerification

type APIAuthenticationCompleteDeviceRegistrationWithTOTPInputVerification struct {
	OTP *string `json:"otp"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTOTPOutput

type APIAuthenticationCompleteDeviceRegistrationWithTOTPOutput struct {
	RequestID *string                                                        `json:"requestId"`
	Data      *APIAuthenticationCompleteDeviceRegistrationWithTOTPOutputData `json:"data"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTOTPOutputData

type APIAuthenticationCompleteDeviceRegistrationWithTOTPOutputData struct {
	DeviceAccessKey *string `json:"deviceAccessKey"`
	DeviceSecretKey *string `json:"deviceSecretKey"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTokenInput

type APIAuthenticationCompleteDeviceRegistrationWithTokenInput struct {
	Login        *string                                                                `json:"login"`
	Device       *APIAuthenticationCompleteDeviceRegistrationWithTokenInputDevice       `json:"device"`
	Verification *APIAuthenticationCompleteDeviceRegistrationWithTokenInputVerification `json:"verification"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTokenInputDevice

type APIAuthenticationCompleteDeviceRegistrationWithTokenInputDevice struct {
	DeviceName *string `json:"deviceName"`
	AppVersion *string `json:"appVersion"`
	Platform   *string `json:"platform"`
	OSCountry  *string `json:"osCountry"`
	OSLanguage *string `json:"osLanguage"`
	Temporary  *bool   `json:"temporary"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTokenInputVerification

type APIAuthenticationCompleteDeviceRegistrationWithTokenInputVerification struct {
	Token *string `json:"token"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTokenOutput

type APIAuthenticationCompleteDeviceRegistrationWithTokenOutput struct {
	RequestID *string                                                         `json:"requestId"`
	Data      *APIAuthenticationCompleteDeviceRegistrationWithTokenOutputData `json:"data"`
}

type APIAuthenticationCompleteDeviceRegistrationWithTokenOutputData

type APIAuthenticationCompleteDeviceRegistrationWithTokenOutputData struct {
	DeviceAccessKey *string `json:"deviceAccessKey"`
	DeviceSecretKey *string `json:"deviceSecretKey"`
}

type APIBackupLockInput

type APIBackupLockInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
	OTP   *string `url:"otp"`
	Lock  *string `url:"lock"`
}

type APIBackupLockOutput

type APIBackupLockOutput struct {
	ObjectType *string `json:"objectType"`
	Content    *string `json:"content"`
}

FIXME handle dynomic content

type APIRequestDeviceRegistrationInput

type APIRequestDeviceRegistrationInput struct {
	Login *string `json:"login"`
}

type APIRequestDeviceRegistrationOutput

type APIRequestDeviceRegistrationOutput struct {
	RequestID *string                                 `json:"requestId"`
	Data      *APIRequestDeviceRegistrationOutputData `json:"data"`
}

type APIRequestDeviceRegistrationOutputData

type APIRequestDeviceRegistrationOutputData struct {
	Verification []*APIRequestDeviceRegistrationOutputDataVerification `json:"verification"`
}

type APIRequestDeviceRegistrationOutputDataVerification

type APIRequestDeviceRegistrationOutputDataVerification struct {
	Type       *string                                                           `json:"type"`
	Challenges []*APIRequestDeviceRegistrationOutputDataVerificationU2FChallenge `json:"challenges,omitempty"`
}

type APIRequestDeviceRegistrationOutputDataVerificationU2FChallenge

type APIRequestDeviceRegistrationOutputDataVerificationU2FChallenge struct {
	Version   *string `json:"version"`
	KeyHandle *string `json:"keyHandle"`
	Challenge *string `json:"challenge"`
	AppID     *string `json:"appId"`
}

type Credentials

type Credentials struct {
	Login           *string `json:"login,omitempty"`
	AppAccessKey    *string `json:"app_access_key,omitempty"`
	AppSecretKey    *string `json:"app_secret_key,omitempty"`
	DeviceAccessKey *string `json:"device_access_key,omitempty"`
	DeviceSecretKey *string `json:"device_secret_key,omitempty"`
	UKI             *string `json:"uki,omitempty"`
	OTP             *string `json:"otp,omitempty"`
	LockID          *string `json:"lock_id,omitempty"`
}

type ErrTOTPAlreadyEnabled

type ErrTOTPAlreadyEnabled struct{}

func (*ErrTOTPAlreadyEnabled) Error

func (e *ErrTOTPAlreadyEnabled) Error() string

type Service

type Service struct {
	Client      *http.Client `json:"-"`
	Credentials *Credentials `json:"credentials"`
}

func New

func New() *Service

func (*Service) APIBackupLock

func (s *Service) APIBackupLock(
	input *APIBackupLockInput,
) (
	*APIBackupLockOutput,
	error,
)

func (*Service) APIRequestDeviceRegistration

func (s *Service) APIRequestDeviceRegistration(
	input *APIRequestDeviceRegistrationInput,
) (
	*APIRequestDeviceRegistrationOutput,
	error,
)

func (*Service) WSAuthenticationExists

func (s *Service) WSAuthenticationExists(
	input *WSAuthenticationExistsInput,
) (
	*WSAuthenticationExistsOutput,
	error,
)

func (*Service) WSStrongauthActivateForNewDevice

func (s *Service) WSStrongauthActivateForNewDevice(
	input *WSStrongauthActivateForNewDeviceInput,
) (
	*WSStrongauthActivateForNewDeviceOutput,
	error,
)

func (*Service) WSStrongauthDeactivateForNewDevice

func (s *Service) WSStrongauthDeactivateForNewDevice(
	input *WSStrongauthDeactivateForNewDeviceInput,
) (
	*WSStrongauthDeactivateForNewDeviceOutput,
	error,
)

func (*Service) WSStrongauthGetRecoveryKeys

func (s *Service) WSStrongauthGetRecoveryKeys(
	input *WSStrongauthGetRecoveryKeysInput,
) (
	*WSStrongauthGetRecoveryKeysOutput,
	error,
)

func (*Service) WSStrongauthGetU2FMetadata

func (s *Service) WSStrongauthGetU2FMetadata(
	input *WSStrongauthGetU2FMetadataInput,
) (
	*WSStrongauthGetU2FMetadataOutput,
	error,
)

func (*Service) WSStrongauthMakeSeed

func (s *Service) WSStrongauthMakeSeed(
	input *WSStrongauthMakeSeedInput,
) (
	*WSStrongauthMakeSeedOutput,
	error,
)

func (*Service) WSStrongauthRegisterU2FDevice

func (s *Service) WSStrongauthRegisterU2FDevice(
	input *WSStrongauthRegisterU2FDeviceInput,
) (
	*WSStrongauthRegisterU2FDeviceOutput,
	error,
)

func (*Service) WSStrongauthSetRecoveryPhone

func (s *Service) WSStrongauthSetRecoveryPhone(
	input *WSStrongauthSetRecoveryPhoneInput,
) (
	*WSStrongauthSetRecoveryPhoneOutput,
	error,
)

func (*Service) WSStrongauthStartU2FRegistration

func (s *Service) WSStrongauthStartU2FRegistration(
	input *WSStrongauthStartU2FRegistrationInput,
) (
	*WSStrongauthStartU2FRegistrationOutput,
	error,
)

func (*Service) WSStrongauthUnregisterU2FDevice

func (s *Service) WSStrongauthUnregisterU2FDevice(
	input *WSStrongauthUnregisterU2FDeviceInput,
) (
	*WSStrongauthUnregisterU2FDeviceOutput,
	error,
)

type WSAuthenticationChangeOfPasswordDoneInput

type WSAuthenticationChangeOfPasswordDoneInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
}

type WSAuthenticationChangeOfPasswordDoneOutput

type WSAuthenticationChangeOfPasswordDoneOutput struct {
	Result *string `json:"result"`
}

type WSAuthenticationExistsInput

type WSAuthenticationExistsInput struct {
	Login *string `url:"login"`
}

type WSAuthenticationExistsOutput

type WSAuthenticationExistsOutput struct {
	Exists *string `json:"exists"`
}

type WSStrongauthActivateForNewDeviceInput

type WSStrongauthActivateForNewDeviceInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
	OTP   *string `url:"otp"`
}

type WSStrongauthActivateForNewDeviceOutput

type WSStrongauthActivateForNewDeviceOutput struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
}

type WSStrongauthDeactivateForNewDeviceInput

type WSStrongauthDeactivateForNewDeviceInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
	OTP   *string `url:"otp"`
}

type WSStrongauthDeactivateForNewDeviceOutput

type WSStrongauthDeactivateForNewDeviceOutput struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
}

type WSStrongauthGetRecoveryKeysInput

type WSStrongauthGetRecoveryKeysInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
}

type WSStrongauthGetRecoveryKeysOutput

type WSStrongauthGetRecoveryKeysOutput struct {
	Code    *int      `json:"code"`
	Message *string   `json:"message"`
	Content []*string `json:"content"`
}

type WSStrongauthGetU2FMetadataInput

type WSStrongauthGetU2FMetadataInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
}

type WSStrongauthGetU2FMetadataOutput

type WSStrongauthGetU2FMetadataOutput struct {
	Code    *int                                   `json:"code"`
	Message *string                                `json:"message"`
	Content []*WSStrongauthGetU2FMetadataOutputKey `json:"content"`
}

type WSStrongauthGetU2FMetadataOutputKey

type WSStrongauthGetU2FMetadataOutputKey struct {
	KeyHandle           *string `json:"keyHandle"`
	Name                *string `json:"name"`
	CreationDateUnix    *int64  `json:"creationDateUnix"`
	LastUsedDateUnix    *int64  `json:"lastUsedDateUnix"`
	LastUsedFromIP      *string `json:"lastUsedFromIP"`
	LastUsedFromThisIP  *bool   `json:"lastUsedFromThisIp"`
	LastUsedFromCountry *string `json:"lastUsedFromCountry"`
}

type WSStrongauthMakeSeedError

type WSStrongauthMakeSeedError struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
	Content struct {
		Status *string `json:"status"`
	} `json:"content"`
}

type WSStrongauthMakeSeedInput

type WSStrongauthMakeSeedInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
}

type WSStrongauthMakeSeedOutput

type WSStrongauthMakeSeedOutput struct {
	Code    *int                               `json:"code"`
	Message *string                            `json:"message"`
	Content *WSStrongauthMakeSeedOutputContent `json:"content"`
}

type WSStrongauthMakeSeedOutputContent

type WSStrongauthMakeSeedOutputContent struct {
	Seed      *string                                  `json:"seed"`
	ServerKey *string                                  `json:"serverKey"`
	QRCode    *WSStrongauthMakeSeedOutputContentQRCode `json:"qrcode"`
}

type WSStrongauthMakeSeedOutputContentQRCode

type WSStrongauthMakeSeedOutputContentQRCode struct {
	Data  *string `json:"data"`
	Width *int    `json:"width"`
}

type WSStrongauthRegisterU2FDeviceInput

type WSStrongauthRegisterU2FDeviceInput struct {
	ChallengeAnswer *string `url:"challengeAnswer"`
	Name            *string `url:"name"`
	Login           *string `url:"login"`
	UKI             *string `url:"uki"`
}

type WSStrongauthRegisterU2FDeviceOutput

type WSStrongauthRegisterU2FDeviceOutput struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
}

type WSStrongauthSetRecoveryPhoneInput

type WSStrongauthSetRecoveryPhoneInput struct {
	Login *string `url:"login"`
	Phone *string `url:"phone"`
	UKI   *string `url:"uki"`
}

type WSStrongauthSetRecoveryPhoneOutput

type WSStrongauthSetRecoveryPhoneOutput struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
}

type WSStrongauthStartU2FRegistrationInput

type WSStrongauthStartU2FRegistrationInput struct {
	Login *string `url:"login"`
	UKI   *string `url:"uki"`
}

type WSStrongauthStartU2FRegistrationOutput

type WSStrongauthStartU2FRegistrationOutput struct {
	Code    *int                                             `json:"code"`
	Message *string                                          `json:"message"`
	Content *WSStrongauthStartU2FRegistrationOutputChallenge `json:"content"`
}

type WSStrongauthStartU2FRegistrationOutputChallenge

type WSStrongauthStartU2FRegistrationOutputChallenge struct {
	Version   *string `json:"version"`
	AppID     *string `json:"appId"`
	Challenge *string `json:"challenge"`
}

type WSStrongauthUnregisterU2FDeviceInput

type WSStrongauthUnregisterU2FDeviceInput struct {
	KeyHandle *string `url:"keyHandle"`
	Login     *string `url:"login"`
	UKI       *string `url:"uki"`
}

type WSStrongauthUnregisterU2FDeviceOutput

type WSStrongauthUnregisterU2FDeviceOutput struct {
	Code    *int    `json:"code"`
	Message *string `json:"message"`
}

Jump to

Keyboard shortcuts

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