Documentation ¶
Index ¶
- Variables
- type CertificateLightResponse
- type CertificateResponse
- type CreateCARequest
- type CreateCAResponse
- type CreateCertificateRequest
- type CreateKeyRequest
- type CreateUserRequest
- type KeyAlgorithm
- type KeyLightResponse
- type LoginUserRequest
- type LoginUserResponse
- type OAuthValidateRequest
- type PkixName
- type SessionResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyAlgorithmStrings = map[KeyAlgorithm]string{ ECDSA: "ECDSA", ED25519: "ED25519", RSA: "RSA", }
Functions ¶
This section is empty.
Types ¶
type CertificateResponse ¶
type CertificateResponse struct { ID string `json:"id"` OwnerID string `json:"ownerId"` Name string `json:"name"` Type string `json:"type"` Created time.Time `json:"created"` KeyID string `json:"keyId"` SignatureAlgorithm string `json:"signatureAlgorithm"` PublicKeyAlgorithm string `json:"publicKeyAlgorithm"` Version int `json:"version"` SerialNumber int `json:"serialNumber"` Issuer *PkixName `json:"issuer"` Subject *PkixName `json:"subject"` NotBefore time.Time `json:"notBefore"` NotAfter time.Time `json:"notAfter"` KeyUsage []string `json:"keyUsage"` ExtKeyUsage []string `json:"extKeyUsage"` IsCA bool `json:"isCA"` MaxPathLen int `json:"maxPathLen"` MaxPathLenZero bool `json:"maxPathLenZero"` DNSNames []string `json:"sanDNSNames"` }
type CreateCARequest ¶
type CreateCARequest struct { Name string `json:"name"` Organization string `json:"organization"` Country string `json:"country"` State string `json:"state"` Locality string `json:"locality"` PostalCode string `json:"postalCode"` StreetAddress string `json:"streetAddress"` Expiration time.Time `json:"expiration"` ParentCA string `json:"parentCA"` ParentKeyPassword string `json:"parentKeyPassword"` KeyID string `json:"key"` KeyPassword string `json:"keyPassword"` }
type CreateCAResponse ¶
type CreateCertificateRequest ¶
type CreateCertificateRequest struct { Name string `json:"name"` KeyId string `json:"keyId"` KeyPassword string `json:"keyPassword"` KeyUsages []string `json:"keyUsages"` CommonName string `json:"commonName"` SubjectAlternativeNames []string `json:"subjectAlternativeNames"` Expiration time.Time `json:"expiration"` CAKeyPassword string `json:"caKeyPassword"` }
type CreateKeyRequest ¶
type CreateKeyRequest struct { Algorithm KeyAlgorithm `json:"algorithm"` Name string `json:"name"` Password string `json:"password"` }
type CreateUserRequest ¶
type KeyAlgorithm ¶
type KeyAlgorithm int
const ( ECDSA KeyAlgorithm = iota ED25519 RSA Unknown )
func AlgorithmFromString ¶
func AlgorithmFromString(algorithm string) (KeyAlgorithm, error)
func (KeyAlgorithm) String ¶
func (a KeyAlgorithm) String() string
type KeyLightResponse ¶
type LoginUserRequest ¶
type LoginUserResponse ¶
type LoginUserResponse struct { Session *SessionResponse `json:"session"` User *UserResponse `json:"user"` }
type OAuthValidateRequest ¶
type PkixName ¶
type PkixName struct { Country []string `json:"country"` Organization []string `json:"organization"` OrganizationalUnit []string `json:"organizationalUnit"` Locality []string `json:"locality"` Province []string `json:"province"` StreetAddress []string `json:"streetAddress"` PostalCode []string `json:"postalCode"` SerialNumber string `json:"serialNumber"` CommonName string `json:"commonName"` }
type SessionResponse ¶
Source Files ¶
- certificate-light-response.go
- certificate-response.go
- create-ca-request.go
- create-ca-response.go
- create-certificate-request.go
- create-key-request.go
- create_user_request.go
- key-light-response.go
- key-types.go
- login_user_request.go
- login_user_response.go
- oauth-validate-request.go
- session.go
- user_response.go
Click to show internal directories.
Click to hide internal directories.