webapi: github.com/gowebapi/webapi/crypto/credential Index | Files

package credential

import "github.com/gowebapi/webapi/crypto/credential"

Package credential is enabling a website to request a user’s credentials from a user agent, and to help the user agent correctly store user credentials for future use.

Index

Package Files

credential.go doc.go

func IsUserVerifyingPlatformAuthenticatorAvailable Uses

func IsUserVerifyingPlatformAuthenticatorAvailable() (_result *javascript.PromiseBool)

type Credential Uses

type Credential struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Credential

func CredentialFromJS Uses

func CredentialFromJS(value js.Wrapper) *Credential

CredentialFromJS is casting a js.Wrapper into Credential.

func (*Credential) Id Uses

func (_this *Credential) Id() string

Id returning attribute 'id' with type string (idl: USVString).

func (*Credential) JSValue Uses

func (_this *Credential) JSValue() js.Value

func (*Credential) Type Uses

func (_this *Credential) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type CredentialCreationOptions Uses

type CredentialCreationOptions struct {
    Signal    *domcore.AbortSignal
    Password  *Union
    Federated *FederatedCredentialInit
    PublicKey *PublicKeyCredentialCreationOptions
}

dictionary: CredentialCreationOptions

func CredentialCreationOptionsFromJS Uses

func CredentialCreationOptionsFromJS(value js.Wrapper) *CredentialCreationOptions

CredentialCreationOptionsFromJS is allocating a new CredentialCreationOptions object and copy all values from input javascript object

func (*CredentialCreationOptions) JSValue Uses

func (_this *CredentialCreationOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CredentialData Uses

type CredentialData struct {
    Id string
}

dictionary: CredentialData

func CredentialDataFromJS Uses

func CredentialDataFromJS(value js.Wrapper) *CredentialData

CredentialDataFromJS is allocating a new CredentialData object and copy all values from input javascript object

func (*CredentialData) JSValue Uses

func (_this *CredentialData) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CredentialMediationRequirement Uses

type CredentialMediationRequirement int

enum: CredentialMediationRequirement

const (
    SilentCredentialMediationRequirement CredentialMediationRequirement = iota
    OptionalCredentialMediationRequirement
    RequiredCredentialMediationRequirement
)

func CredentialMediationRequirementFromJS Uses

func CredentialMediationRequirementFromJS(value js.Value) CredentialMediationRequirement

CredentialMediationRequirementFromJS is converting a javascript value into a CredentialMediationRequirement enum value.

func (*CredentialMediationRequirement) JSValue Uses

func (this *CredentialMediationRequirement) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CredentialMediationRequirement) Value Uses

func (this CredentialMediationRequirement) Value() string

Value is converting this into javascript defined string value

type CredentialRequestOptions Uses

type CredentialRequestOptions struct {
    Mediation CredentialMediationRequirement
    Signal    *domcore.AbortSignal
    Password  bool
    Federated *FederatedCredentialRequestOptions
    PublicKey *PublicKeyCredentialRequestOptions
}

dictionary: CredentialRequestOptions

func CredentialRequestOptionsFromJS Uses

func CredentialRequestOptionsFromJS(value js.Wrapper) *CredentialRequestOptions

CredentialRequestOptionsFromJS is allocating a new CredentialRequestOptions object and copy all values from input javascript object

func (*CredentialRequestOptions) JSValue Uses

