Documentation ¶
Index ¶
- func GetKeyVaultClient(creds config.Credentials) (keyvault.VaultsClient, error)
- func GetObjectID(ctx context.Context, creds config.Credentials, tenantID string, ...) (*string, error)
- func HandleCreationError(instance *v1alpha1.KeyVault, err error) (bool, error)
- func NewOpsClient(creds config.Credentials, keyvaultName string) *kvops.BaseClient
- func ParseAccessPolicy(ctx context.Context, creds config.Credentials, ...) (keyvault.AccessPolicyEntry, error)
- func ParseNetworkPolicy(ruleSet *v1alpha1.NetworkRuleSet) keyvault.NetworkRuleSet
- type AzureKeyVaultManager
- func (m *AzureKeyVaultManager) CreateVault(ctx context.Context, instance *v1alpha1.KeyVault, ...) (keyvault.Vault, error)
- func (m *AzureKeyVaultManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureKeyVaultManager) DeleteVault(ctx context.Context, groupName string, vaultName string) (result autorest.Response, err error)
- func (m *AzureKeyVaultManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureKeyVaultManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *AzureKeyVaultManager) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- func (m *AzureKeyVaultManager) GetVault(ctx context.Context, groupName string, vaultName string) (result keyvault.Vault, err error)
- type KeyVaultManager
- type KeyvaultKeyClient
- func (k *KeyvaultKeyClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (k *KeyvaultKeyClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (k *KeyvaultKeyClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *KeyvaultKeyClient) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyVaultClient ¶
func GetKeyVaultClient(creds config.Credentials) (keyvault.VaultsClient, error)
func GetObjectID ¶
func HandleCreationError ¶
func NewOpsClient ¶
func NewOpsClient(creds config.Credentials, keyvaultName string) *kvops.BaseClient
func ParseAccessPolicy ¶
func ParseAccessPolicy(ctx context.Context, creds config.Credentials, policy *v1alpha1.AccessPolicyEntry) (keyvault.AccessPolicyEntry, error)
ParseAccessPolicy - helper function to parse access policies from Kubernetes spec
func ParseNetworkPolicy ¶
func ParseNetworkPolicy(ruleSet *v1alpha1.NetworkRuleSet) keyvault.NetworkRuleSet
ParseNetworkPolicy - helper function to parse network policies from Kubernetes spec
Types ¶
type AzureKeyVaultManager ¶
type AzureKeyVaultManager struct { Creds config.Credentials Scheme *runtime.Scheme }
func NewAzureKeyVaultManager ¶
func NewAzureKeyVaultManager(creds config.Credentials, scheme *runtime.Scheme) *AzureKeyVaultManager
func (*AzureKeyVaultManager) CreateVault ¶
func (m *AzureKeyVaultManager) CreateVault(ctx context.Context, instance *v1alpha1.KeyVault, sku azurev1alpha1.KeyVaultSku, tags map[string]*string) (keyvault.Vault, error)
CreateVault creates a new key vault
func (*AzureKeyVaultManager) Delete ¶
func (m *AzureKeyVaultManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*AzureKeyVaultManager) DeleteVault ¶
func (m *AzureKeyVaultManager) DeleteVault(ctx context.Context, groupName string, vaultName string) (result autorest.Response, err error)
DeleteVault removes the resource group named by env var
func (*AzureKeyVaultManager) Ensure ¶
func (m *AzureKeyVaultManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*AzureKeyVaultManager) GetParents ¶
func (m *AzureKeyVaultManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
type KeyVaultManager ¶
type KeyVaultManager interface { CreateVault(ctx context.Context, instance *azurev1alpha1.KeyVault, sku azurev1alpha1.KeyVaultSku, tags map[string]*string) (keyvault.Vault, error) // DeleteVault removes the resource group named by env var DeleteVault(ctx context.Context, groupName string, vaultName string) (result autorest.Response, err error) // CheckExistence checks for the presence of a keyvault instance on Azure GetVault(ctx context.Context, groupName string, vaultName string) (result keyvault.Vault, err error) // also embed async client methods resourcemanager.ARMClient }
type KeyvaultKeyClient ¶
type KeyvaultKeyClient struct { Creds config.Credentials KeyvaultClient *AzureKeyVaultManager }
KeyvaultKeyClient emcompasses the methods needed for the keyops client to fulfill the ARMClient interface
func NewKeyvaultKeyClient ¶
func NewKeyvaultKeyClient(creds config.Credentials, client *AzureKeyVaultManager) *KeyvaultKeyClient
func (*KeyvaultKeyClient) Delete ¶
func (k *KeyvaultKeyClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete ensures the requested resource is gone from Azure
func (*KeyvaultKeyClient) Ensure ¶
func (k *KeyvaultKeyClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure idempotently implements the user's requested state
func (*KeyvaultKeyClient) GetParents ¶
func (k *KeyvaultKeyClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents returns the kube resources most likely to be parents to this resource
Click to show internal directories.
Click to hide internal directories.