aiven

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FolderPrefix                         = "aiven-secret-"
	AivenatorProtectedAnnotation         = "aivenator.aiven.nais.io/protected"
	AivenatorProtectedExpireAtAnnotation = "aivenator.aiven.nais.io/with-time-limit"
)

Variables

View Source
var ErrUnsuitableSecret = errors.New("unsuitable secret")

Functions

func ExtractAndGenerateConfig

func ExtractAndGenerateConfig(ctx context.Context, service aiven_services.Service, secretName, namespaceName string, out cli.Output) error

func TidyLocalSecrets

func TidyLocalSecrets(out cli.Output) error

Types

type Aiven

type Aiven struct {
	Ctx        context.Context
	Client     ctrl.Client
	Properties Properties
}

func Setup

func Setup(
	ctx context.Context,
	innClient ctrl.Client,
	aivenService aiven_services.Service,
	username, namespace, secretName string,
	expiry uint,
	serviceSetup *aiven_services.ServiceSetup,
) *Aiven

func (Aiven) GenerateApplication

func (a Aiven) GenerateApplication(out cli.Output) (*aiven_nais_io_v1.AivenApplication, error)

type Properties

type Properties struct {
	Username   string
	Namespace  string
	Dest       string
	SecretName string
	Expiry     int
	Service    aiven_services.Service
}

type Secret

type Secret struct {
	Secret          *v1.Secret
	DestinationPath string
	Service         aiven_services.Service
}

func (*Secret) CreateKafkaConfigs

func (s *Secret) CreateKafkaConfigs() error

func (*Secret) CreateOpenSearchConfigs

func (s *Secret) CreateOpenSearchConfigs() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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