func (_this *CredentialRequestOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CredentialsContainer Uses

type CredentialsContainer struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CredentialsContainer

func CredentialsContainerFromJS Uses

func CredentialsContainerFromJS(value js.Wrapper) *CredentialsContainer

CredentialsContainerFromJS is casting a js.Wrapper into CredentialsContainer.

func (*CredentialsContainer) Create Uses

func (_this *CredentialsContainer) Create(options *CredentialCreationOptions) (_result *PromiseNilCredential)

func (*CredentialsContainer) Get Uses

func (_this *CredentialsContainer) Get(options *CredentialRequestOptions) (_result *PromiseNilCredential)

func (*CredentialsContainer) JSValue Uses

func (_this *CredentialsContainer) JSValue() js.Value

func (*CredentialsContainer) PreventSilentAccess Uses

func (_this *CredentialsContainer) PreventSilentAccess() (_result *javascript.PromiseVoid)

func (*CredentialsContainer) Store Uses

func (_this *CredentialsContainer) Store(credential *Credential) (_result *PromiseCredential)

type FederatedCredential Uses

type FederatedCredential struct {
    Credential
}

class: FederatedCredential

func FederatedCredentialFromJS Uses

func FederatedCredentialFromJS(value js.Wrapper) *FederatedCredential

FederatedCredentialFromJS is casting a js.Wrapper into FederatedCredential.

func NewFederatedCredential Uses

func NewFederatedCredential(data *FederatedCredentialInit) (_result *FederatedCredential)

func (*FederatedCredential) IconURL Uses

func (_this *FederatedCredential) IconURL() string

IconURL returning attribute 'iconURL' with type string (idl: USVString).

func (*FederatedCredential) Name Uses

func (_this *FederatedCredential) Name() string

Name returning attribute 'name' with type string (idl: USVString).

func (*FederatedCredential) Protocol Uses

func (_this *FederatedCredential) Protocol() *string

Protocol returning attribute 'protocol' with type string (idl: DOMString).

func (*FederatedCredential) Provider Uses

func (_this *FederatedCredential) Provider() string

Provider returning attribute 'provider' with type string (idl: USVString).

type FederatedCredentialInit Uses

type FederatedCredentialInit struct {
    Id       string
    Name     string
    IconURL  string
    Origin   string
    Provider string
    Protocol string
}

dictionary: FederatedCredentialInit

func FederatedCredentialInitFromJS Uses

func FederatedCredentialInitFromJS(value js.Wrapper) *FederatedCredentialInit

FederatedCredentialInitFromJS is allocating a new FederatedCredentialInit object and copy all values from input javascript object

func (*FederatedCredentialInit) JSValue Uses

func (_this *FederatedCredentialInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type FederatedCredentialRequestOptions Uses

type FederatedCredentialRequestOptions struct {
    Providers []string
    Protocols []string
}

dictionary: FederatedCredentialRequestOptions

func FederatedCredentialRequestOptionsFromJS Uses

func FederatedCredentialRequestOptionsFromJS(value js.Wrapper) *FederatedCredentialRequestOptions

FederatedCredentialRequestOptionsFromJS is allocating a new FederatedCredentialRequestOptions object and copy all values from input javascript object

func (*FederatedCredentialRequestOptions) JSValue Uses

func (_this *FederatedCredentialRequestOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PasswordCredential Uses

type PasswordCredential struct {
    Credential
}

class: PasswordCredential

func NewPasswordCredential Uses

func NewPasswordCredential(data *PasswordCredentialData) (_result *PasswordCredential)

func PasswordCredentialFromJS Uses

func PasswordCredentialFromJS(value js.Wrapper) *PasswordCredential

PasswordCredentialFromJS is casting a js.Wrapper into PasswordCredential.

func (*PasswordCredential) IconURL Uses

func (_this *PasswordCredential) IconURL() string

IconURL returning attribute 'iconURL' with type string (idl: USVString).

func (*PasswordCredential) Name Uses

func (_this *PasswordCredential) Name() string

Name returning attribute 'name' with type string (idl: USVString).

func (*PasswordCredential) Password Uses

func (_this *PasswordCredential) Password() string

Password returning attribute 'password' with type string (idl: USVString).

type PasswordCredentialData Uses

type PasswordCredentialData struct {
    Id       string
    Name     string
    IconURL  string
    Origin   string
    Password string
}

dictionary: PasswordCredentialData

func PasswordCredentialDataFromJS Uses

func PasswordCredentialDataFromJS(value js.Wrapper) *PasswordCredentialData

PasswordCredentialDataFromJS is allocating a new PasswordCredentialData object and copy all values from input javascript object

func (*PasswordCredentialData) JSValue Uses

func (_this *PasswordCredentialData) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseCredential Uses

type PromiseCredential struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseCredentialFromJS Uses

func PromiseCredentialFromJS(value js.Wrapper) *PromiseCredential

PromiseCredentialFromJS is casting a js.Wrapper into PromiseCredential.

func (*PromiseCredential) Catch Uses

func (_this *PromiseCredential) Catch(onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)

func (*PromiseCredential) Finally Uses

func (_this *PromiseCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCredential)

func (*PromiseCredential) JSValue Uses

func (_this *PromiseCredential) JSValue() js.Value

func (*PromiseCredential) Then Uses

func (_this *PromiseCredential) Then(onFulfilled *PromiseCredentialOnFulfilled, onRejected *PromiseCredentialOnRejected) (_result *PromiseCredential)

type PromiseCredentialOnFulfilled Uses

type PromiseCredentialOnFulfilled js.Func

PromiseCredentialOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseCredentialOnFulfilledToJS Uses

func PromiseCredentialOnFulfilledToJS(callback PromiseCredentialOnFulfilledFunc) *PromiseCredentialOnFulfilled

type PromiseCredentialOnFulfilledFunc Uses

type PromiseCredentialOnFulfilledFunc func(value *Credential)

callback: PromiseTemplateOnFulfilled

func PromiseCredentialOnFulfilledFromJS Uses

func PromiseCredentialOnFulfilledFromJS(_value js.Value) PromiseCredentialOnFulfilledFunc

type PromiseCredentialOnRejected Uses

type PromiseCredentialOnRejected js.Func

PromiseCredentialOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseCredentialOnRejectedToJS Uses

func PromiseCredentialOnRejectedToJS(callback PromiseCredentialOnRejectedFunc) *PromiseCredentialOnRejected

type PromiseCredentialOnRejectedFunc Uses

type PromiseCredentialOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCredentialOnRejectedFromJS Uses

func PromiseCredentialOnRejectedFromJS(_value js.Value) PromiseCredentialOnRejectedFunc

type PromiseNilCredential Uses

type PromiseNilCredential struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseNilCredentialFromJS Uses

func PromiseNilCredentialFromJS(value js.Wrapper) *PromiseNilCredential

PromiseNilCredentialFromJS is casting a js.Wrapper into PromiseNilCredential.

func (*PromiseNilCredential) Catch Uses

func (_this *PromiseNilCredential) Catch(onRejected *PromiseNilCredentialOnRejected) (_result *PromiseNilCredential)

func (*PromiseNilCredential) Finally Uses

func (_this *PromiseNilCredential) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilCredential)

func (*PromiseNilCredential) JSValue Uses

func (_this *PromiseNilCredential) JSValue() js.Value

func (*PromiseNilCredential) Then Uses

func (_this *PromiseNilCredential) Then(onFulfilled *PromiseNilCredentialOnFulfilled, onRejected *PromiseNilCredentialOnRejected) (_result *PromiseNilCredential)

type PromiseNilCredentialOnFulfilled Uses

type PromiseNilCredentialOnFulfilled js.Func

PromiseNilCredentialOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilCredentialOnFulfilledToJS Uses

func PromiseNilCredentialOnFulfilledToJS(callback PromiseNilCredentialOnFulfilledFunc) *PromiseNilCredentialOnFulfilled

type PromiseNilCredentialOnFulfilledFunc Uses

type PromiseNilCredentialOnFulfilledFunc func(value *Credential)

callback: PromiseTemplateOnFulfilled

func PromiseNilCredentialOnFulfilledFromJS Uses

func PromiseNilCredentialOnFulfilledFromJS(_value js.Value) PromiseNilCredentialOnFulfilledFunc

type PromiseNilCredentialOnRejected Uses

type PromiseNilCredentialOnRejected js.Func

PromiseNilCredentialOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilCredentialOnRejectedToJS Uses

func PromiseNilCredentialOnRejectedToJS(callback PromiseNilCredentialOnRejectedFunc) *PromiseNilCredentialOnRejected

type PromiseNilCredentialOnRejectedFunc Uses

type PromiseNilCredentialOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilCredentialOnRejectedFromJS Uses

func PromiseNilCredentialOnRejectedFromJS(_value js.Value) PromiseNilCredentialOnRejectedFunc

type PublicKeyCredential Uses

type PublicKeyCredential struct {
    Credential
}

class: PublicKeyCredential

func PublicKeyCredentialFromJS Uses

func PublicKeyCredentialFromJS(value js.Wrapper) *PublicKeyCredential

PublicKeyCredentialFromJS is casting a js.Wrapper into PublicKeyCredential.

func (*PublicKeyCredential) GetClientExtensionResults Uses

func (_this *PublicKeyCredential) GetClientExtensionResults() (_result *authentication.AuthenticationExtensionsClientOutputs)

func (*PublicKeyCredential) RawId Uses

func (_this *PublicKeyCredential) RawId() *javascript.ArrayBuffer

RawId returning attribute 'rawId' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*PublicKeyCredential) Response Uses

func (_this *PublicKeyCredential) Response() *authentication.Response

Response returning attribute 'response' with type authentication.Response (idl: AuthenticatorResponse).

type PublicKeyCredentialCreationOptions Uses

type PublicKeyCredentialCreationOptions struct {
    Rp                     *PublicKeyCredentialRpEntity
    User                   *PublicKeyCredentialUserEntity
    Challenge              *Union
    PubKeyCredParams       []*PublicKeyCredentialParameters
    Timeout                uint
    ExcludeCredentials     []*PublicKeyCredentialDescriptor
    AuthenticatorSelection *authentication.SelectionCriteria
    Attestation            authentication.AttestationConveyancePreference
    Extensions             *authentication.AuthenticationExtensionsClientInputs
}

dictionary: PublicKeyCredentialCreationOptions

func PublicKeyCredentialCreationOptionsFromJS Uses

func PublicKeyCredentialCreationOptionsFromJS(value js.Wrapper) *PublicKeyCredentialCreationOptions

PublicKeyCredentialCreationOptionsFromJS is allocating a new PublicKeyCredentialCreationOptions object and copy all values from input javascript object

func (*PublicKeyCredentialCreationOptions) JSValue Uses

func (_this *PublicKeyCredentialCreationOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialDescriptor Uses

type PublicKeyCredentialDescriptor struct {
    Type       PublicKeyCredentialType
    Id         *Union
    Transports []authentication.Transport
}

dictionary: PublicKeyCredentialDescriptor

func PublicKeyCredentialDescriptorFromJS Uses

func PublicKeyCredentialDescriptorFromJS(value js.Wrapper) *PublicKeyCredentialDescriptor

PublicKeyCredentialDescriptorFromJS is allocating a new PublicKeyCredentialDescriptor object and copy all values from input javascript object

func (*PublicKeyCredentialDescriptor) JSValue Uses

func (_this *PublicKeyCredentialDescriptor) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialEntity Uses

type PublicKeyCredentialEntity struct {
    Name string
    Icon string
}

dictionary: PublicKeyCredentialEntity

func PublicKeyCredentialEntityFromJS Uses

func PublicKeyCredentialEntityFromJS(value js.Wrapper) *PublicKeyCredentialEntity

PublicKeyCredentialEntityFromJS is allocating a new PublicKeyCredentialEntity object and copy all values from input javascript object

func (*PublicKeyCredentialEntity) JSValue Uses

func (_this *PublicKeyCredentialEntity) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialParameters Uses

type PublicKeyCredentialParameters struct {
    Type PublicKeyCredentialType
    Alg  int
}

dictionary: PublicKeyCredentialParameters

func PublicKeyCredentialParametersFromJS Uses

func PublicKeyCredentialParametersFromJS(value js.Wrapper) *PublicKeyCredentialParameters

PublicKeyCredentialParametersFromJS is allocating a new PublicKeyCredentialParameters object and copy all values from input javascript object

func (*PublicKeyCredentialParameters) JSValue Uses

func (_this *PublicKeyCredentialParameters) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialRequestOptions Uses

type PublicKeyCredentialRequestOptions struct {
    Challenge        *Union
    Timeout          uint
    RpId             string
    AllowCredentials []*PublicKeyCredentialDescriptor
    UserVerification authentication.UserVerificationRequirement
    Extensions       *authentication.AuthenticationExtensionsClientInputs
}

dictionary: PublicKeyCredentialRequestOptions

func PublicKeyCredentialRequestOptionsFromJS Uses

func PublicKeyCredentialRequestOptionsFromJS(value js.Wrapper) *PublicKeyCredentialRequestOptions

PublicKeyCredentialRequestOptionsFromJS is allocating a new PublicKeyCredentialRequestOptions object and copy all values from input javascript object

func (*PublicKeyCredentialRequestOptions) JSValue Uses

func (_this *PublicKeyCredentialRequestOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialRpEntity Uses

type PublicKeyCredentialRpEntity struct {
    Name string
    Icon string
    Id   string
}

dictionary: PublicKeyCredentialRpEntity

func PublicKeyCredentialRpEntityFromJS Uses

func PublicKeyCredentialRpEntityFromJS(value js.Wrapper) *PublicKeyCredentialRpEntity

PublicKeyCredentialRpEntityFromJS is allocating a new PublicKeyCredentialRpEntity object and copy all values from input javascript object

func (*PublicKeyCredentialRpEntity) JSValue Uses

func (_this *PublicKeyCredentialRpEntity) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PublicKeyCredentialType Uses

type PublicKeyCredentialType int

enum: PublicKeyCredentialType

const (
    PublicKeyPublicKeyCredentialType PublicKeyCredentialType = iota
)

func PublicKeyCredentialTypeFromJS Uses

func PublicKeyCredentialTypeFromJS(value js.Value) PublicKeyCredentialType

PublicKeyCredentialTypeFromJS is converting a javascript value into a PublicKeyCredentialType enum value.

func (*PublicKeyCredentialType) JSValue Uses

func (this *PublicKeyCredentialType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PublicKeyCredentialType) Value Uses

func (this PublicKeyCredentialType) Value() string

Value is converting this into javascript defined string value

type PublicKeyCredentialUserEntity Uses

type PublicKeyCredentialUserEntity struct {
    Name        string
    Icon        string
    Id          *Union
    DisplayName string
}

dictionary: PublicKeyCredentialUserEntity

func PublicKeyCredentialUserEntityFromJS Uses

func PublicKeyCredentialUserEntityFromJS(value js.Wrapper) *PublicKeyCredentialUserEntity

PublicKeyCredentialUserEntityFromJS is allocating a new PublicKeyCredentialUserEntity object and copy all values from input javascript object

func (*PublicKeyCredentialUserEntity) JSValue Uses

func (_this *PublicKeyCredentialUserEntity) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package credential imports 4 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.