export

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package export provides the CLI for exporting Keycloak resources to Kubernetes CRD manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string)

Run executes the export command with the given arguments

Types

type Options

type Options struct {
	// Connection options (direct mode)
	URL      string
	Username string
	Password string

	// Connection options (from-instance mode)
	FromInstance        string
	FromClusterInstance string
	Namespace           string

	// Export options
	Realm string

	// Output options
	Output    string
	OutputDir string

	// Manifest generation options
	TargetNamespace string
	InstanceRef     string
	RealmRef        string

	// Filtering options
	Include      []string
	Exclude      []string
	SkipDefaults bool

	// General options
	Verbose bool
	// contains filtered or unexported fields
}

Options holds the export command options

func (*Options) BindFlags

func (o *Options) BindFlags(fs *flag.FlagSet)

BindFlags binds the options to the given flag set

func (*Options) GetKeycloakConfig

func (o *Options) GetKeycloakConfig(ctx context.Context, log logr.Logger) (*keycloak.Config, error)

GetKeycloakConfig returns the Keycloak client configuration

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the options

Jump to

Keyboard shortcuts

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