Documentation ¶
Index ¶
- func PossibleValuesForDeletionRecoveryLevel() []string
- func PossibleValuesForJsonWebKeyCurveName() []string
- func PossibleValuesForJsonWebKeyOperation() []string
- func PossibleValuesForJsonWebKeyType() []string
- func PossibleValuesForKeyRotationPolicyActionType() []string
- func ValidateKeyID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type Action
- type CreateIfNotExistOperationResponse
- type DeletionRecoveryLevel
- type GetOperationResponse
- type GetVersionOperationResponse
- type JsonWebKeyCurveName
- type JsonWebKeyOperation
- type JsonWebKeyType
- type Key
- type KeyAttributes
- type KeyCreateParameters
- type KeyId
- type KeyOperationPredicate
- type KeyProperties
- type KeyReleasePolicy
- type KeyRotationPolicyActionType
- type KeyRotationPolicyAttributes
- type KeysClient
- func (c KeysClient) CreateIfNotExist(ctx context.Context, id KeyId, input KeyCreateParameters) (result CreateIfNotExistOperationResponse, err error)
- func (c KeysClient) Get(ctx context.Context, id KeyId) (result GetOperationResponse, err error)
- func (c KeysClient) GetVersion(ctx context.Context, id VersionId) (result GetVersionOperationResponse, err error)
- func (c KeysClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
- func (c KeysClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c KeysClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate KeyOperationPredicate) (resp ListCompleteResult, err error)
- func (c KeysClient) ListVersions(ctx context.Context, id KeyId) (resp ListVersionsOperationResponse, err error)
- func (c KeysClient) ListVersionsComplete(ctx context.Context, id KeyId) (ListVersionsCompleteResult, error)
- func (c KeysClient) ListVersionsCompleteMatchingPredicate(ctx context.Context, id KeyId, predicate KeyOperationPredicate) (resp ListVersionsCompleteResult, err error)
- type LifetimeAction
- type ListCompleteResult
- type ListOperationResponse
- type ListVersionsCompleteResult
- type ListVersionsOperationResponse
- type RotationPolicy
- type Trigger
- type VaultId
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDeletionRecoveryLevel ¶
func PossibleValuesForDeletionRecoveryLevel() []string
func PossibleValuesForJsonWebKeyCurveName ¶
func PossibleValuesForJsonWebKeyCurveName() []string
func PossibleValuesForJsonWebKeyOperation ¶
func PossibleValuesForJsonWebKeyOperation() []string
func PossibleValuesForJsonWebKeyType ¶
func PossibleValuesForJsonWebKeyType() []string
func PossibleValuesForKeyRotationPolicyActionType ¶
func PossibleValuesForKeyRotationPolicyActionType() []string
func ValidateKeyID ¶
ValidateKeyID checks that 'input' can be parsed as a Key ID
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
func ValidateVersionID ¶
ValidateVersionID checks that 'input' can be parsed as a Version ID
Types ¶
type Action ¶
type Action struct {
Type *KeyRotationPolicyActionType `json:"type,omitempty"`
}
type DeletionRecoveryLevel ¶
type DeletionRecoveryLevel string
const ( DeletionRecoveryLevelPurgeable DeletionRecoveryLevel = "Purgeable" DeletionRecoveryLevelRecoverable DeletionRecoveryLevel = "Recoverable" DeletionRecoveryLevelRecoverablePositiveProtectedSubscription DeletionRecoveryLevel = "Recoverable+ProtectedSubscription" DeletionRecoveryLevelRecoverablePositivePurgeable DeletionRecoveryLevel = "Recoverable+Purgeable" )
type GetOperationResponse ¶
type JsonWebKeyCurveName ¶
type JsonWebKeyCurveName string
const ( JsonWebKeyCurveNamePNegativeFiveTwoOne JsonWebKeyCurveName = "P-521" JsonWebKeyCurveNamePNegativeThreeEightFour JsonWebKeyCurveName = "P-384" JsonWebKeyCurveNamePNegativeTwoFiveSix JsonWebKeyCurveName = "P-256" JsonWebKeyCurveNamePNegativeTwoFiveSixK JsonWebKeyCurveName = "P-256K" )
type JsonWebKeyOperation ¶
type JsonWebKeyOperation string
const ( JsonWebKeyOperationDecrypt JsonWebKeyOperation = "decrypt" JsonWebKeyOperationEncrypt JsonWebKeyOperation = "encrypt" JsonWebKeyOperationImport JsonWebKeyOperation = "import" JsonWebKeyOperationRelease JsonWebKeyOperation = "release" JsonWebKeyOperationSign JsonWebKeyOperation = "sign" JsonWebKeyOperationUnwrapKey JsonWebKeyOperation = "unwrapKey" JsonWebKeyOperationVerify JsonWebKeyOperation = "verify" JsonWebKeyOperationWrapKey JsonWebKeyOperation = "wrapKey" )
type JsonWebKeyType ¶
type JsonWebKeyType string
const ( JsonWebKeyTypeEC JsonWebKeyType = "EC" JsonWebKeyTypeECNegativeHSM JsonWebKeyType = "EC-HSM" JsonWebKeyTypeRSA JsonWebKeyType = "RSA" JsonWebKeyTypeRSANegativeHSM JsonWebKeyType = "RSA-HSM" )
type KeyAttributes ¶
type KeyAttributes struct { Created *int64 `json:"created,omitempty"` Enabled *bool `json:"enabled,omitempty"` Exp *int64 `json:"exp,omitempty"` Exportable *bool `json:"exportable,omitempty"` Nbf *int64 `json:"nbf,omitempty"` RecoveryLevel *DeletionRecoveryLevel `json:"recoveryLevel,omitempty"` Updated *int64 `json:"updated,omitempty"` }
type KeyCreateParameters ¶
type KeyCreateParameters struct { Properties KeyProperties `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` }
type KeyId ¶
type KeyId struct { SubscriptionId string ResourceGroupName string VaultName string KeyName string }
KeyId is a struct representing the Resource ID for a Key
func NewKeyID ¶
func NewKeyID(subscriptionId string, resourceGroupName string, vaultName string, keyName string) KeyId
NewKeyID returns a new KeyId struct
func ParseKeyID ¶
ParseKeyID parses 'input' into a KeyId
func ParseKeyIDInsensitively ¶
ParseKeyIDInsensitively parses 'input' case-insensitively into a KeyId note: this method should only be used for API response data and not user input
func (KeyId) Segments ¶
func (id KeyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Key ID
type KeyOperationPredicate ¶
func (KeyOperationPredicate) Matches ¶
func (p KeyOperationPredicate) Matches(input Key) bool
type KeyProperties ¶
type KeyProperties struct { Attributes *KeyAttributes `json:"attributes,omitempty"` CurveName *JsonWebKeyCurveName `json:"curveName,omitempty"` KeyOps *[]JsonWebKeyOperation `json:"keyOps,omitempty"` KeySize *int64 `json:"keySize,omitempty"` KeyUri *string `json:"keyUri,omitempty"` KeyUriWithVersion *string `json:"keyUriWithVersion,omitempty"` Kty *JsonWebKeyType `json:"kty,omitempty"` ReleasePolicy *KeyReleasePolicy `json:"release_policy,omitempty"` RotationPolicy *RotationPolicy `json:"rotationPolicy,omitempty"` }
type KeyReleasePolicy ¶
type KeyRotationPolicyActionType ¶
type KeyRotationPolicyActionType string
const ( KeyRotationPolicyActionTypeNotify KeyRotationPolicyActionType = "notify" KeyRotationPolicyActionTypeRotate KeyRotationPolicyActionType = "rotate" )
type KeysClient ¶
func NewKeysClientWithBaseURI ¶
func NewKeysClientWithBaseURI(endpoint string) KeysClient
func (KeysClient) CreateIfNotExist ¶
func (c KeysClient) CreateIfNotExist(ctx context.Context, id KeyId, input KeyCreateParameters) (result CreateIfNotExistOperationResponse, err error)
CreateIfNotExist ...
func (KeysClient) Get ¶
func (c KeysClient) Get(ctx context.Context, id KeyId) (result GetOperationResponse, err error)
Get ...
func (KeysClient) GetVersion ¶
func (c KeysClient) GetVersion(ctx context.Context, id VersionId) (result GetVersionOperationResponse, err error)
GetVersion ...
func (KeysClient) List ¶
func (c KeysClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
List ...
func (KeysClient) ListComplete ¶
func (c KeysClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (KeysClient) ListCompleteMatchingPredicate ¶
func (c KeysClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate KeyOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (KeysClient) ListVersions ¶
func (c KeysClient) ListVersions(ctx context.Context, id KeyId) (resp ListVersionsOperationResponse, err error)
ListVersions ...
func (KeysClient) ListVersionsComplete ¶
func (c KeysClient) ListVersionsComplete(ctx context.Context, id KeyId) (ListVersionsCompleteResult, error)
ListVersionsComplete retrieves all of the results into a single object
func (KeysClient) ListVersionsCompleteMatchingPredicate ¶
func (c KeysClient) ListVersionsCompleteMatchingPredicate(ctx context.Context, id KeyId, predicate KeyOperationPredicate) (resp ListVersionsCompleteResult, err error)
ListVersionsCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type LifetimeAction ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Key
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Key // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ListVersionsCompleteResult ¶
type ListVersionsCompleteResult struct {
Items []Key
}
type ListVersionsOperationResponse ¶
type ListVersionsOperationResponse struct { HttpResponse *http.Response Model *[]Key // contains filtered or unexported fields }
func (ListVersionsOperationResponse) HasMore ¶
func (r ListVersionsOperationResponse) HasMore() bool
func (ListVersionsOperationResponse) LoadMore ¶
func (r ListVersionsOperationResponse) LoadMore(ctx context.Context) (resp ListVersionsOperationResponse, err error)
type RotationPolicy ¶
type RotationPolicy struct { Attributes *KeyRotationPolicyAttributes `json:"attributes,omitempty"` LifetimeActions *[]LifetimeAction `json:"lifetimeActions,omitempty"` }
type VaultId ¶
VaultId is a struct representing the Resource ID for a Vault
func NewVaultID ¶
NewVaultID returns a new VaultId struct
func ParseVaultID ¶
ParseVaultID parses 'input' into a VaultId
func ParseVaultIDInsensitively ¶
ParseVaultIDInsensitively parses 'input' case-insensitively into a VaultId note: this method should only be used for API response data and not user input
func (VaultId) Segments ¶
func (id VaultId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Vault ID
type VersionId ¶
type VersionId struct { SubscriptionId string ResourceGroupName string ManagedHSMName string KeyName string VersionName string }
VersionId is a struct representing the Resource ID for a Version
func NewVersionID ¶
func NewVersionID(subscriptionId string, resourceGroupName string, managedHSMName string, keyName string, versionName string) VersionId
NewVersionID returns a new VersionId struct
func ParseVersionID ¶
ParseVersionID parses 'input' into a VersionId
func ParseVersionIDInsensitively ¶
ParseVersionIDInsensitively parses 'input' case-insensitively into a VersionId note: this method should only be used for API response data and not user input
func (VersionId) Segments ¶
func (id VersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Version ID
Source Files ¶
- client.go
- constants.go
- id_key.go
- id_vault.go
- id_version.go
- method_createifnotexist_autorest.go
- method_get_autorest.go
- method_getversion_autorest.go
- method_list_autorest.go
- method_listversions_autorest.go
- model_action.go
- model_key.go
- model_keyattributes.go
- model_keycreateparameters.go
- model_keyproperties.go
- model_keyreleasepolicy.go
- model_keyrotationpolicyattributes.go
- model_lifetimeaction.go
- model_rotationpolicy.go
- model_trigger.go
- predicates.go
- version.go