Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- type DatabagFetcher
- type Providerchef
- func (providerchef *Providerchef) Capabilities() v1beta1.SecretStoreCapabilities
- func (providerchef *Providerchef) Close(_ context.Context) error
- func (providerchef *Providerchef) DeleteSecret(_ context.Context, _ v1beta1.PushSecretRemoteRef) error
- func (providerchef *Providerchef) GetAllSecrets(_ context.Context, _ v1beta1.ExternalSecretFind) (map[string][]byte, error)
- func (providerchef *Providerchef) GetSecret(ctx context.Context, ref v1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (providerchef *Providerchef) GetSecretMap(ctx context.Context, ref v1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (providerchef *Providerchef) NewClient(ctx context.Context, store v1beta1.GenericStore, kube kclient.Client, ...) (v1beta1.SecretsClient, error)
- func (providerchef *Providerchef) PushSecret(_ context.Context, _ *corev1.Secret, _ v1beta1.PushSecretData) error
- func (providerchef *Providerchef) SecretExists(_ context.Context, _ v1beta1.PushSecretRemoteRef) (bool, error)
- func (providerchef *Providerchef) Validate() (v1beta1.ValidationResult, error)
- func (providerchef *Providerchef) ValidateStore(store v1beta1.GenericStore) (admission.Warnings, error)
- type UserInterface
Constants ¶
const ( ProviderChef = "Chef" CallChefGetDataBagItem = "GetDataBagItem" CallChefListDataBagItems = "ListDataBagItems" CallChefGetUser = "GetUser" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabagFetcher ¶
type DatabagFetcher interface { GetItem(databagName string, databagItem string) (item chef.DataBagItem, err error) ListItems(name string) (data *chef.DataBagListResult, err error) }
type Providerchef ¶
type Providerchef struct {
// contains filtered or unexported fields
}
func (*Providerchef) Capabilities ¶
func (providerchef *Providerchef) Capabilities() v1beta1.SecretStoreCapabilities
Capabilities return the provider supported capabilities (ReadOnly, WriteOnly, ReadWrite).
func (*Providerchef) Close ¶
func (providerchef *Providerchef) Close(_ context.Context) error
Close closes the client connection.
func (*Providerchef) DeleteSecret ¶
func (providerchef *Providerchef) DeleteSecret(_ context.Context, _ v1beta1.PushSecretRemoteRef) error
Not Implemented DeleteSecret.
func (*Providerchef) GetAllSecrets ¶
func (providerchef *Providerchef) GetAllSecrets(_ context.Context, _ v1beta1.ExternalSecretFind) (map[string][]byte, error)
GetAllSecrets Retrieves a map[string][]byte with the Databag names as key and the Databag's Items as secrets.
func (*Providerchef) GetSecret ¶
func (providerchef *Providerchef) GetSecret(ctx context.Context, ref v1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
GetSecret returns a databagItem present in the databag. format example: databagName/databagItemName.
func (*Providerchef) GetSecretMap ¶
func (providerchef *Providerchef) GetSecretMap(ctx context.Context, ref v1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
GetSecretMap returns multiple k/v pairs from the provider, for dataFrom.extract.key dataFrom.extract.key only accepts dataBagName, example : dataFrom.extract.key: myDatabag databagItemName or Property not expected in key.
func (*Providerchef) NewClient ¶
func (providerchef *Providerchef) NewClient(ctx context.Context, store v1beta1.GenericStore, kube kclient.Client, namespace string) (v1beta1.SecretsClient, error)
func (*Providerchef) PushSecret ¶
func (providerchef *Providerchef) PushSecret(_ context.Context, _ *corev1.Secret, _ v1beta1.PushSecretData) error
Not Implemented PushSecret.
func (*Providerchef) SecretExists ¶ added in v0.9.14
func (providerchef *Providerchef) SecretExists(_ context.Context, _ v1beta1.PushSecretRemoteRef) (bool, error)
func (*Providerchef) Validate ¶
func (providerchef *Providerchef) Validate() (v1beta1.ValidationResult, error)
Validate checks if the client is configured correctly to be able to retrieve secrets from the provider.
func (*Providerchef) ValidateStore ¶
func (providerchef *Providerchef) ValidateStore(store v1beta1.GenericStore) (admission.Warnings, error)
ValidateStore checks if the provided store is valid.