aiven

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 15 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

This section is empty.

Functions

func ExtractAndGenerateConfig

func ExtractAndGenerateConfig(service aiven_services.Service, secretName, namespaceName string) error

func TidyLocalSecrets

func TidyLocalSecrets() error

Types

type Aiven

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

func Setup

func Setup(innClient ctrl.Client, aivenService aiven_services.Service, username, namespace, secretName, instance string, pool aiven_services.KafkaPool, access aiven_services.OpenSearchAccess, expiry uint) *Aiven

func (Aiven) GenerateApplication

func (a Aiven) GenerateApplication() (*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