chef

package
v0.9.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

View Source
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.

type UserInterface

type UserInterface interface {
	Get(name string) (user chef.User, err error)
}

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL