service

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: UPL-1.0 Imports: 10 Imported by: 0

Documentation

Overview

** OCI Secrets Store CSI Driver Provider ** ** Copyright (c) 2022 Oracle America, Inc. and its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

** OCI Secrets Store CSI Driver Provider ** ** Copyright (c) 2022 Oracle America, Inc. and its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

** OCI Secrets Store CSI Driver Provider ** ** Copyright (c) 2022 Oracle America, Inc. and its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OCISecretClient

type OCISecretClient interface {
	GetSecretBundleByName(
		context.Context, secrets.GetSecretBundleByNameRequest) (secrets.GetSecretBundleByNameResponse, error)
}

OCISecretClient - interface for OCI Vault client. It's needed as abstraction to real client, since OCI SDK doesn't provide interfaces for OCI clients.

type OCISecretClientFactory

type OCISecretClientFactory struct{}

type OCISecretService

type OCISecretService struct {
	// contains filtered or unexported fields
}

OCISecretService is implementation of SecretService

func NewOCISecretService

func NewOCISecretService() (*OCISecretService, error)

func (*OCISecretService) GetSecretBundles

func (service *OCISecretService) GetSecretBundles(
	ctx context.Context, requests []*types.SecretBundleRequest,
	auth *types.Auth, vaultID types.VaultID) ([]*types.SecretBundle, error)

type SecretClientFactory

type SecretClientFactory interface {
	// contains filtered or unexported methods
}

type SecretService

type SecretService interface {
	// GetSecretBundles retrieves secrets for each types.SecretBundleRequest
	// If one of the secrets is not present, error is returned
	GetSecretBundles(context.Context, []*types.SecretBundleRequest, *types.Auth,
		types.VaultID) ([]*types.SecretBundle, error)
}

SecretService is interface that decouples provider server and OCI Vault client

Jump to

Keyboard shortcuts

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