Documentation ¶
Index ¶
- type AsymmetricAlgorithm
- type AsymmetricGenerateRequest
- type AsymmetricGenerateResult
- type AsymmetricStoreRequest
- type AsymmetricStoreResult
- type Client
- type CommonGenerateRequest
- type CommonGenerateResult
- type CommonRotateRequest
- type CommonRotateResult
- type CommonStoreRequest
- type CommonStoreResult
- type DecryptRequest
- type DecryptResult
- type DeleteRequest
- type DeleteResult
- type EncodedPrivateKey
- type EncodedPublicKey
- type EncodedSymmetricKey
- type EncryptRequest
- type EncryptResult
- type FolderCreateRequest
- type FolderCreateResult
- type GetRequest
- type GetResult
- type ItemData
- type ItemOrder
- type ItemOrderBy
- type ItemState
- type ItemType
- type ItemVersionData
- type ItemVersionState
- type JWKGetRequest
- type JWKGetResult
- type JWT
- type JWTSignRequest
- type JWTSignResult
- type JWTVerifyRequest
- type JWTVerifyResult
- type KeyPurpose
- type KeyRotateRequest
- type KeyRotateResult
- type ListItemData
- type ListRequest
- type ListResult
- type Metadata
- type PangeaTokenRotateRequest
- type PangeaTokenStoreRequest
- type SecretRotateRequest
- type SecretRotateResult
- type SecretStoreRequest
- type SecretStoreResult
- type SignRequest
- type SignResult
- type StateChangeRequest
- type StateChangeResult
- type SymmetricAlgorithm
- type SymmetricGenerateRequest
- type SymmetricGenerateResult
- type SymmetricStoreRequest
- type SymmetricStoreResult
- type Tags
- type UpdateRequest
- type UpdateResult
- type VerifyRequest
- type VerifyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsymmetricAlgorithm ¶
type AsymmetricAlgorithm string
const ( AAed25519 AsymmetricAlgorithm = "ED25519" AAes256 AsymmetricAlgorithm = "ES256" AAes384 AsymmetricAlgorithm = "ES384" AAes512 AsymmetricAlgorithm = "ES512" AArsa2048_pkcs1v15_sha256 AsymmetricAlgorithm = "RSA-PKCS1V15-2048-SHA256" AArsa2048_oaep_sha256 AsymmetricAlgorithm = "RSA-OAEP-2048-SHA256" AAes256K AsymmetricAlgorithm = "ES256K" AArsa2048_oaep_sha1 AsymmetricAlgorithm = "RSA-OAEP-2048-SHA1" AArsa2048_oaep_sha512 AsymmetricAlgorithm = "RSA-OAEP-2048-SHA512" AArsa3072_oaep_sha1 AsymmetricAlgorithm = "RSA-OAEP-3072-SHA1" AArsa3072_oaep_sha256 AsymmetricAlgorithm = "RSA-OAEP-3072-SHA256" AArsa3072_oaep_sha512 AsymmetricAlgorithm = "RSA-OAEP-3072-SHA512" AArsa4096_oaep_sha1 AsymmetricAlgorithm = "RSA-OAEP-4096-SHA1" AArsa4096_oaep_sha256 AsymmetricAlgorithm = "RSA-OAEP-4096-SHA256" AArsa4096_oaep_sha512 AsymmetricAlgorithm = "RSA-OAEP-4096-SHA512" AArsa2048_pss_sha256 AsymmetricAlgorithm = "RSA-PSS-2048-SHA256" AArsa3072_pss_sha256 AsymmetricAlgorithm = "RSA-PSS-3072-SHA256" AA4096_pss_sha256 AsymmetricAlgorithm = "RSA-PSS-4096-SHA256" AArsa4096_pss_sha512 AsymmetricAlgorithm = "RSA-PSS-4096-SHA512" AArsa AsymmetricAlgorithm = "RSA-PKCS1V15-2048-SHA256" // deprecated, use AArsa2048_pkcs1v15_sha256 instead )
type AsymmetricGenerateRequest ¶
type AsymmetricGenerateRequest struct { CommonGenerateRequest Algorithm AsymmetricAlgorithm `json:"algorithm,omitempty"` Purpose KeyPurpose `json:"purpose,omitempty"` }
type AsymmetricGenerateResult ¶
type AsymmetricGenerateResult struct { CommonGenerateResult PublicKey EncodedPublicKey `json:"public_key"` Algorithm string `json:"algorithm"` Purpose string `json:"purpose"` }
type AsymmetricStoreRequest ¶
type AsymmetricStoreRequest struct { CommonStoreRequest Algorithm AsymmetricAlgorithm `json:"algorithm"` PublicKey EncodedPublicKey `json:"public_key"` PrivateKey EncodedPrivateKey `json:"private_key"` Purpose KeyPurpose `json:"purpose,omitempty"` }
type AsymmetricStoreResult ¶
type AsymmetricStoreResult struct { CommonStoreResult PublicKey EncodedPublicKey `json:"public_key"` Algorithm string `json:"algorithm"` Purpose string `json:"purpose"` }
type Client ¶
type Client interface { StateChange(ctx context.Context, req *StateChangeRequest) (*pangea.PangeaResponse[StateChangeResult], error) Delete(ctx context.Context, req *DeleteRequest) (*pangea.PangeaResponse[DeleteResult], error) Get(ctx context.Context, req *GetRequest) (*pangea.PangeaResponse[GetResult], error) JWKGet(ctx context.Context, req *JWKGetRequest) (*pangea.PangeaResponse[JWKGetResult], error) List(ctx context.Context, req *ListRequest) (*pangea.PangeaResponse[ListResult], error) Update(ctx context.Context, req *UpdateRequest) (*pangea.PangeaResponse[UpdateResult], error) SecretStore(ctx context.Context, req *SecretStoreRequest) (*pangea.PangeaResponse[SecretStoreResult], error) PangeaTokenStore(ctx context.Context, req *PangeaTokenStoreRequest) (*pangea.PangeaResponse[SecretStoreResult], error) SecretRotate(ctx context.Context, req *SecretRotateRequest) (*pangea.PangeaResponse[SecretRotateResult], error) PangeaTokenRotate(ctx context.Context, req *PangeaTokenRotateRequest) (*pangea.PangeaResponse[SecretRotateResult], error) SymmetricGenerate(ctx context.Context, req *SymmetricGenerateRequest) (*pangea.PangeaResponse[SymmetricGenerateResult], error) AsymmetricGenerate(ctx context.Context, req *AsymmetricGenerateRequest) (*pangea.PangeaResponse[AsymmetricGenerateResult], error) SymmetricStore(ctx context.Context, req *SymmetricStoreRequest) (*pangea.PangeaResponse[SymmetricStoreResult], error) AsymmetricStore(ctx context.Context, req *AsymmetricStoreRequest) (*pangea.PangeaResponse[AsymmetricStoreResult], error) KeyRotate(ctx context.Context, req *KeyRotateRequest) (*pangea.PangeaResponse[KeyRotateResult], error) Encrypt(ctx context.Context, req *EncryptRequest) (*pangea.PangeaResponse[EncryptResult], error) Decrypt(ctx context.Context, req *DecryptRequest) (*pangea.PangeaResponse[DecryptResult], error) Sign(ctx context.Context, req *SignRequest) (*pangea.PangeaResponse[SignResult], error) Verify(ctx context.Context, req *VerifyRequest) (*pangea.PangeaResponse[VerifyResult], error) JWTSign(ctx context.Context, req *JWTSignRequest) (*pangea.PangeaResponse[JWTSignResult], error) JWTVerify(ctx context.Context, req *JWTVerifyRequest) (*pangea.PangeaResponse[JWTVerifyResult], error) FolderCreate(ctx context.Context, req *FolderCreateRequest) (*pangea.PangeaResponse[FolderCreateResult], error) // Base service methods pangea.BaseServicer }
type CommonGenerateRequest ¶
type CommonGenerateRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Type ItemType `json:"type"` Name string `json:"name,omitempty"` Folder string `json:"folder,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Tags Tags `json:"tags,omitempty"` RotationFrequency string `json:"rotation_frequency,omitempty"` RotationState ItemVersionState `json:"rotation_state,omitempty"` Expiration string `json:"expiration,omitempty"` }
type CommonGenerateResult ¶
type CommonRotateRequest ¶
type CommonRotateRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` RotationState ItemVersionState `json:"rotation_state,omitempty"` }
type CommonRotateResult ¶
type CommonStoreRequest ¶
type CommonStoreRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Type ItemType `json:"type"` Name string `json:"name,omitempty"` Folder string `json:"folder,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Tags Tags `json:"tags,omitempty"` RotationFrequency string `json:"rotation_frequency,omitempty"` RotationState ItemVersionState `json:"rotation_state,omitempty"` Expiration string `json:"expiration,omitempty"` }
type CommonStoreResult ¶
type DecryptRequest ¶
type DecryptResult ¶
type DeleteRequest ¶
type DeleteRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` }
type DeleteResult ¶
type DeleteResult struct {
ID string `json:"id"`
}
type EncodedPrivateKey ¶
type EncodedPrivateKey string
EncodedPrivateKey is a PEM private key, with no further encoding (i.e. no base64). It may be used for example in openssh with no further processing
type EncodedPublicKey ¶
type EncodedPublicKey string
EncodedPublicKey is a PEM public key, with no further encoding (i.e. no base64) It may be used for example in openssh with no further processing
type EncodedSymmetricKey ¶
type EncodedSymmetricKey string
EncodedSymmetricKey is a base64 encoded key
type EncryptRequest ¶
type EncryptResult ¶
type FolderCreateRequest ¶ added in v2.1.0
type FolderCreateResult ¶ added in v2.1.0
type FolderCreateResult struct {
ID string `json:"id"`
}
type GetRequest ¶
type GetRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` Version string `json:"version,omitempty"` Verbose *bool `json:"verbose,omitempty"` VersionState *ItemVersionState `json:"version_state,omitempty"` }
type GetResult ¶
type GetResult struct { ItemData Versions []ItemVersionData `json:"versions"` RotationGracePeriod string `json:"rotation_grace_period,omitempty"` }
type ItemData ¶
type ItemData struct { ID string `json:"id"` Type string `json:"type"` ItemState string `json:"item_state"` CurrentVersion ItemVersionData `json:"current_version"` Name string `json:"name,omitempty"` Folder string `json:"folder,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Tags Tags `json:"tags,omitempty"` RotationFrequency string `json:"rotation_frequency,omitempty"` RotationState string `json:"rotation_state,omitempty"` LastRotated string `json:"last_rotated,omitempty"` NextRotation string `json:"next_rotation,omitempty"` Expiration string `json:"expiration,omitempty"` CreatedAt string `json:"created_at"` Algorithm string `json:"algorithm,omitempty"` Purpose string `json:"purpose,omitempty"` }
type ItemOrderBy ¶
type ItemOrderBy string
const ( IOBtype ItemOrderBy = "type" IOBcreateAt ItemOrderBy = "create_at" IOBdestroyedAt ItemOrderBy = "destroyed_at" IOBidentity ItemOrderBy = "identity" IOBmanaged ItemOrderBy = "managed" IOBpurpose ItemOrderBy = "purpose" IOBexpiration ItemOrderBy = "expiration" IOBlastRotated ItemOrderBy = "last_rotated" IOBnextRotation ItemOrderBy = "next_rotation" IOBname ItemOrderBy = "name" IOBfolder ItemOrderBy = "folder" IOBversion ItemOrderBy = "version" )
type ItemVersionData ¶
type ItemVersionState ¶
type ItemVersionState string
const ( IVSactive ItemVersionState = "active" IVSdeactivated ItemVersionState = "deactivated" IVSsuspended ItemVersionState = "suspended" IVScompromised ItemVersionState = "compromised" IVSdestroyed ItemVersionState = "destroyed" )
type JWKGetRequest ¶
type JWKGetRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` Version *string `json:"version,omitempty"` }
type JWKGetResult ¶
type JWKGetResult struct {
Keys []JWT `json:"keys"`
}
type JWT ¶
type JWT struct { Alg string `json:"alg"` Kid *string `json:"kid,omitempty"` Kty string `json:"kty"` Use *string `json:"use,omitemtpy"` Crv *string `json:"crv,omitemtpy"` D *string `json:"d,omitemtpy"` X *string `json:"x,omitemtpy"` Y *string `json:"y,omitemtpy"` N *string `json:"n,omitemtpy"` E *string `json:"e,omitemtpy"` }
type JWTSignRequest ¶
type JWTSignRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` Payload string `json:"payload"` }
type JWTSignResult ¶
type JWTSignResult struct {
JWS string `json:"jws"`
}
type JWTVerifyRequest ¶
type JWTVerifyRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest JWS string `json:"jws"` }
type JWTVerifyResult ¶
type JWTVerifyResult struct {
ValidSignature bool `json:"valid_signature"`
}
type KeyPurpose ¶
type KeyPurpose string
const ( KPsigning KeyPurpose = "signing" KPencryption KeyPurpose = "encryption" KPjwt KeyPurpose = "jwt" )
type KeyRotateRequest ¶
type KeyRotateRequest struct { CommonRotateRequest PublicKey *EncodedPublicKey `json:"public_key,omitempty"` PrivateKey *EncodedPrivateKey `json:"private_key,omitempty"` Key *EncodedSymmetricKey `json:"key,omitempty"` }
type KeyRotateResult ¶
type KeyRotateResult struct { CommonRotateResult PublicKey *EncodedPublicKey `json:"public_key,omitempty"` Algorithm string `json:"algorithm"` Purpose string `json:"purpose"` }
type ListItemData ¶
type ListItemData struct { ItemData CompromisedVersions []ItemVersionData `json:"compromised_versions"` }
type ListRequest ¶
type ListRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Filter map[string]string `json:"filter,omitempty"` Last string `json:"last,omitempty"` Size int `json:"size,omitempty"` Order ItemOrder `json:"order,omitempty"` OrderBy ItemOrderBy `json:"order_by,omitempty"` }
type ListResult ¶
type ListResult struct { Items []ListItemData `json:"items"` Count int `json:"count"` Last string `json:"last,omitempty"` }
type PangeaTokenRotateRequest ¶
type PangeaTokenRotateRequest struct { CommonRotateRequest RotationGracePeriod string `json:"rotation_grace_period"` }
type PangeaTokenStoreRequest ¶
type PangeaTokenStoreRequest struct { CommonStoreRequest Token string `json:"secret"` }
type SecretRotateRequest ¶
type SecretRotateRequest struct { CommonRotateRequest Secret string `json:"secret"` }
type SecretRotateResult ¶
type SecretRotateResult struct { CommonRotateResult Secret string `json:"secret"` }
type SecretStoreRequest ¶
type SecretStoreRequest struct { CommonStoreRequest Secret string `json:"secret"` }
type SecretStoreResult ¶
type SecretStoreResult struct { CommonStoreResult Secret string `json:"secret"` }
type SignRequest ¶
type SignRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` Message string `json:"message"` Version *int `json:"version,omitempty"` }
type SignResult ¶
type SignResult struct { ID string `json:"id"` Version int `json:"version"` Signature string `json:"signature"` Algorithm string `json:"algorithm"` PublicKey *EncodedPublicKey `json:"public_key,omitempty"` }
type StateChangeRequest ¶
type StateChangeRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` State ItemVersionState `json:"state"` Version *int `json:"version,omitempty"` DestroyPeriod string `json:"destroy_period,omitempty"` }
type StateChangeResult ¶
type SymmetricAlgorithm ¶
type SymmetricAlgorithm string
const ( SYAhs256 SymmetricAlgorithm = "HS256" SYAhs384 SymmetricAlgorithm = "HS384" SYAhs512 SymmetricAlgorithm = "HS512" SYAaes128_cfb SymmetricAlgorithm = "AES-CFB-128" SYAaes256_cfb SymmetricAlgorithm = "AES-CFB-256" SYAaes256_gcm SymmetricAlgorithm = "AES-GCM-256" SYAaes SymmetricAlgorithm = "AES-CFB-128" // deprecated, use SYAaes128_cfb instead )
type SymmetricGenerateRequest ¶
type SymmetricGenerateRequest struct { CommonGenerateRequest Algorithm SymmetricAlgorithm `json:"algorithm"` Purpose KeyPurpose `json:"purpose"` }
type SymmetricGenerateResult ¶
type SymmetricGenerateResult struct { CommonGenerateResult Algorithm string `json:"algorithm"` Purpose string `json:"purpose"` }
type SymmetricStoreRequest ¶
type SymmetricStoreRequest struct { CommonStoreRequest Key EncodedSymmetricKey `json:"key"` Algorithm SymmetricAlgorithm `json:"algorithm"` Purpose KeyPurpose `json:"purpose,omitempty"` }
type SymmetricStoreResult ¶
type SymmetricStoreResult struct { CommonStoreResult Algorithm string `json:"algorithm"` Purpose string `json:"purpose"` }
type UpdateRequest ¶
type UpdateRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest ID string `json:"id"` Name string `json:"name,omitempty"` Folder string `json:"folder,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Tags Tags `json:"tags,omitempty"` RotationFrequency string `json:"rotation_frequency,omitempty"` RotationState ItemVersionState `json:"rotation_state,omitempty"` RotationGracePeriod string `json:"rotation_grace_period,omitempty"` Expiration string `json:"expiration,omitempty"` ItemState ItemState `json:"item_state,omitempty"` }
type UpdateResult ¶
type UpdateResult struct {
ID string `json:"id"`
}
type VerifyRequest ¶
Click to show internal directories.
Click to hide internal directories.